Re: region growing
You need to get the initial Pixel at X, Y in the image. Save it's properties (assume colour). Then (maybe recursively) branch out from X,Y examining all of the neighbouring pixels. If they are the same colour then keep branching that direction, else stop.
Alternatively, initially, process the whole of the pixels in bitmap into a 2-dimentional Boolean array. true=match, false=fail and then perform the same algorithm. This way you can decouple the 'match' criteria from the examination algorithm. ie the match may only require the colour to be a near match (threshold). I bit like the "magic wand" tool found in popular paint applications.
Rob
-
Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......
Bookmarks