Hi Doug,
For a 4-way dilate/erode you need:
3 3
128 255 128
255 255 255
128 255 128
ie. search for a cross shape and don't care about the corners. For
8-way, make the corners 255 as well.
The nip2 menu item Filter / Convolution / Line Detect uses the mask:
3 3
1 1 1
-2 -2 -2
1 1 1
Is that the one you mean? You can check the source by clicking
Toolkits / Edit, then clicking on Filter, then Filter_conv_item.
John
|