CN105787965A - Image searching method based on color features - Google Patents

Image searching method based on color features Download PDF

Info

Publication number
CN105787965A
CN105787965A CN201610060488.6A CN201610060488A CN105787965A CN 105787965 A CN105787965 A CN 105787965A CN 201610060488 A CN201610060488 A CN 201610060488A CN 105787965 A CN105787965 A CN 105787965A
Authority
CN
China
Prior art keywords
color
pixel
lab
cluster centre
region
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.)
Granted
Application number
CN201610060488.6A
Other languages
Chinese (zh)
Other versions
CN105787965B (en
Inventor
张芝华
纪勇
张传金
姚莉莉
谢宝
万海峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ANHUI CREARO TECHNOLOGY Co Ltd
Original Assignee
ANHUI CREARO TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ANHUI CREARO TECHNOLOGY Co Ltd filed Critical ANHUI CREARO TECHNOLOGY Co Ltd
Priority to CN201610060488.6A priority Critical patent/CN105787965B/en
Publication of CN105787965A publication Critical patent/CN105787965A/en
Application granted granted Critical
Publication of CN105787965B publication Critical patent/CN105787965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses an image searching method based on color features. The method comprises the following steps: loading a Lab color pattern sample set and color information to be searched, acquiring a color image sample to be searched and performing gamma correction on the color image sample, performing superpixel segmentation processing with SLIC superpixel segmentation algorithm, performing mean value processing on each superpixel region, comparing one pixel value in the superpixel region with each color value in the Lab color patterns sample set by means of the Mahalanois distance. If the color image sample contains all the information in the color information to be searched, the color image sample is an object image. According to the invention, the method conducts searching on images based on color information, which reduces operation amount and increases processing speed and identification precision.

Description

A kind of image search method based on color characteristic
Technical field
The present invention relates to image retrieval technologies field, be specifically related to a kind of image search method based on color characteristic.
Background technology
Along with developing rapidly of multimedia technology, image data amount produced by it is also growing with each passing day, and how rapidly and effectively to retrieve the image of needs in the data of magnanimity, has been current problem demanding prompt solution.Because only that retrieve quickly and accurately and utilize view data, could better utilize these image informations.
Color characteristic is the mankind's a kind of basic visual signatures for perception and differentiation different objects, and in the process analyzing image, color is a kind of important descriptor simplifying Objective extraction and classification.The given color characteristic to retrieve of user sends request to searching system, and system is mated with image data base according to given colouring information, provides a user with retrieval result according to matching similarity size.
Traditional judgement based on colouring information is mostly based on the colouring information of single pixel and processes, and find when coloured image is analyzed, the color of image is usually gradual change, and a kind of color will not only have a pixel, thus cause that retrieval work is cumbersome and complicated, and work efficiency is low.
Summary of the invention
It is an object of the invention to provide a kind of image search method based on color characteristic, thus substantially reducing operand, and improving processing speed.
To achieve these goals, present invention employs techniques below scheme:
A kind of image search method based on color characteristic, its step is as follows:
(1) Lab color mode sample set and colouring information to be checked are loaded;
(2) obtain coloured image sample to be retrieved, and coloured image sample is carried out gamma correction to improve the contrast of coloured image sample;
(3) with SLIC super-pixel partitioning algorithm, the coloured image sample after gamma correction is carried out super-pixel dividing processing, be partitioned into multiple different super-pixel region;
(4) each super-pixel region being partitioned into through step (3) being carried out average value processing, make all pixel values in each super-pixel region identical, its average isIn formula:
L ‾ = Σ n = 0 N k L n / N k a ‾ = Σ n = 0 N k a n / N k b ‾ = Σ n = 0 N k b n / N k
Wherein: NkRepresent the number of pixels in kth region, Ln、an、bnRepresent three-channel pixel value in the corresponding Lab color mode sample of difference;
(5) the Lab color mode sample set loaded in a pixel value in super-pixel region and step (1) will utilize mahalanobis distance to compare between each color value, the sample of color corresponding to color value that then mahalanobis distance is minimum is exactly the color in this super-pixel region, and wherein mahalanobis distance computing formula is:
D i j = ( Lab i - Lab h j ) T S - 1 ( Lab i - Lab h j )
In formula: LabiThe color value of a pixel in expression i-th super-pixel region, LabhjRepresent the color value of h sample, S in the jth class sample in Lab color mode sample set-1Inverse for covariance matrix S, the transposition of T representing matrix;
(6) color in each super-pixel region in coloured image sample is compared with the colouring information to be checked of loading in step (1), if all information contained in coloured image sample in colouring information to be checked, then this coloured image sample is target image.
Above-mentioned mentioned n, k, i, j, h are natural number.
Further scheme, in described step (2), gamma correction is that coloured image sample is carried out non-linear tone editor, then in RGB, the color of three passages of red, green, blue is handled as follows respectively:
R = g a m m a ( r 255.0 ) G = g a m m a ( g 255.0 ) B = g a m m a ( b 255.0 )
Wherein: g a m m a ( x ) = ( x + 0.055 1.055 ) 2.4 ( x > 0.04045 ) x 12.92 ( o t h e r w i s e )
Here r, g, b represent the pixel value of three Color Channels of red, green, blue respectively, and span is [0,255].
Further scheme, the coloured image sample after gamma correction being processed with SLIC super-pixel partitioning algorithm in described step (3), it specifically comprises the following steps that
A first coloured image sample to be retrieved is converted into Lab color space from RGB color and supplies used by the segmentation of follow-up super-pixel by ();
B () initialization of Color image pattern is divided into categorical measure K and the iterations in super-pixel region;It is the coloured image of N for pixel size, with step-lengthInitializing cluster centre, be namely spaced apart s capture vegetarian refreshments for cluster centre point with wide, height, cluster centre is expressed as C with five dimensional vectorsi=[li,ai,bi,xi,yi]T, wherein (li,ai,bi) represent ith cluster center color value, (xi,yi) for the coordinate figure at ith cluster center, T represents transposition;
Ith cluster center CiBe infinitely great when initializing with the distance d (i) of pixel about, i.e. d (i)=∞;
C () is with cluster centre CiCentered by point 3*3 region in, compare the gradient magnitude between two between pixel, and by cluster centre CiMoving on to the minimum region of gradient is Ck, thus avoiding cluster centre is marginal point and noise spot, wherein between two gradient G between pixel (x, y) definition is as follows:
G ( x , y ) = ( V ( x + 1 , y ) - V ( x - 1 , y ) ) 2 + ( ( V ( x , y + 1 ) - V ( x , y - 1 ) ) 2
In formula, V represents five dimensional vectors of pixel, is V [L, a, b, x, y], and wherein (L, a, b) represent the color value of pixel, and (x y) represents the coordinate figure of pixel;
(d) cluster centre C after movementk2s × 2s neighborhood in relatively each pixel is to the space length of cluster centre, wherein 2s × 2s neighborhood refers to cluster centre CkCentered by all pixels of 2s × 2s in region, s is the step sizes in step (b), namely the peripheral region of cluster centre;Then cluster centre is updated, shown in specific as follows:
D s = ( | | Lab i - Lab k | | N L a b ) + ( | | S i - S k | | N s )
C k n = 1 N k Σ i ∈ G k Lab k S k
In upper two formulas: DsIt is expressed as ith pixel to cluster centre CkSpace length;CknFive dimensional vectors for the new cluster centre after updating;LabiRepresent the value of color of ith pixel: Labi=[Li,ai,bi];LabkRepresent cluster centre CkValue of color: Labk=[Lk,ak,bk];SiRepresent the two-dimensional spatial location coordinate of ith pixel, Si=[xi,yi]T, SkRepresent cluster centre CkTwo-dimensional spatial location coordinate, Sk=[xk,yk]T;NlabAnd NsThe respectively colored normaliztion constant with space length;GkRepresent cluster centre CkRepresented cluster areas, NkRepresent cluster centre CkInterior comprised pixel quantity;
Cluster centre C in (e) comparison step (b)iWith pixel in the distance d (i) of surrounding pixel point and step (d) to cluster centre CkSpace length DsBetween size, if Ds < d (i), then update d (i)=Ds, and by label record position now;
F () performs step (d), (e) repeatedly, until reaching the iterations set by step (b);
G () compares the luminance difference of neighboring clusters central area between two, when this difference is less than the threshold value set, by in minimum cluster centre region merging technique to its adjacent maximum cluster centre region, otherwise, this min cluster central area continually looks for nearest cluster centre region and merges, and wherein luminance difference formula is as follows:
Dm=(μ-μm)2
In formula, μ and μmRepresent the average brightness value of min cluster central area and the average brightness value in the adjacent cluster centre region nearest with it, D respectivelymRepresent minimum cluster centre region and nearest with it and maximum adjacent cluster centre regional luminance difference, m=1,2 ..., M.
Further scheme, the step that from RGB color, coloured image sample to be retrieved is converted into Lab color space is as follows:
A first the RGB color of coloured image is transformed into XYZ color space by following formula by ():
X Y Z = M * R G B
In formula: R, G, B represent three passages of color space RGB respectively, three passages in X, Y, Z correspondence XYZ color space, M is the matrix of 3 × 3, and &lsqb; M &rsqb; = 0.436 0.385 0.143 0.222 0.717 0.061 0.014 0.097 0.714
B (), by XYZ color space transforming to Lab space, its conversion formula is as follows:
L * = 116 f ( Y / Y n ) - 16 a * = 500 &lsqb; f ( X / X n ) - f ( Y / Y n ) &rsqb; b * = 200 &lsqb; f ( Y / Y n ) - f ( Z / Z n ) &rsqb;
In formula: f ( t ) = t 1 / 3 i f ( t > ( 6 29 ) 3 1 3 ( 29 6 ) 2 t + 4 29 o t h e r w i s e
L*、a*、b*It is the value of final three passages in LAB color space, Xn、Yn、ZnGeneral acquiescence is all 1.
The present invention changes traditional color search method based on single pixel, is that coloured image sample to be retrieved is carried out color of object judgement, thus retrieving all images meeting requirement rapidly from pile of colorful image.
The present invention divides the image into as the identical super-pixel region of several pixel values first with super-pixel, then the color in each super-pixel region is judged, it is relative to traditional image processing method based on single pixel, each region is processed, namely have only to color of each super-pixel region decision, thus substantially reducing operand, improve processing speed.
Detailed description of the invention
In order to be better understood from present invention, below in conjunction with specific embodiment, the present invention will be further described.Embodiment 1:
A kind of image search method based on color characteristic, its step is as follows:
(1) Lab color mode sample set and colouring information to be checked are loaded;
(2) obtain coloured image sample to be retrieved, and coloured image sample is carried out gamma correction to improve the contrast of coloured image sample;Wherein gamma correction is that coloured image sample is carried out non-linear tone editor, then in RGB, the color of three passages of red, green, blue is handled as follows respectively:
R = g a m m a ( r 255.0 ) G = g a m m a ( g 255.0 ) B = g a m m a ( b 255.0 )
Wherein: g a m m a ( x ) = ( x + 0.055 1.055 ) 2.4 ( x > 0.04045 ) x 12.92 ( o t h e r w i s e )
Here r, g, b represent the pixel value of three Color Channels of red, green, blue respectively, and span is [0,255];Wherein gamma function is not unique, is mainly used to image is carried out non-linear tone editor;
(3) with SLIC super-pixel partitioning algorithm, the coloured image sample after gamma correction is carried out super-pixel dividing processing, be partitioned into multiple different super-pixel region;
Wherein with SLIC super-pixel partitioning algorithm, the coloured image sample after gamma correction being processed, it specifically comprises the following steps that
A first coloured image sample to be retrieved is converted into Lab color space from RGB color and supplies used by the segmentation of follow-up super-pixel by ();
B () initialization of Color image pattern is divided into categorical measure K and the iterations in super-pixel region;It is the coloured image of N for pixel size, with step-lengthInitializing cluster centre, be namely spaced apart s capture vegetarian refreshments for cluster centre point with wide, height, cluster centre is expressed as C with five dimensional vectorsi=[li,ai,bi,xi,yi]T, wherein (li,ai,bi) represent ith cluster center color value, (xi,yi) for the coordinate figure at ith cluster center, T represents transposition;
Ith cluster center CiBe infinitely great when initializing with the distance d (i) of pixel about, i.e. d (i)=∞;
C () is with cluster centre CiCentered by point 3*3 region in, compare the gradient magnitude between two between pixel, and by cluster centre CiMoving on to the minimum region of gradient is Ck, thus avoiding cluster centre is marginal point and noise spot, wherein between two gradient G between pixel (x, y) definition is as follows:
G ( x , y ) = ( ( V ( x + 1 , y ) - V ( x - 1 , y ) ) 2 + ( ( V ( x , y + 1 ) - V ( x , y - 1 ) ) 2
In formula, V represents five dimensional vectors of pixel, is V [L, a, b, x, y], and wherein (L, a, b) represent the color value of pixel, and (x y) represents the coordinate figure of pixel;
(d) cluster centre C after movementk2s × 2s neighborhood in relatively each pixel is to the space length of cluster centre, wherein 2s × 2s neighborhood refers to cluster centre CkCentered by all pixels of 2s × 2s in region, s is the step sizes in step (b), namely the peripheral region of cluster centre;Then cluster centre is updated, shown in specific as follows:
D s = ( | | Lab i - Lab k | | N L a b ) + ( | | S i - S k | | N s )
C k n = 1 N k &Sigma; i &Element; G k Lab k S k
In upper two formulas: DsIt is expressed as ith pixel to cluster centre CkSpace length;CknFive dimensional vectors for the new cluster centre after updating;LabiRepresent the value of color of ith pixel: Labi=[Li,ai,bi];LabkRepresent cluster centre CkValue of color: Labk=[Lk,ak,bk];SiRepresent the two-dimensional spatial location coordinate of ith pixel, Si=[xi,yi]T, SkRepresent cluster centre CkTwo-dimensional spatial location coordinate, Sk=[xk,yk]T;NlabAnd NsThe respectively colored normaliztion constant with space length;GkRepresent cluster centre CkRepresented cluster areas, NkRepresent cluster centre CkInterior comprised pixel quantity;
Cluster centre C in (e) comparison step (b)iWith pixel in the distance d (i) of surrounding pixel point and step (d) to cluster centre CkSpace length DsBetween size, if Ds < d (i), then update d (i)=Ds, and by label record position now;
F () performs step (d), (e) repeatedly, until reaching the iterations set by step (b);
G () compares the luminance difference of neighboring clusters central area between two, when this difference is less than the threshold value set, by in minimum cluster centre region merging technique to its adjacent maximum cluster centre region, otherwise, this min cluster central area continually looks for nearest cluster centre region and merges, and wherein luminance difference formula is as follows:
Dm=(μ-μm)2
In formula, μ and μmRepresent the average brightness value of min cluster central area and the average brightness value in the adjacent cluster centre region nearest with it, D respectivelymRepresent minimum cluster centre region and nearest with it and maximum adjacent cluster centre regional luminance difference, m=1,2 ..., M.
(4) each super-pixel region being partitioned into through step (3) being carried out average value processing, make all pixel values in each super-pixel region identical, its average isIn formula:
L &OverBar; = &Sigma; n = 0 N k L n / N k a &OverBar; = &Sigma; n = 0 N k a n / N k b &OverBar; = &Sigma; n = 0 N k b n / N k
Wherein: NkRepresent the number of pixels in kth region, Ln、an、bnRepresent three-channel pixel value in the corresponding Lab color mode sample of difference;
(5) the Lab color mode sample set loaded in a pixel value in super-pixel region and step (1) will utilize mahalanobis distance to compare between each color value, the sample of color corresponding to color value that then mahalanobis distance is minimum is exactly the color in this super-pixel region, and wherein mahalanobis distance computing formula is:
D i j = ( Lab i - Lab h j ) T S - 1 ( Lab i - Lab h j )
In formula: LabiThe color value of a pixel in expression i-th super-pixel region, LabhjRepresent the color value of h sample, S in the jth class sample in Lab color mode sample set-1Inverse for covariance matrix S, the transposition (above-mentioned mentioned n, k, i, j, h are natural number) of T representing matrix;
(6) color in each super-pixel region in coloured image sample is compared with the colouring information to be checked of loading in step (1), if all information contained in coloured image sample in colouring information to be checked, then this coloured image sample is target image.
Further scheme, the step that from RGB color, coloured image sample to be retrieved is converted into Lab color space is as follows:
A first the RGB color of coloured image is transformed into XYZ color space by following formula by ():
X Y Z = M * R G B
In formula: R, G, B represent three passages of color space RGB respectively, three passages in X, Y, Z correspondence XYZ color space, M is the matrix of 3 × 3, and &lsqb; M &rsqb; = 0.436 0.385 0.143 0.222 0.717 0.061 0.014 0.097 0.714
B (), by XYZ color space transforming to Lab space, its conversion formula is as follows:
L * = 116 f ( Y / Y n ) - 16 a * = 500 &lsqb; f ( X / X n ) - f ( Y / Y n ) &rsqb; b * = 200 &lsqb; f ( Y / Y n ) - f ( Z / Z n ) &rsqb;
In formula: f ( t ) = t 1 / 3 i f ( t > ( 6 29 ) 3 1 3 ( 29 6 ) 2 t + 4 29 o t h e r w i s e
L*、a*、b*It is the value of final three passages in LAB color space, Xn、Yn、ZnGeneral acquiescence is all 1.
Embodiment 2:
Illustrating for the retrieval image containing two kinds of colors red, blue in coloured image to be retrieved for target image, its search method is as follows:
(1) load Lab color mode sample set and colouring information to be checked is red and blue;
(2) obtain coloured image sample to be retrieved, and coloured image sample is carried out gamma correction, to improve the contrast of coloured image sample;
(3) with SLIC super-pixel partitioning algorithm, the coloured image sample after gamma correction is carried out super-pixel dividing processing, be partitioned into multiple different super-pixel region;As being divided into 500 different size of super-pixel regions for the coloured image of 612*563 size, iterations is 20 times;
(4) each super-pixel region being partitioned into through step (3) being carried out average value processing, make all pixel values in each super-pixel region identical, its average is
(5) mahalanobis distance will be utilized to compare between each color value in the Lab color mode sample set loaded in a pixel value in super-pixel region and step (1), then the sample of color corresponding to color value that mahalanobis distance is minimum is exactly the color in this super-pixel region;Because after (4) process, the pixel value in each super-pixel region is identical, so each region only needs to compare once just can the color in this region.It is such as the pixel value in the region of 10 for classification number in a certain super-pixel regionBy mahalanobis distance computing formula(Lab in formulaiThe color value of a pixel in expression i-th super-pixel region, LabhjRepresent the color value of h sample, S in the jth class sample in Lab color mode sample set-1Inverse for covariance matrix S, the transposition of T representing matrix) calculate the mahalanobis distance size between each color value in this pixel value and Lab color mode sample, finally show that this pixel value is minimum with red mahalanobis distance, then the color in this super-pixel region is redness;
(6) after step (5) processes, there is the color of correspondence in each super-pixel region in this coloured image sample, then these colors are compared judgement with the colouring information to be checked of loading is red and blue in step (1) respectively, if existing redness has again blueness in these colors, then illustrate that this coloured image sample is the target image that we to retrieve, otherwise be not then our required target image.
So respectively all of coloured image sample to be retrieved is processed by above-mentioned steps (1)-(6), quickly to retrieve the target image that we are required from thousands of image pattern.
Example discussed above is only that the preferred embodiment of the present invention is described; not the scope of the present invention is defined; under the premise designing spirit without departing from the present invention; various deformation that technical scheme is made by those of ordinary skill in the art and improvement, all should fall in the protection domain that claims of the present invention is determined.

Claims (4)

1. the image search method based on color characteristic, it is characterised in that: step is as follows:
(1) Lab color mode sample set and colouring information to be checked are loaded;
(2) obtain coloured image sample to be retrieved, and coloured image sample is carried out gamma correction to improve the contrast of coloured image sample;
(3) with SLIC super-pixel partitioning algorithm, the coloured image sample after gamma correction is carried out super-pixel dividing processing, be partitioned into multiple different super-pixel region;
(4) each super-pixel region being partitioned into through step (3) being carried out average value processing, make all pixel values in each super-pixel region identical, its average isIn formula:
L &OverBar; = &Sigma; n = 0 N k L n / N k a &OverBar; = &Sigma; n = 0 N k a n / N k b &OverBar; = &Sigma; n = 0 N k b n / N k
Wherein: NkRepresent the number of pixels in kth region, Ln、an、bnRepresent and correspond respectively to three-channel pixel value in Lab color mode sample;
(5) the Lab color mode sample set loaded in a pixel value in super-pixel region and step (1) will utilize mahalanobis distance to compare between each color value, the sample of color corresponding to color value that mahalanobis distance is minimum is exactly the color in this super-pixel region, and wherein mahalanobis distance computing formula is:
D i j = ( Lab i - Lab h j ) T S - 1 ( Lab i - Lab h j )
In formula: LabiThe color value of a pixel in expression i-th super-pixel region, LabhjRepresent the color value of h sample, S in the jth class sample in Lab color mode sample set-1Inverse for covariance matrix S, the transposition of T representing matrix;
(6) color in each super-pixel region in coloured image sample is compared with the colouring information to be checked of loading in step (1), if all information contained in coloured image sample in colouring information to be checked, then this coloured image sample is target image.
2. the image search method based on color characteristic according to claim 1, it is characterized in that: in described step (2), gamma correction is that coloured image sample is carried out non-linear tone editor, then in RGB, the color of three passages of red, green, blue is handled as follows respectively:
R = g a m m a ( r 255.0 ) G = g a m m a ( g 255.0 ) B = g a m m a ( b 255.0 )
Wherein: g a m m a ( x ) = ( x + 0.055 1.055 ) 2.4 ( x > 0.04045 ) x 12.92 ( o t h e r w i s e )
Here r, g, b represent the pixel value of three Color Channels of red, green, blue respectively, and span is [0,255].
3. the image search method based on color characteristic according to claim 1, it is characterised in that: the coloured image sample after gamma correction being processed with SLIC super-pixel partitioning algorithm in described step (3), it specifically comprises the following steps that
A first coloured image sample to be retrieved is converted into Lab color space from RGB color and supplies used by the segmentation of follow-up super-pixel by ();
B () initialization of Color image pattern is divided into categorical measure K and the iterations in super-pixel region;It is the coloured image of N for pixel size, with step-lengthInitializing cluster centre, be namely spaced apart s capture vegetarian refreshments for cluster centre point with wide, height, cluster centre is expressed as C with five dimensional vectorsi=[li,ai,bi,xi,yi]T, wherein (li,ai,bi) represent ith cluster center color value, (xi,yi) for the coordinate figure at ith cluster center, T represents transposition;
Ith cluster center CiBe infinitely great when initializing with the distance d (i) of pixel about, i.e. d (i)=∞;
C () is with cluster centre CiCentered by point 3*3 region in, compare the gradient magnitude between two between pixel, and by cluster centre CiMoving on to the minimum region of gradient is Ck, thus avoiding cluster centre is marginal point and noise spot, wherein between two gradient G between pixel (x, y) definition is as follows:
G ( x , y ) = ( ( V ( x + 1 , y ) - V ( x - 1 , y ) ) 2 + ( ( V ( x , y + 1 ) - V ( x , y - 1 ) ) 2
In formula, V represents five dimensional vectors of pixel, is V [L, a, b, x, y], and wherein (L, a, b) represent the color value of pixel, and (x y) represents the coordinate figure of pixel;
(d) cluster centre C after movementk2s × 2s neighborhood in relatively each pixel is to the space length of cluster centre, wherein 2s × 2s neighborhood refers to cluster centre CkCentered by all pixels of 2s × 2s in region, s is the step sizes in step (b), namely the peripheral region of cluster centre;Then cluster centre is updated, shown in specific as follows:
D s = ( | | Lab i - Lab k | | N L a b ) + ( | | S i - S k | | N s )
C k n = 1 N k &Sigma; i &Element; G k Lab k S k
In upper two formulas: DsIt is expressed as ith pixel to cluster centre CkSpace length;CknFive dimensional vectors for the new cluster centre after updating;LabiRepresent the value of color of ith pixel: Labi=[Li,ai,bi];LabkRepresent cluster centre CkValue of color: Labk=[Lk,ak,bk];SiRepresent the two-dimensional spatial location coordinate of ith pixel, Si=[xi,yi]T, SkRepresent cluster centre CkTwo-dimensional spatial location coordinate, Sk=[xk,yk]T;NlabAnd NsThe respectively colored normaliztion constant with space length;GkRepresent cluster centre CkRepresented cluster areas, NkRepresent cluster centre CkInterior comprised pixel quantity;
Cluster centre C in (e) comparison step (b)iWith pixel in the distance d (i) of surrounding pixel point and step (d) to cluster centre CkSpace length DsBetween size, if Ds < d (i), then update d (i)=Ds, and by label record position now;
F () performs step (d), (e) repeatedly, until reaching the iterations set by step (b);
G () compares the luminance difference of neighboring clusters central area between two, when this difference is less than the threshold value set, by in minimum cluster centre region merging technique to its adjacent maximum cluster centre region, otherwise, this min cluster central area continually looks for nearest cluster centre region and merges, and wherein luminance difference formula is as follows:
Dm=(μ-μm)2
In formula, μ and μmRepresent the average brightness value of min cluster central area and the average brightness value in the adjacent cluster centre region nearest with it, D respectivelymRepresent minimum cluster centre region and nearest with it and maximum adjacent cluster centre regional luminance difference, m=1,2 ..., M.
4. the image search method based on color characteristic according to claim 3, it is characterised in that: the step that from RGB color, coloured image sample to be retrieved is converted into Lab color space is as follows:
A first the RGB color of coloured image is transformed into XYZ color space by following formula by ():
X Y Z = M * R G B
In formula: R, G, B represent three passages of color space RGB respectively, three passages in X, Y, Z correspondence XYZ color space, M is the matrix of 3 × 3, and &lsqb; M &rsqb; = 0.436 0.385 0.143 0.222 0.717 0.061 0.014 0.097 0.714
B (), by XYZ color space transforming to Lab space, its conversion formula is as follows:
L * = 116 f ( Y / Y n ) - 16 a * = 500 &lsqb; f ( X / X n ) - f ( Y / Y n ) &rsqb; b * = 200 &lsqb; f ( Y / Y n ) - f ( Z / Z n ) &rsqb;
In formula: f ( t ) = t 1 / 3 i f ( t > ( 6 29 ) 3 1 3 ( 29 6 ) 2 t + 4 29 o t h e r w i s e
L*、a*、b*It is the value of final three passages in LAB color space, Xn、Yn、ZnGeneral acquiescence is all 1.
CN201610060488.6A 2016-01-26 2016-01-26 A kind of image search method based on color characteristic Active CN105787965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610060488.6A CN105787965B (en) 2016-01-26 2016-01-26 A kind of image search method based on color characteristic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610060488.6A CN105787965B (en) 2016-01-26 2016-01-26 A kind of image search method based on color characteristic

Publications (2)

Publication Number Publication Date
CN105787965A true CN105787965A (en) 2016-07-20
CN105787965B CN105787965B (en) 2018-08-07

Family

ID=56403397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610060488.6A Active CN105787965B (en) 2016-01-26 2016-01-26 A kind of image search method based on color characteristic

Country Status (1)

Country Link
CN (1) CN105787965B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291413A (en) * 2017-06-08 2017-10-24 深圳Tcl新技术有限公司 Display terminal, picture contrast improve method and computer-readable recording medium
CN109598726A (en) * 2018-10-26 2019-04-09 哈尔滨理工大学 A kind of adapting to image target area dividing method based on SLIC
CN111707237A (en) * 2020-06-08 2020-09-25 西安电子科技大学 Building exterior wall surface spraying method based on visual measurement
CN113848186A (en) * 2021-10-15 2021-12-28 广东粤港供水有限公司 Concentration detection method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8326029B1 (en) * 2008-03-21 2012-12-04 Hewlett-Packard Development Company, L.P. Background color driven content retrieval
US20140270432A1 (en) * 2013-03-15 2014-09-18 Sony Corporation Combining information of different levels for content-based retrieval of digital pathology images
CN105022752A (en) * 2014-04-29 2015-11-04 中国电信股份有限公司 Image retrieval method and apparatus
CN105138672A (en) * 2015-09-07 2015-12-09 北京工业大学 Multi-feature fusion image retrieval method
CN105205171A (en) * 2015-10-14 2015-12-30 杭州中威电子股份有限公司 Image retrieval method based on color feature

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8326029B1 (en) * 2008-03-21 2012-12-04 Hewlett-Packard Development Company, L.P. Background color driven content retrieval
US20140270432A1 (en) * 2013-03-15 2014-09-18 Sony Corporation Combining information of different levels for content-based retrieval of digital pathology images
CN105022752A (en) * 2014-04-29 2015-11-04 中国电信股份有限公司 Image retrieval method and apparatus
CN105138672A (en) * 2015-09-07 2015-12-09 北京工业大学 Multi-feature fusion image retrieval method
CN105205171A (en) * 2015-10-14 2015-12-30 杭州中威电子股份有限公司 Image retrieval method based on color feature

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CARLOS ARANGO DUQUE 等: "A RELEVANCE FEEDBACK BASED IMAGE RETRIEVAL APPROACH FOR IMPROVED PERFORMANCE", 《COLOUR AND VISUAL COMPUTING SYMPOSIUM(CVCS)2015》 *
沈新宁: "基于颜色特征的快速图像检索技术的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291413A (en) * 2017-06-08 2017-10-24 深圳Tcl新技术有限公司 Display terminal, picture contrast improve method and computer-readable recording medium
CN109598726A (en) * 2018-10-26 2019-04-09 哈尔滨理工大学 A kind of adapting to image target area dividing method based on SLIC
CN111707237A (en) * 2020-06-08 2020-09-25 西安电子科技大学 Building exterior wall surface spraying method based on visual measurement
CN113848186A (en) * 2021-10-15 2021-12-28 广东粤港供水有限公司 Concentration detection method and related equipment

Also Published As

Publication number Publication date
CN105787965B (en) 2018-08-07

Similar Documents

Publication Publication Date Title
CN110532920B (en) Face recognition method for small-quantity data set based on FaceNet method
CN105354599B (en) A kind of color identification method based on improved SLIC super-pixel segmentation algorithm
CN104361313B (en) A kind of gesture identification method merged based on Multiple Kernel Learning heterogeneous characteristic
CN112241762B (en) Fine-grained identification method for pest and disease damage image classification
US20090097746A1 (en) Color classification method, color recognition method, color classification apparatus, color recognition apparatus, color recognition system, computer program, and recording medium
Almogdady et al. A flower recognition system based on image processing and neural networks
CN105787965A (en) Image searching method based on color features
CN107845085B (en) Method and system for separating and grouping myocardial cell nucleus adhesion areas
CN109145964B (en) Method and system for realizing image color clustering
WO2021082168A1 (en) Method for matching specific target object in scene image
CN104134071A (en) Deformable part model object detection method based on color description
CN111401426B (en) Small sample hyperspectral image classification method based on pseudo label learning
CN110287798B (en) Vector network pedestrian detection method based on feature modularization and context fusion
CN108090928B (en) Method and system for detecting and screening quasi-circular cell area
CN107766798A (en) A kind of Remote Sensing Target detection method based on cloud computing storage and deep learning
CN110458132A (en) One kind is based on random length text recognition method end to end
CN112733912A (en) Fine-grained image recognition method based on multi-grained countermeasure loss
CN105184299A (en) Vehicle body color identification method based on local restriction linearity coding
CN112016519A (en) Hard Triple-based vehicle weight identification method and system
CN110826571B (en) Image traversal algorithm for rapid image identification and feature matching
Zhengming et al. Skin detection in color images
CN111191659B (en) Multi-shape clothes hanger identification method for clothing production system
CN113344047A (en) Platen state identification method based on improved K-means algorithm
Jiang et al. Flexible sliding windows with adaptive pixel strides
CN111428814A (en) Blended yarn color automatic identification matching method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Image searching method based on color features

Effective date of registration: 20200113

Granted publication date: 20180807

Pledgee: Anhui Branch of Bank of Communications Co., Ltd

Pledgor: ANHUI CREARO TECHNOLOGY CO., LTD.

Registration number: Y2020980000075

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20210407

Granted publication date: 20180807

Pledgee: Anhui Branch of Bank of Communications Co.,Ltd.

Pledgor: ANHUI CREARO TECHNOLOGY Co.,Ltd.

Registration number: Y2020980000075

PC01 Cancellation of the registration of the contract for pledge of patent right