annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

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
Messaggio 1 di 25
6.829Visualizzazioni
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
Messaggio 2 di 25
6.835Visualizzazioni

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
Messaggio 3 di 25
6.830Visualizzazioni

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)
Messaggio 4 di 25
6.831Visualizzazioni

I am using labview 8.2

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

0 Kudos
Messaggio 5 di 25
6.824Visualizzazioni

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)
Messaggio 6 di 25
6.805Visualizzazioni

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)
Messaggio 7 di 25
6.804Visualizzazioni

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
Messaggio 8 di 25
6.802Visualizzazioni
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
Messaggio 9 di 25
6.798Visualizzazioni

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
Messaggio 10 di 25
6.797Visualizzazioni