masking some desired portion of an image

2 次查看(过去 30 天)
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)));

类别

Help CenterFile Exchange 中查找有关 Author Block Masks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by