Pages

Monday, April 25, 2011

Easy way to fill the hole on the image

Is there are a better way to fill the hole in the image? The function just like the imfill in the matlab. Yes, there is the answer.
The just we need is to find a marker image, which labeled the background and the holes in different value, then find the holes position set the value with object; To label the image, 1. get the implement of the image; 2. apply the region grow find the connected object, define the object which connect with edge of the image as background, label a value to express the background, others labeled a value express the hole; 3. find the hole position and take place the value with the object value.
It’s obvious easy to understand than the morphology method to fill hole.

No comments:

Post a Comment