フィルターのクリア

How can i separate all the connected regions in a binary image and display them individually.

2 ビュー (過去 30 日間)
I have small white pixel areas in my binary image, how can I extract only those white connected pixel areas and display them individually.

採用された回答

Image Analyst
Image Analyst 2018 年 12 月 14 日
編集済み: Image Analyst 2018 年 12 月 14 日
Use bwlabel() and ismember
[labeledImage, numRegions] = bwlabel(binaryImage);
props = regionprops(labeledImage, 'Area')
% Compute all the areas.
allAreas = [props.Area]
% Display each blob in its own figure.
for k = 1 : numRegions
thisRegion = ismember(labeledImage, k);
figure;
imshow(thisRegion);
drawnow;
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Image Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by