フィルターのクリア

how to label each object in an image using 8 conncetivity

2 ビュー (過去 30 日間)
john karli
john karli 2019 年 3 月 3 日
コメント済み: john karli 2019 年 3 月 3 日
Image is atteched

採用された回答

Image Analyst
Image Analyst 2019 年 3 月 3 日
Use bwlabel
labeledImage = bwlabel(binaryImage);
  3 件のコメント
Image Analyst
Image Analyst 2019 年 3 月 3 日
Try this:
% Let's assign each blob a different color to visually show the user the distinct blobs.
coloredLabels = label2rgb (labeledImage, 'hsv', 'k', 'shuffle'); % pseudo random color labels
% coloredLabels is an RGB image. We could have applied a colormap instead (but only with R2014b and later)
imshow(coloredLabels);
axis image; % Make sure image is not artificially stretched because of screen's aspect ratio.
caption = sprintf('Pseudo colored labels, from label2rgb().\nBlobs are numbered from top to bottom, then from left to right.');
title(caption, 'FontSize', 12);
john karli
john karli 2019 年 3 月 3 日
Thank you its work

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by