BW = imregionalmin(I)
BW = imregionalmin(I, conn)
| Parameter | Description |
|---|---|
| I | Input finite real 2-D image. |
| conn | Connectivity, either 4, 8, or an equivalent 3-by-3 matrix. |
| Parameter | Description |
|---|---|
| BW | Logical mask whose true pixels belong to regional minima. |
imregionalmin marks connected flat zones that have no lower-valued neighbor under the selected connectivity. It is useful for inspecting natural markers before watershed segmentation.
I=[2 2 2;2 1 1;2 1 1];
BW=imregionalmin(I);
figure; subplot(1,2,1); imagesc(I); title('Image');
subplot(1,2,2); imagesc(BW); title('Regional minima');
| Version | Description |
|---|---|
| 2.0.0 | initial version |