 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			01-10-2016 04:15 PM - edited 01-10-2016 04:16 PM
OK, here's the (seemingly?) correct way to read LUT files into a 256 element color map (LabVIEW 2014).
See if it works for you. 😄

 GerdW
		
			GerdW
		
		
		 
		
		
		
		
		
	
			01-11-2016 01:35 AM
Hi Christian,
thanks for correcting me.
It was a (kind of) copy&paste error: I looked at those LUT files using a hex editor presenting byte offsets in hexadecimal. Ofcourse you need to use 0x100=0d256 instead of 0d100 when reshaping the array.
Background: Several years ago I worked with an ultrasonic microscope. The software for that scope used similar (or even the same) color files for generating images - back then I also used my own LabVIEW routine to convert measurement results to nice(r) images and also had to load such LUT files. Back then those files also had a filesize of 768 bytes (768 = 3*256 = 256 * RGB), so all you have to do when loading them is to recognize the order the bytes are written in such files (either "RGB, RGB, RGB…" or "RRR…, GGG…, BBB…").
 altenbach
		
			altenbach
		
		
		 
		
		
		
		
		
	
			01-11-2016 02:21 AM - edited 01-11-2016 02:30 AM
In summary:
In any case, this website has a nice collection of color tables and I might actually use some of those. Great find. Thanks!