Image segmentation method and apparatus
An image segmentation and image technology, applied in image analysis, image enhancement, image data processing and other directions, can solve the problems of poor image segmentation, over-segmentation, and the pixel points are not smooth enough with color changes.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] Such as figure 1 As shown, it is a flow chart of the image segmentation method provided by the embodiment of the present invention. The principle of the method is: by using the idea of superpixels, when the image is segmented, the different pixels in the adjacent area in the image are averaged to obtain The change of pixel points tends to be smooth, thereby reducing the phenomenon of over-segmentation and improving the image segmentation effect. The methods include:
[0057] S110, map all the pixels of the image into the CIELAB color space, each pixel corresponds to a unique pixel feature; the pixel feature includes the two-dimensional coordinates of the corresponding pixel on the image and the three-dimensional map to the CIELAB color space coordinate.
[0058] Specifically, the image to be segmented is placed in two-dimensional space coordinates, and the pixels in the image are arranged in an orderly manner one by one, and each pixel point uniquely corresponds to ...
Embodiment 2
[0120] As a preferred solution of the first embodiment above, the difference from the first embodiment is that after step A4 and before step A5, the method also includes:
[0121] If the difference between the two-dimensional coordinates of the center of the kth pre-segmented superpixel in the image and the two-dimensional coordinates of the center of the corresponding first region in the image is greater than the third threshold, then move the center of the kth pre-segmented superpixel to the position corresponding to the minimum color gradient in the RGB color space in the image; the position corresponding to the minimum color gradient in the RGB color space in the image is located in the third region centered on the kth pre-segmented superpixel.
[0122] In this embodiment, when calculating the first superpixel, the center positions of some pre-segmented superpixels obtained may be at the edge positions or noise points of the image. The pixels in the area are severely uneve...
Embodiment 3
[0126] Such as figure 2 As shown, it is a schematic structural diagram of an image segmentation device provided by an embodiment of the present invention, which is used to perform the above-mentioned figure 1 The method shown, the device comprises:
[0127] CIELAB color space mapping module 210, for mapping all pixels of the image into CIELAB color space, each pixel corresponds to a unique pixel feature; the pixel feature includes the two-dimensional coordinates and mapping of the corresponding pixel on the image to three-dimensional coordinates in the CIELAB color space;
[0128] The first superpixel acquisition module 220 is used to evenly divide all the pixels of the image into the preset number of first superpixels first regions, and perform similar pixel processing on each first region and the pixels in its vicinity. dividing the points to obtain the first superpixel corresponding to the first region;
[0129] The second superpixel acquisition module 230 is configured...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com