LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

converting 1d array to image

I am using PointGrey chameleon USB camera .For grabbing the image from this camera we are using their activex control.From the control  we get  1d array of pixel information which consists of 1228800 integer values .We need to convert this to 2d array (row, column) to obtain the image .when i try to do this system is hanging.pls give us suggestion regarding this issue
0 Kudos
Message 1 of 25
(6,065 Views)
Do you know anything about the picture. Like the size(in pixels) and how many bits that are used to represent 1 pixel. Also how is the information in the 1d array formatted? 


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 25
(6,071 Views)

The format of the picture is 1280*960  , and each pixel is encoded using 8 -bits. The camera is returning a 1d array of 1228800,which needed to be converted in to the 1280*960 format for creating the image.... when i tried to convert the 1-d array to 2-d array  ,it required very large memory and system hanged..

pls reply

0 Kudos
Message 3 of 25
(6,066 Views)

Can you send me the data. Also which labview version are you using

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 4 of 25
(6,067 Views)

I am using labview 8.2

I have attatched the 1d array data from the camera as a text file

0 Kudos
Message 5 of 25
(6,060 Views)

Here is something quick and dirty. I used the color table in this link http://zone.ni.com/devzone/cda/epd/p/id/1455

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 6 of 25
(6,041 Views)

sorry did not make the color table as a constant

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 7 of 25
(6,040 Views)

Thanks a lot, it worked wonders,,,,but we want output displayed in NI VISION display  for processing the image like OCR.

moreover we unable to get the color information of the image..

pls reply

0 Kudos
Message 8 of 25
(6,038 Views)
If you see in my latest post I have included a grayscale color table in the "corrected with table.vi" attachment. I have never used NI Vision. But I am sure Vision can read bmp files. Save the picture as a BMP using "Write BMP File VI" Owning Palette: Graphics Formats VIs


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 9 of 25
(6,034 Views)

we want the image in 2d array format , the image can be saved automatically in .bmp fomat  by the camera,,  reading from the bmp file will require conversion time which is not suitable for our application,,,

pls reply

Message Edited by siju on 05-02-2009 08:10 AM
Message Edited by siju on 05-02-2009 08:18 AM
0 Kudos
Message 10 of 25
(6,033 Views)