CPC G06T 7/143 (2017.01) [G06T 7/12 (2017.01)] | 18 Claims |
1. An image segmentation method comprising:
obtaining a first gray-scale image;
performing regression analysis on the first gray-scale image to obtain a residual image, and determining an object backbone area of the residual image;
calculating an average gray-scale value of the object backbone area in the residual image to define a pixel value of each pixel in the object backbone area as the average gray-scale value, and generating a second gray-scale image having the object backbone area;
recursively determining whether a residual polarity of each of a plurality of adjacent pixels adjacent to a plurality of edge pixels of the object backbone area in the residual image is the same as a residual polarity of the corresponding edge pixel, and whether a pixel value of each of the plurality of adjacent pixels in the residual image is greater than a respectively corresponding first threshold, so as to expand the object backbone area in the second gray-scale image; and
extracting the object backbone area in the second gray-scale image subjected to the recursive determination as a target object.
|