Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > IDL > convert 16 bit ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 149 of 228
Post > Topic >>

convert 16 bit tiff to 8 bit tiff

by rhartless@[EMAIL PROTECTED] Aug 18, 2006 at 10:32 AM

I have a bunch of 16 bit tiff images that need to be converted to 8 bit
tiffs.  The images that need converting are 4 channel satellite images.
Chanels 1 to 4 are blue, green, red and infrared, respectively.  I use
the following code which does convert to 8 bit but the colors in the
resulting image are way off.  I am using Windows XP and IDL 6.2.  Any
help would be greatly appreciated.

	files = FindFile('*.tif')
	kount =  N_ELEMENTS(files)
	For j = 0, kount-1 DO BEGIN
	     image=read_tiff(files[j])
	     CD, '\\Renee\IDLTest\', CURRENT=old_dir
	     write_tiff, (files[j]), TEM****ARY(image),
	    CD, old_dir
	ENDFOR
 




 1 Posts in Topic:
convert 16 bit tiff to 8 bit tiff
rhartless@[EMAIL PROTECTE  2006-08-18 10:32:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 4:37:39 CDT 2008.