MATLAB Answers

how can extract part of image

23 views (last 30 days)
fereshte
fereshte on 10 Jun 2014
Commented: fereshte on 18 Jun 2014
hi i want to extract red region from my image.please help me.i attached it

  0 Comments

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 10 Jun 2014
Do you have the original gray scale image, or just this pseudocolored image? If you unfortunately have only the pseudocolored image, see my color segmentation demos in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

  32 Comments

fereshte
fereshte on 18 Jun 2014
i do extract red,green and blue pixels in 3 extracted parts in binary image not only in cropped region. i dont need to crop function.is it possible to use a mask on full of binary image?(to convert colored imge)
Image Analyst
Image Analyst on 18 Jun 2014
I don't know what that means. Do you mean like you want to mask the image so that it remains the full size but just zeros out (blackens) the image outside the mask?
fereshte
fereshte on 18 Jun 2014
The part where to use the mask,convert to color image. I had a change in your program and get a binary image. I want white region convert to original colors and black parts remain the same.

Sign in to comment.

More Answers (0)

Sign in to answer this question.