CN103578123B - A kind of image-region merges method - Google Patents
A kind of image-region merges method Download PDFInfo
- Publication number
- CN103578123B CN103578123B CN201310469596.5A CN201310469596A CN103578123B CN 103578123 B CN103578123 B CN 103578123B CN 201310469596 A CN201310469596 A CN 201310469596A CN 103578123 B CN103578123 B CN 103578123B
- Authority
- CN
- China
- Prior art keywords
- region
- image
- color
- histogram
- distance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 239000003086 colorant Substances 0.000 claims description 5
- 238000013139 quantization Methods 0.000 claims description 3
- 238000003709 image segmentation Methods 0.000 description 12
- 230000011218 segmentation Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000000638 solvent extraction Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000013598 vector Substances 0.000 description 1
Landscapes
- Image Analysis (AREA)
Abstract
The present invention relates to a kind of image-region and merge method, it is characterised in that: the color histogram map distance of image-region A and image-region B obtains by the following method,Wherein,In formula, p (k) is the color histogram of image-region A, and q (k) is the color histogram of image-region B, wherein k=0,1 ..., Ncolor-1, NcolorThe number in the color quantizing region that expression color histogram adopts, [A0,A1] for the supporting zone of p (k), [B0,B1] for the supporting zone of q (k), (p q) represents the distance between two image-region color histograms to D;According to color histogram map distance D (p, size q), it may be judged whether image-region A and image-region B is merged.
Description
Technical Field
The invention relates to an image region merging method.
Background
Image segmentation plays an important role in pattern recognition and image processing. The results of image segmentation directly determine the performance of object tracking, image understanding, and image compression techniques that encounter objects. Currently, many image processing methods have been proposed, such as: threshold segmentation, feature space clustering techniques, boundary-based segmentation methods, region-based segmentation methods, graph segmentation methods, and the like. In recent years, the graph division method has been receiving more and more attention from researchers. The graph partitioning method mainly studies the node clustering problem, and the mainstream methods include normalized Cut (normalized Cut, N-Cut) and ratio Cut (R-Cut). However, the graph partitioning method has two disadvantages: the required storage space is large and the calculation speed is slow. To overcome these two drawbacks, researchers have proposed a multi-level image segmentation method that combines region-based image segmentation with image segmentation. For example: yang et al propose an image segmentation method based on watershed square and graph theory; tao et al propose an image segmentation method based on Mean Shift (MS) and N-Cut.
Although these region-based image segmentation methods and multi-level image segmentation methods of image segmentation have great advantages in overcoming memory space and computational speed, they generally use simple features (e.g., color mean) to characterize image regions. In multi-level image segmentation, the image area obtained by primary segmentation of an image is usually large, and the features of the image area cannot be completely represented by simple feature vectors. And the research shows that: the color histogram can represent both global and local features of the image color distribution. Thus, the color histogram of the image may show more features. However, the euclidean distance, the histogram intersection distance, or the Bhattacharyya distance, which is suitable for pattern matching and classification, is not suitable for image region merging.
Disclosure of Invention
The invention aims to provide an image area merging method which can effectively realize merging of image areas.
The technical scheme for realizing the invention is as follows:
an image region merging method, characterized by:
the color histogram distance of the image area a and the image area B is obtained by the following method,
wherein,
where p (k) is a color histogram of the image area a, and q (k) is a color histogram of the image area B, where k is 0,1, …, Ncolor-1,NcolorIndicates the number of color quantization regions used for the color histogram, [ A ]0,A1]A support region of p (k) [ B ]0,B1]Support region of q (k), D (p, q) represents the distance between the two image region color histograms;
and judging whether the image area A and the image area B are combined or not according to the size of the distance D (p, q) of the color histogram.
Image area a and image area B may be merged when the color histogram distance D (p, q) < a certain threshold.
The invention has the following beneficial effects:
the color histogram distance calculation method provided by the invention fully considers the characteristics of image areas in multi-level image segmentation, has high accuracy of image area combination, and is simple and easy to implement.
Drawings
FIG. 1 is an example image;
fig. 2 is a color histogram of the A, B, C image region of fig. 1.
Detailed Description
Let A, B denote two image regions, p (k) be the color histogram of region a, and q (k) be the color histogram of region B, where k is 0,1, …, Ncolor-1,NcolorIndicates the number of color quantization regions used for the color histogram, [ A ]0,A1]A support region of p (k), i.e., p (k) ≠ 0 if k ∈ [ A ]0,A1],[B0,B1]A support region of q (k), i.e., q (k) ≠ 0 if k ∈ [ B [)0,B1]. The histogram distance defining area A, B is:
wherein,
in formula (1), D (p, q) represents the distance between histograms p and q, and # represents the intersection of the sets.
Equation (1) indicates that: 1) if region a contains all colors that appear in region B, then the histogram distance between A, B is 0; 2) similarly, if region B contains all the colors that appear in region a, then the histogram distance between A, B is also 0; 3) if region a does not contain any color in region B, then the histogram distance between A, B is also 1; 4) if not the case of 1), 2), 3), the histogram distance between A, B isWherein K0、K1Is related to the intersection of the two sets and is determined by equation (2).
The following examples are provided to further illustrate the beneficial effects of the present invention.
FIG. 1 shows an image and its three regions A, B and C, and FIG. 2 shows the region A, B and C color histogram, where N iscolor512. The histogram distance of the region A, B calculated by the formula (1) is 0.4912, the histogram distance of the region A, C is 0.0795, and the histogram distance of the region B, C is 0.9635. From this, we can judgeThe colors of the regions A, C are close together and can be merged into one region. This is consistent with the clustering results of the human eye.
On the other hand, if the conventional Bhattacharya distance is used, the histogram distance of the region A, B is 0.9995, the histogram distance of the region A, C is 0.6472, and the histogram distance of the region B, C is 0.9993. The histogram distance of the region A, C is 0.6472, indicating that the two regions are not similar in color and should not be merged into one region, which is clearly not consistent with the classification result of the human eye.
Claims (1)
1. An image region merging method, characterized by:
the color histogram distance of the image area a and the image area B is obtained by the following method,
wherein,
where p (k) is a color histogram of the image area a, and q (k) is a color histogram of the image area B, where k is 0,1, …, Ncolor-1,NcolorIndicates the number of color quantization regions used for the color histogram, [ A ]0,A1]A support region of p (k) [ B ]0,B1]Support region for q (k), D (p, q) represents the distance between the two image region color histograms: 1) if region a contains all colors that appear in region B, then the histogram distance between A, B is 0; 2) if region B contains all the colors that appear in region a, then the histogram distance between A, B is also 0; 3) if region a does not contain any color in region B, then the histogram distance between A, B is 1; 4) if not the case of 1), 2), 3), the histogram distance between A, B is
And judging whether the image area A and the image area B are combined or not according to the size of the distance D (p, q) of the color histogram.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310469596.5A CN103578123B (en) | 2013-10-10 | 2013-10-10 | A kind of image-region merges method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310469596.5A CN103578123B (en) | 2013-10-10 | 2013-10-10 | A kind of image-region merges method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103578123A CN103578123A (en) | 2014-02-12 |
CN103578123B true CN103578123B (en) | 2016-06-29 |
Family
ID=50049843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310469596.5A Expired - Fee Related CN103578123B (en) | 2013-10-10 | 2013-10-10 | A kind of image-region merges method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103578123B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625763A (en) * | 2009-04-17 | 2010-01-13 | 华中科技大学 | Method for measuring similarity of spatial color histogram |
CN103065325A (en) * | 2012-12-20 | 2013-04-24 | 中国科学院上海微系统与信息技术研究所 | Target tracking method based on color distance of multicolors and image dividing and aggregating |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6708167B2 (en) * | 1999-11-29 | 2004-03-16 | Lg Electronics, Inc. | Method for searching multimedia data using color histogram |
-
2013
- 2013-10-10 CN CN201310469596.5A patent/CN103578123B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625763A (en) * | 2009-04-17 | 2010-01-13 | 华中科技大学 | Method for measuring similarity of spatial color histogram |
CN103065325A (en) * | 2012-12-20 | 2013-04-24 | 中国科学院上海微系统与信息技术研究所 | Target tracking method based on color distance of multicolors and image dividing and aggregating |
Non-Patent Citations (3)
Title |
---|
Interactive image segmentation by maximal similarity based region merging;Jifeng Ning等;《Pattern Recognition》;20101231;第43卷;第445-456页 * |
一种基于改进粒子滤波的多目标跟踪算法;刘国成等;《控制与决策》;20090228;第24卷(第2期);第317-320页 * |
一种基于空间直方图的Mean-Shift跟踪算法;胡彬等;《计算机应用研究》;20100630;第27卷(第6期);第2394-2397页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103578123A (en) | 2014-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zeng et al. | Image retrieval using spatiograms of colors quantized by gaussian mixture models | |
CN103559500B (en) | A kind of multi-spectral remote sensing image terrain classification method based on spectrum Yu textural characteristics | |
Ren et al. | Exploiting global priors for RGB-D saliency detection | |
US8861842B2 (en) | Method and apparatus for real-time pedestrian detection for urban driving | |
Vosselman | Point cloud segmentation for urban scene classification | |
Chen et al. | Accurate and efficient traffic sign detection using discriminative adaboost and support vector regression | |
Bali et al. | A review on the strategies and techniques of image segmentation | |
US20130004018A1 (en) | Method and apparatus for detecting object using volumetric feature vector and 3d haar-like filters | |
Furuya et al. | Visual saliency weighting and cross-domain manifold ranking for sketch-based image retrieval | |
CN103854016A (en) | Human body behavior classification and identification method and system based on directional common occurrence characteristics | |
CN103218604A (en) | Method for detecting pedestrians in traffic scene based on road surface extraction | |
CN103632153A (en) | Region-based image saliency map extracting method | |
CN107358189A (en) | It is a kind of based on more object detecting methods under the indoor environments of Objective extraction | |
CN103646234A (en) | Face identification method based on LGBPH features | |
CN107563296A (en) | The extracting method and system of rocky coast water front | |
Wang et al. | A novel hyperspectral classification method based on C5. 0 decision tree of multiple combined classifiers | |
CN103578123B (en) | A kind of image-region merges method | |
CN102938152B (en) | Background modeling method in video monitoring | |
CN103810487A (en) | Method and system for target detection and identification of aerial ocean images | |
Wu et al. | A hierarchical object-oriented urban land cover classification using worldview-2 imagery and airborne LiDAR data | |
CN105844639A (en) | Depth map fusion and point cloud filtering algorithm based on geometric constraint | |
CN102663427A (en) | Prior shape sparse convex combination-based method for synchronized object segmentation and identification | |
Costea et al. | Fast traffic scene segmentation using multi-range features from multi-resolution filtered and spatial context channels | |
Xu et al. | Crowd density estimation of scenic spots based on multifeature ensemble learning | |
Duan | An Automatic Extraction Method for Binocular Stereo Colour Vision Image. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160629 Termination date: 20211010 |
|
CF01 | Termination of patent right due to non-payment of annual fee |