05-14-2008 03:33 AM
05-14-2008 10:28 AM
05-12-2011 10:23 AM
Andrey - based on your reply above, I wanted to revisit a similar topic this and get your thoughts.
I am implementing a median filter using IMAQ NthOrder VI. When the element size of the kernel is greater than 7 x 7, I get the same error "Invalid Image Border."
I tried to adjust this based on your strategy mentioned regarding setting a new border size. I still get the error. Any thoughts on this?
Thanks,
Don
05-17-2011 03:38 PM
Hi Don,
You need to set the correct border when you create the images with the "IMAQ Create" VI. The border input is on the top of the VI. The default is 3, which is why a 7x7 kernel works.
Please see http://zone.ni.com/reference/en-XX/help/370281L-01/imaqvision/imaq_create/ for more information.
-Jeff
05-18-2011 11:43 AM
Hi, Don,
The size of the border of SOURCE image is important. You can set up border with IMAQ Create (this way is prederred), or you can change border after creation (in this case image will be relocated). Border of destination image is not important.
Andrey.
05-24-2011 02:12 PM
Still no luck with 9 x 9 after modifying the code to create the border of the source image. I must be doing something wrong. Here is what the main portion of the code looks like and the VI is attached.
Any help is appreciated!
Thanks,
Don
05-24-2011 03:18 PM
Don,
Check the border size of the image coming out of IMAQ Copy. I will bet it is the same size as the original image, because I think the border of the source image is copied along with the rest of the image. You need to set the image border after you copy it, or change the border of the original image.
Bruce
05-25-2011 07:00 AM
Bruce - Thanks. That was the final piece of the puzzle. Now it works for all kernel sizes.....Don