bwmorph() - Image Processing
BW2 = bwmorph(BW,operation) applies
a specific morphological operation to the binary image BW. BW2 = bwmorph(BW,operation,n) applies
the operation n times. n can
be Inf, in which case the operation is repeated
until the image no longer changes.examplegpuarrayBW2 = bwmorph(gpuarrayBW,___)
performs the morphological operation on a GPU. The input image and
output image are gpuArrays. This syntax requires the Parallel Computing Toolbox™.Code Generation support:
Yes.MATLAB® Function Block support: No.
Syntax
BW2 = bwmorph(BW,operation) exampleBW2 = bwmorph(BW,operation,n)gpuarrayBW2 = bwmorph(gpuarrayBW,___) example
Example
0 0 1 0 0 0 0 0 0 0
0 0 1 0 0 becomes 0 0 0 0 0
1 1 1 1 1 0 0 1 0 0
0 0 1 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0
Output / Return Value
Limitations
Alternatives / See Also
Reference