Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: can we get the rgb image after multiply with binary image
Replies: 6   Last Post: May 26, 2014 9:57 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 12,974
Registered: 12/26/06
Re: can we get the rgb image after multiply with binary image
Posted: Feb 17, 2013 10:30 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Your mask is a different size than your images. Do this, before you try to multiply them, and you'll find out why:

[rows columns numberOfColorChannels] = size(redPlane);
[rows columns numberOfColorChannels] = size(mask);
whos redPlane
whos mask

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.