필터 지우기
필터 지우기

masking some desired portion of an image

조회 수: 2 (최근 30일)
Mahua Nandy(Pal)
Mahua Nandy(Pal) 2012년 3월 10일
how do i mask a portion of a rgb(tif) and a gray img with an available gif mask(0 and 255)?I am in urgent need, please answer.Thnx in advance
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 3월 10일
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency

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

답변 (1개)

Image Analyst
Image Analyst 2012년 3월 10일
One way:
% Mask the image.
maskedRgbImage = bsxfun(@times, rgbImage, cast(mask,class(rgbImage)));

Community Treasure Hunt

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

Start Hunting!

Translated by