To read a .jpeg image file, you can use "Read JPEG File.vi", located in the Functions pallette:
Graphics & Sounds -> Graphic Formats
To display the image, use "Draw Flattened Pixmap.vi", located also in the Functions pallette:
Graphics & Sounds -> Picture Functions
The way the pixels are represented in the picture depend on the "depth" of your image. The image is stored in the "flattened image data" output of the "Read JPEG File" vi. 4 to 8 bits depth images need a color table. For images with those depth, the value in the "flattened image data" array indicate the address of the color in the color table. For example, if the first value is 23, it means that the color of that pixel is located in the position 23 of the color table.
1 and 24 bits depth image include t
he color information in the image itself. In a 24 bits depth image, three consecutive values indicate the color of the pixel.
You can simplify the search of the pixel value by converting the "flattened image data" array into a 2D array. To do that, use "Unflatten pixmap.vi", located in:
Graphics & Sounds -> Graphic Formats
Now, you will have the image in a 2D array, where each cell contain the actual value of the pixel.
Remeber that the value of the pixel is in RGB format: you need to convert the pixel into hexagesimal to read the RGB components. In a 24 bits depth image, three consecutive numbers (cells) correspond to the R, G and B values of the color of a single pixel.
To display the color, you can use a color indicator. I don't know where is the color indicator in the Controls pallette. To create one, what I do is that I open "Draw Circle by Radius.vi", right-click the color input and select "Create Indicator". The indicator diplay the color of the pixel, not the value, but yo
u can manipulate its value as it is an unsigned long.
Best regards;
Enrique Vargas
www.vartortech.com