필터 지우기
필터 지우기

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 CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by