LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display jpg image in intensity graph.

hi.
i use an intensity graph to display captured images from web cam and when i paused i can save the latest image as a jpg file.  i want to open this image and display it in intensity graph the next time that i run the program. i use 'read jpg' or 'read bmp' blocks to open that jpg file but the input of intensity graph is a 2-d array and the type of source and sinck are different. how can i convert the output of 'read jpg' or 'read bmp' blocks to the input of intensity graph. or is there any other block to do this? i don't want to use another object like picture to display the image.
 
thanks.
ali mootab.
0 Kudos
Message 1 of 2
(3,869 Views)
Use the Unflatten pixmap function (found under the open/read picture files in the Graphics and Sounds>Graphic formats sub-palette) that convert the picture string to a 2D array of pixel intensities.
Chilly Charly    (aka CC)
Message 2 of 2
(3,857 Views)