We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › can processing change 32bit grayscale tif to 8bit
Page Index Toggle Pages: 1
can processing change 32bit grayscale tif to 8bit? (Read 1715 times)
can processing change 32bit grayscale tif to 8bit?
Feb 13th, 2010, 10:06am
 
hello,

I have not scripted processing for a while- i am looking around for a functionality that is missing in all other image processing software i have looked into.

I have a 32 bit grayscale image that i need to convert into an 8 bit image. Can processing do this? is this a big programming task, or very easy?

thank you!
Re: can processing change 32bit grayscale tif to 8bit?
Reply #1 - Feb 13th, 2010, 1:37pm
 
If Processing's loadImage() doesn't work on it, I suggest using some other tool (eg IrfanView) to load and convert the image into a form you can use.

Processing is capable of reading any file, but you probably don't want to be writing your own codec (or at least decoder) for an image format.

-spxl
Re: can processing change 32bit grayscale tif to 8bit?
Reply #2 - Feb 14th, 2010, 2:03am
 
I agree with subpixel, doing this with a programming language can be fun, but if that's productivity (efficiency and accuracy) you want, go for existing tools.
IrfanView can do batch processing (sic), not sure about the transformation you mention.
XnView comes with NConvert which is quite powerful.
Both are for Windows (XnView is more portable, I think).

If you are not afraid of command line, something like ImageMagick (or its fork GraphicsMagick) can do a lot.
Page Index Toggle Pages: 1