Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

displaying deinterlaced images

I'm using a PCI1405 image card with IMAQ and LabView 8.2. I need to display deinterlaced images with the image restored to its full height. I want to display each line twice, I do not need to do any interpolation.
I am capturing images, displaying them interlaced and saving as jpegs, so just need to display deinterlace images.
I'm not a LabView expert so I would welcome any guidance.
0 Kudos
Message 1 of 9
(4,451 Views)
It is very straight forward isnt it?If u want a vi for converting bayer coded image into a normal 8 bit image then i will send u a vi.But as far as i understand ur question u can use save bmp function and save the image but i suppose if u really need this
0 Kudos
Message 2 of 9
(4,448 Views)

The camera is monochrome, normal interlaced video format.

IMAQ doesn't contain all the VI's required, it has ImageToArray but no ArrayToImage.

0 Kudos
Message 3 of 9
(4,445 Views)

MAQ doesn't contain all the VI's required, it has ImageToArray but no ArrayToImage.

Can you elaborate on your above statement.The function is not dependent on the camera you use.Can you be a bit more clear 
0 Kudos
Message 4 of 9
(4,443 Views)

What I want to do is convert the image to a 2d array (IMAQ has the VI to do this operation).

Ovewrite the even row with the contents of the odd row above (This can be done in LabView).

Convert the array back to an image to display on screen (no VI in IMAQ to do this, so looking for an alternative solution)

We end up with an deinterlaced image. This is how I would do it in any other programming language.

The reason we need to display deinterlaced images on the screen is because we are using a strobe at the field frequency, so the displayed interlaced image is made up of the two fields.

We have software to do all the image analysis off-line.

0 Kudos
Message 5 of 9
(4,438 Views)
I got what you want.But still dont get your point.You do have a "array to image function" and "image to array function" in labVIEW.When you use the reshape array properly it should do the trick.
0 Kudos
Message 6 of 9
(4,411 Views)
We have fixed it.
Found feature in Snap.VI that does deinterlace, fed this to intensity graph through array flatten.
Got the graph to auto-scale, so we can switch between interlaced image and deinterlaced
The issue is that we do not have ArrayToImage.VI, hence the work-around.
0 Kudos
Message 7 of 9
(4,390 Views)
If you have the Vision Dev Module there's a very simple and efficient technique.  Set the framegrabber in "field" mode and it will return each field as an image, instead of two fields combined in one frame.  Use the IMAQ Resample or IMAQ Expand to double the height of each image.  This will be far more efficient than converting the image to/from a LV array.

Thanks,
Brent
0 Kudos
Message 8 of 9
(4,374 Views)
We had to do a work-around as we do not have the Vision Dev Module.
We wrongly assumed that that IMAQ supplied with the NI board would provide simple capture and display VI's.
We have image processing software for image analysis.
We are up and running now.
Thanks for all the replies.
0 Kudos
Message 9 of 9
(4,355 Views)