Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

nth order with structuring element

Using the "IMAQ Nth Order" filter, we can find the maximum for a neighborhood of n x m pixels.  However, I want to find the maxium along specific line-shaped neighborhoods.  It's possible to do this for vertical and horizontal line neighborhoods by using the nth order filter and specifying  n x 1 or 1 x m for the size.  However, there is no way that I can see to do this along diagonal lines, or even arbitrary neighborhoods.  There are a number of grayscale morphological function in "IMAQ GrayMorphology" which use a structuring element, but none of those functions can find a maximum, as far as I know.

Is there any implimentation of the nth order filter with a specified structuring element?
0 Kudos
Message 1 of 2
(3,089 Views)
Hi,

Sorry, unfourtunately there currently isn't an Nth order function with a specifed structuring elelment.  You could use the Image to Array function and then find the maximum value of the elements of interest.  This isn't too difficult when dealing with diagnol lines, but becomes very complex if you are trying to do an arbitrary neighborhood.  I will submit a product suggestion so that our developers can consider adding that functionality in the future. 

Regards,
GG
0 Kudos
Message 2 of 2
(3,079 Views)