4 connected neighbors in region growing

3 views (last 30 days)
Maram Alzubi
Maram Alzubi on 20 Jan 2016
Answered: Image Analyst on 20 Jan 2016
I have a question about a function I'm trying to write Iwant a function Neighbor4(x,y) which is a function that takes seed pixel and go through all its neighbors and check for its intensity, then find the mean for the four neighbors, if it was less that 0.1 then it will produce a new x,y with value 1 and move it to a black image of zeroes
is there a simple way someone can explain to me?

Answers (1)

Image Analyst
Image Analyst on 20 Jan 2016
Maybe you should just try grayconnected()?
Otherwise, try my attached magic wand program (like Adobe Photoshop's magic wand).

Community Treasure Hunt

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

Start Hunting!