I have a VI that is capturing an 8 bit grayscale image (1D array of 1500 pixels). It has a 10 byte header that I strip off and try to display it. The problem is that the displayed picture is interpeted as an RGB. Also, the saved image can be opened using a picture viewer but is not correct. It is missing the pixel data. How do I get this to display as an 8 bit grayscale image. I would also like to duplicate the 1 row of image data to about 50 rows so that it is easier to view. using a for loop and indexing the row only leaves the pxmao empty.
Solved! Go to Solution.
Would you mind posting some sample data?
You are missing a colour table input to your flatten pixmap block. See the vi snippet I have attached. Also, I have found that building arrays from a for loop is a quick way of doing it, Labview seems to preallocate the memory correctly.