Morphological neighbourhood processing
out = imorph(im, se, op) is the image im after morphological processing with the operator op and structuring element se.
The structuring element se is a small matrix with binary values that indicate which elements of the template window are used in the operation.
The operation op is:
| 'min' | minimum value over the structuring element |
| 'max' | maximum value over the structuring element |
| 'diff' | maximum - minimum value over the structuring element |
| 'plusmin' | the minimum of the pixel value and the pixelwise sum of the structuring element and source neighbourhood. |
out = imorph(im, se, op, edge) as above but performance of edge pixels can be controlled. The value of edge is:
| 'border' | the border value is replicated (default) |
| 'none' | pixels beyond the border are not included in the window |
| 'trim' | output is not computed for pixels where the structuring element crosses the image border, hence output image had reduced dimensions. |
| 'wrap' | the image is assumed to wrap around, left to right, top to bottom. |
irank, ivar, hitormiss, iopen, iclose, dtransform
Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.