LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can an image be displayed by using raw data read from the serial port?

Hi there,

 

I am using an embedded camera to take photos. To operate it i send commands to it via the serial interface. I have received all of the image data back through the serial port and can view it as hex data in a string. The image data is 16bit colour RAW data at 160x120 resolution meaning i have 38400 bytes of data (160x120 = 19200. 19200*16 = 307200. 307200/8 = 38400). I want to be able to display this data as a picture, but cannot figure out how to do it. Can someone please point me in the right direction? i have been fiddling about with lots of the pixmap functions but no luck. Do i need to put this data in to a 2D array first?

0 Kudos
Message 1 of 3
(2,248 Views)

Yes, first convert it into a 2D array of pixel values. From there you can convert it into an image to display it in a picture control.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 3
(2,242 Views)

thanks,

 

i'll give it a go!

0 Kudos
Message 3 of 3
(2,226 Views)