Results 1 to 20 of 21

Thread: Problems working with 8bpp and 24bpp images

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #17
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Re: Problems working with 8bpp and 24bpp images

    Another time thanks a lot Cesar, your suggestions are very helpfully It's a great idea to calculate a similar color in the table using the distance between two points, I didn't remember that function . I will try it and I comment the results.

    PD: did you forget to calculate the distance using squares in the function 'obtenirIndexColor'?
    Qt Code:
    1. diff = dR * dR + dG * dG + dB * dB;
    To copy to clipboard, switch view to plain text mode 
    The results of calculating the distance multiplying each term with itself are the same that calculating it as I did with the absolute value, no?
    Last edited by SkripT; 15th February 2006 at 16:36.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.