Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Image filter isn't applied when reading AVI file

Solved!
Go to solution

I wrote a VI that read images from a Camera Link camera, filtered them (applied edge detection) and displayed them.  That works well.

 

I then wrote a VI that reads images from the same camera and saves them in an AVI file.  That works well.

 

I then wroe a VI that reads images from the saved AVI file and displays them on the screen.  That works well.

 

However, when I modified the VI that reads the images from the AVI file, to also apply the edge detection filter, the 'second', 'filtered' image is a duplicate of the original.  It is not filtered.

When I turn on the 'Highlight Execution', I can see the 'data flow' into the filter VIs, but the result doesn't flow out to the displayed indicator.

 

I have attached the VI for review.

 

Thanks,

Jeff

0 Kudos
Message 1 of 3
(4,077 Views)
Solution
Accepted by topic author DMJeff

I guess - Read AVI frame will return RGB image, but convolution can accept only single channel images.

If so, try to convert image to grayscale prior filtering, for example in the following way:

 

12-09-2013 00-25-51.png

 

Andrey.

Message 2 of 3
(4,068 Views)

Hi Andrey,

 

Thanks, that worked wonders.

I never would have guessed that on my own.

 

Thanks,

Jeff

0 Kudos
Message 3 of 3
(4,061 Views)