[Digikam-devel] [Bug 170170] High quality 8 to 16-bit conversion (histogram repair)

Jens Mueller tschenser at gmx.de
Thu Sep 23 19:07:41 BST 2010


https://bugs.kde.org/show_bug.cgi?id=170170





--- Comment #10 from Jens Mueller <tschenser gmx de>  2010-09-23 20:07:39 ---
I starred again at this.

Currently we have:

get8from16(  0..256) = 0
get8from16(257..513) = 1
get8from16(65278..65534) = 254
get8from16(65535) = 255

As you can see the last value is only build from one source value where are the
others build from an interval.

What we do want to have is a uniform quantization:

get8from16(  0..255) = 0
get8from16(256..511) = 1
get8from16(65024..65279) = 254
get8from16(65280..65535) = 255

and the reverse:

get16from8(0) = 0..255
get16from8(1) = 256..511
get16from8(254) = 65024..65279
get16from8(255) = 65280..65535

therefore we have to use a grain of salt.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list