06-24-2008, 13:30
|
daanzhu
Joined on 06-24-2008
Posts 4
|
Re: 16 bits tiff images loading
|
 
 
|
|
|
In order to identify the problems, I would like to add some more information:
If I would like to get a pixel intensity,
byte[] values = rasterImage.GetPixelData(y, x);
If rasterImage is a 8 bit image, the return value is correct for example value[0]=0x7A
If rasterImage is a RGB image, the return values are correct
values[0]=0x10 (blue channel)
values[1]=0x8F (green channel)
values[2]=0xEA (red channel)
Unfortunately if the image is an 16 tif image, the return value is
value[0]=0x7A actually the pixel intensity is 0x7A94. It seems only high low part byte was chop off!!
Any people may tell me how to sort out this problem. Thank you.
|
|
|
|
|
Report
|
|
|
|