masking some desired portion of an image

2 vues (au cours des 30 derniers jours)
Mahua Nandy(Pal)
Mahua Nandy(Pal) le 10 Mar 2012
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 commentaire
Walter Roberson
Walter Roberson le 10 Mar 2012
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency

Connectez-vous pour commenter.

Réponses (1)

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

Catégories

En savoir plus sur Author Block Masks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by