LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unflatten Pixmap VI Help

Hi, I'm trying to convert a cluster of image data from the "Draw Circle by Radius.VI" to a 2D array using the Unflatten Pixmap VI. My goal would be to have an array of the pixel coordinates for each pixel of the drawn circle. I'm having trouble outputting this into an array, can anyone help? Anything is much appreciated. Thanks!

 

-Pete

Message 1 of 3
(2,973 Views)

You should be able to wire your Draw Circle by Radius.vi into a Picture to Pixmap.vi and then into a Unflatten Pixmap.vi.  The trick here is knowing where to pull your data from.  The circle drawing vi draws a 24 bit (RGB) image, so you have to pull your array out of the 24-bit pixmap output on the unflatten vi.  This stores each pixel as a Hex value that corresponds to the RGB values.

 

Jon S

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,951 Views)

Thanks a bunch. This has been very helpful!

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