 Michael_Wise
		
			Michael_Wise
		
		
		
		
		
		
		
		
	
			01-06-2014 03:20 PM
Does anyone have any code for writing tiff files from binary pixel data?
I know I can use an array to image (part of NI Vision) and then use the IMAQ save image, but was wondering if there were any other free alternatives.
Secondly, if I use the Vision/IMAQ method and I need a 10 or 12 bit image... if I use the 10/12 bit values in a 16 bit variable to send to the array to image and then use the IMAQ settings to set image depth to 12 or 10 bit, will it work correctly?
 MoviJOHN
		
			MoviJOHN
		
		
		
		
		
		
		
		
	
			01-07-2014 12:40 PM
Libtiff will address your needs, if you can get it integrated into labview. I think I've seen this done already.
You can also try saving the data as a RAW digital file, and use a third party tool to convert RAW to TIFF/PNG/JPG, or anything else. ImageJ, and other open source tools can do this. Some of them even have a command line interface, so you can fully automate the process.