How can you mask images that are a different shape than the ones you need?

2 views (last 30 days)
I am searching an image of an eye for small red blobs, each smaller than 10 pixels in radius. After masking out all non-red pixels, I am left with a sizable number of pixels, some of which are not in the dots I need. Instead, they are in veins, which I do not want to appear in the final image. How do I create a mask for these veins?
  1 Comment
Kirby Fears
Kirby Fears on 20 Nov 2015
Edited: Kirby Fears on 20 Nov 2015
AG,
The problem as stated is hard to answer. Please provide more information to clarify what the data representing a vein (versus a dot) looks like.
Think creatively about the properties of these two different kinds of data. You just need a condition that serves as a catch-all for non-dots.
Let me take a stab at it anyway. You mentioned, "I am searching an image of an eye for small red blobs, each smaller than 10 pixels in radius."
It sounds like a vein (falsely identified as a blob) would have extra red pixels bordering your 10 pixel radius. If that's the case, you just need to exclude blobs that have red pixels bordering the 10 pixel radius.
A rule along these lines should help.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!