IMAGE SEGMENTATION METHOD AND ELECTRONIC DEVICE
摘要:
The invention provides an image segmentation method and an electronic device. The image segmentation method includes the following steps. Regression analysis is performed on a first gray-scale image to obtain a residual image having an object backbone area. A pixel value of each pixel in the object backbone area is defined as an average gray-scale value of the object backbone area in the residual image, and a second gray-scale image having the object backbone area is generated. It is recursively determined whether a residual polarity of each adjacent pixel adjacent to 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 adjacent pixel is greater than a first threshold, so as to expand the object backbone area in the second gray-scale image, which is extracted as a target object.
信息查询
0/0