Login  Register

Re: How to correct 32bits(RGB) images?

Posted by NatashaW on May 20, 2010; 3:10pm
URL: http://imagej.273.s1.nabble.com/How-to-correct-32bits-RGB-images-tp3688233p3688235.html

Thank you it's more clear now, but I still have another question please:

-> I used before this instruction rgbG[i]&255 to eliminate the sign bit.
    Can I eliminate the sign bit and convert it to short at the same time by only writing:
    rgbG1=(short)rgbG[i]&0XFFFF  where rgbG[] is a byte array ?
    or It won't work and I should eliminate the sign bit first and then apply
    mageProcessor.toFloat(int channelNumber, FloatProcessor fp) as you explained before?

->And after the images are shifted now for example to [0 , 65535] shouldn't I ranging them again to [−32768 , 32767] to show them normally with imageJ?

Thank you,
Natasha