フィルターのクリア

thin the boundary of objects of black & white images

1 回表示 (過去 30 日間)
mahesh chathuranga
mahesh chathuranga 2013 年 9 月 17 日
I have a black and white image consists of very simple geometric shapes. the boundaries of the shapes are very thick. i want to thin them and skel. how can i do it?

採用された回答

David Sanchez
David Sanchez 2013 年 9 月 17 日
Use imerode.
From Matlab documentation:
IM2 = imerode(IM,SE) erodes the grayscale, binary, or packed binary image IM, returning the eroded image IM2. The argument SE is a structuring element object or array of structuring element objects returned by the strel function.
Example:
Erode a binary image with a disk structuring element.
originalBW = imread('circles.png');
se = strel('disk',11);
erodedBW = imerode(originalBW,se);
imshow(originalBW), figure, imshow(erodedBW)

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by