Bug or feature - change of pixel values in seperate?
Posted: 2012-01-25T23:04:10-07:00
Hi,
I have two different strange behaviours:
1.) I have a 8 bit Lab Tiff image (can be send if wanted) which i want to split into three gray images (PNG's) containing L a and b.
Here is my code:
convert myLabTiff.tif -seperate myGrayTiff.png
Results first look good but when i compare pixel values to original tiff they changed a little bit (very little, only between zero and approximately 5 gray values), why?
i also tested
convert myLabTiff.tif -colorspace LAB -seperate myGrayTiff.png
convert myLabTiff.tif -set colorspace LAB -seperate myGrayTiff.png (whats the difference to above?)
2) Whats also very interresting is my second problem:
I have a 16 bit RGB Tiff which i want to seperate inte 3 L, a and b Gray images:
convert myRGBTiff.tif -set colorspace Lab myLabPNG.png
and then i make
convert myLabPNG.png -separate myGrayPNG.png
and result is different from
convert myRGBTiff.tif -set colorspace Lab -separate myGrayPNG.png
or from
convert myRGBTiff.tif -separate -set colorspace Lab myGrayPNG.png
why, i do not understand this....
and: Isn't a whitepoint necessary to convert from RGB to Lab or is the whitepoint stored in the RGB tiff ?
I have two different strange behaviours:
1.) I have a 8 bit Lab Tiff image (can be send if wanted) which i want to split into three gray images (PNG's) containing L a and b.
Here is my code:
convert myLabTiff.tif -seperate myGrayTiff.png
Results first look good but when i compare pixel values to original tiff they changed a little bit (very little, only between zero and approximately 5 gray values), why?
i also tested
convert myLabTiff.tif -colorspace LAB -seperate myGrayTiff.png
convert myLabTiff.tif -set colorspace LAB -seperate myGrayTiff.png (whats the difference to above?)
2) Whats also very interresting is my second problem:
I have a 16 bit RGB Tiff which i want to seperate inte 3 L, a and b Gray images:
convert myRGBTiff.tif -set colorspace Lab myLabPNG.png
and then i make
convert myLabPNG.png -separate myGrayPNG.png
and result is different from
convert myRGBTiff.tif -set colorspace Lab -separate myGrayPNG.png
or from
convert myRGBTiff.tif -separate -set colorspace Lab myGrayPNG.png
why, i do not understand this....
and: Isn't a whitepoint necessary to convert from RGB to Lab or is the whitepoint stored in the RGB tiff ?