Image segmentation method, computer program, storage medium, and electronic device
An image segmentation method, the method comprising: acquiring an image and a depth image of the image; acquiring a bar graph of the depth image, the bar graph including an abscissa and an ordinate; using a clustering algorithm to cluster the bar graph data to obtain two categories and centers of tw...
Saved in:
Main Authors | , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
16.05.2020
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | An image segmentation method, the method comprising: acquiring an image and a depth image of the image; acquiring a bar graph of the depth image, the bar graph including an abscissa and an ordinate; using a clustering algorithm to cluster the bar graph data to obtain two categories and centers of two categories; determining that the abscissa value with the corresponding smallest ordinate value between the centers of the two categories in the bar graph is a segmentation threshold; determining whether the segmentation threshold meets a preset condition; when the segmentation threshold meets a preset condition, the image is segmented into a foreground region and a background region according to the segmentation threshold. The invention also provides a computer program, a storage medium and an electronic device, which can prevent segmenting the front region and background region at a position where the image depth distribution is continuous. |
---|---|
Bibliography: | Application Number: TW20187139740 |