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?