Displaying a loaded image in just one color

Hello All,

I want to display the loaded image in just one color, (red or green) but when the image is clicked from the data browser again it will display as a full RGB color.

The code is shown below:


Function imconvert(image1,image2,ref_movie)
	wave image1,image2
	wave ref_movie
	redimension/I/S image1			// Converts the first image to FP32
	NewImage/K=0/N=Reference image1
	ModifyImage Reference ctab ={*,*,Red,0} 


Also I want to overlap two images (different colors) to check for similarity. i.e, if I overlap an image of red color with an image of green the resultant image should automatically be yellow.

Thanks
For the first question, use the "/G" flag set to 1 to suppress the automatic loading of a 3 layer wave as RGB. Then use the ModifyImage operation with the "plane" keyword to select the image plane to display.