필터 지우기
필터 지우기

How to work on the white region of this binary mask?

조회 수: 3 (최근 30일)
Samar Ragab
Samar Ragab 2018년 8월 26일
댓글: Afaf Saad 2018년 9월 10일
I have a mammogram database and I want to apply some features on the white region.
  댓글 수: 1
Afaf Saad
Afaf Saad 2018년 9월 10일
Did you removed the pectoral part ? if yes then how ?

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2018년 8월 26일
One easy way is to just process the whole image and then erase the resulting image outside the mask
outputImage = some algorithm using the entire image....
maskedOutputImage = outputImage; % Initialize
maskedOutputImage(~mask) = 0; % Set to zero outside the mask.

추가 답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 8월 26일
편집: KALYAN ACHARJYA 2018년 8월 26일
Yes You can do that easily, Considering binary_image.jpg as a binary image
BW1=binary_image;
binary_image(BW1==1)=your do operation statement or values here:
  댓글 수: 1
Image Analyst
Image Analyst 2018년 8월 26일
편집: Image Analyst 2018년 8월 26일
I think you meant binary_image(BW1 == 1). But be aware that binary_image(BW1=1) is a 1-D vector, not a 2-D image so your algorithm would have to account for that.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by