how to do masking of color image?

3 views (last 30 days)
HI,
How to do masking for the color image;
thanks

Accepted Answer

Image Analyst
Image Analyst on 19 May 2014
Here's how to mask an RGB image with a logical mask image (courtesy of Sean de Wolski):
% Mask the image using bsxfun() function
maskedRgbImage = bsxfun(@times, rgbImage, cast(mask, class(rgbImage)));
  6 Comments
Manoj Kumar
Manoj Kumar on 2 Jun 2014
Hi Image analyst,
can you please remove the attached file as it should be confidential..
thank you...

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!