フィルターのクリア

Pixel extraction and Reclassify

4 ビュー (過去 30 日間)
dian_pratama
dian_pratama 2015 年 3 月 12 日
コメント済み: Image Analyst 2015 年 3 月 17 日
I had segmented image and want to detect of these pixels by extracting all pixels that do not have the same label in their 3×3 neighborhood (N_ns), and then re-classify of these extracted pixels using local information in a 5×5 neighborhood (N_rl). What can I do? Thanks..

採用された回答

Image Analyst
Image Analyst 2015 年 3 月 12 日
labelsYouWantToKeep = [3,5,9]; % Whatever blob numbers you want.
% Get a new labeled image with only those blobs in it.
newLabeledImage = ismember(originalLabeledImage, labelsYouWantToKeep);
imshow(newLabeledImage, []); % Display it.
% Remeasure with only those blobs in the image.
newMeasurements = regionprops(newLabeledImage);
  4 件のコメント
dian_pratama
dian_pratama 2015 年 3 月 17 日
How about N_ns and N_rl? Can I apply that in matlab? I think before, #3 is 3x3 neighborhood, #5 is 5x5 neighborhood, and #9 is image size. LOL..
Image Analyst
Image Analyst 2015 年 3 月 17 日
Explain more of what you want to do, especially about what you want to do with blobs based on what is in their "neighborhood". Say blob #15 and blob #27 have their centroids or perimeters within 9 pixels of each other - now what????

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by