LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a function in labVIEW (implemented in Imaq for example) to add a row or more rows to an image ??

Hi,

I would like to know if this is possible. I know it's possible to replce a row with another using IMAQ, but I don't want to replace a row in an image but to ADD a row to an image. Is this possible??

Thanks in advance

Lennaert
0 Kudos
Message 1 of 3
(2,656 Views)
By using a combination of the IMAQ Vision VI's and LabVIEW's array functions, you can insert a row into an image.

In the IMAQ Vision palette, there are two functions that convert images to and from arrays: IMAQ ImageToArray and IMAQ ArrayToImage. With the ImageToArray function, you can turn your image into a 2D array of pixel intensities. Once you have this array, you can use the Insert Into Array function in the array palette to add your row. (Note: This row would be an array of intensity values) Then you can convert your new 2D array back into an image using the ArrayToImage VI.

Hope this information helps!
0 Kudos
Message 2 of 3
(2,656 Views)
Lennaert,

You can do it directly in IMAQ, also. Just resize the image to include an extra row, then replace the new row with whatever you want.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 3 of 3
(2,656 Views)