Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ Interlace Problem - BOB Deinterlacing

I am trying to incorporate bob deinterlacing after an acquire command of a live video feed.  However, I keep not an image when I output the image even out.  I should be seeing half the vertical resolution right?  If so how would I approach bob deinterlacing which doubles those lines to fill the frame.  Any kind of help would be appreciated and please correct me if I've misunderstood bob deinterlacing.  Thanks.

Vinny
0 Kudos
Message 1 of 9
(4,908 Views)
Vinny,
 
If you are looking at the even field or odd field in an image display you would definitely only see half the vertical resolution of the original image.  From my understanding of bob deinterlacing, if you were doubling the odd field, you would take line 1 and copy it to line 2, take line 3 and copy it to line 4, take line 5 and so on to make a complete frame.  Then for the even frame you could take line 2 and copy it to line 1, take line 4 and copy it to line 3...etc.  If you are using LabVIEW you can utilize the IMAQ Interlace function to extract the odd and even fields from an image and then use the functions in the Vision Utilities>>Pixel Manipulation palette to for the bob deinterlaced images.  Hope this helps.
 
Jason N 
0 Kudos
Message 2 of 9
(4,871 Views)
Thank you for your response Jason.

The issue I'm having is getting an output from the IMAQ Interlace function; whether it be the even or odd fields.  I'm feeding a live video feed from IMAQ Acquire and then into Image
Frame and then taking either even or old outputs.  I would like to try and take the Even or Odd fields and double it so that it can fill the full frame just like you said.  But everytime the code executes, it gives a "Not an Image" error.  So therefore, what output comes out of the IMAQ Interface - Image Even/Odd Out connectors?

Vinny


Message Edited by Vince.T on 09-07-2006 02:57 PM

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

Vinny,

I tried to replicate your problem and did not get the error.  I did not get an image however until I added a second IMAQ Create to create a new buffer for the even or odd field.  Attached is a simple program that works fine.  I hope this gets you on the right direction.

Christopher W.

0 Kudos
Message 4 of 9
(4,831 Views)
Christopher,

Really appreciate the help.  I apologize because I forgot to mention that I'm working in Labview 7.1 and hence when tried to open the vi you made, it gave an incompatibility issue.  There has to be some free upgrade that I can get to view the vi right? 

Vinny
0 Kudos
Message 5 of 9
(4,825 Views)

Vinny,

Here is the program written in 7.1.

-Christopher

0 Kudos
Message 6 of 9
(4,823 Views)
Thanks so much.  I've got it working and now I can move on to bob deinterlacing part now.

Vinny
0 Kudos
Message 7 of 9
(4,820 Views)

Hi,

I can't find IMAQ Interlace.vi from the library.

Is it possible to achieve the task without the above vi?

I am using Labview 7.1.

Many Thanks,

Kai

0 Kudos
Message 8 of 9
(4,646 Views)
 

In LabVIEW 8.0 and 8.2, the IMAQ Interlace.vi is located in Vision and Motion>>Vision Utilities>>Image Manipulation.  In LabVIEW 7.1 it is located in NI Measurements>>Vision>>Vision Utilites>>Image Manipulation.  It comes with the Vision Development Module so if you don't have it, that's why you can't find it.  The Vision Development Module contains all of our image processing functions.  You can do image processing on the array of data, but you would have to write your own algorithms and it would be dificult. You can download an evaluation version of VDM here:

https://www.ni.com/en/support/downloads/software-products/download.vision-development-module.html

Christopher W.

0 Kudos
Message 9 of 9
(4,626 Views)