[go: up one dir, main page]

CN101799930B - Specified color layer extracting device and method - Google Patents

Specified color layer extracting device and method Download PDF

Info

Publication number
CN101799930B
CN101799930B CN2009100073073A CN200910007307A CN101799930B CN 101799930 B CN101799930 B CN 101799930B CN 2009100073073 A CN2009100073073 A CN 2009100073073A CN 200910007307 A CN200910007307 A CN 200910007307A CN 101799930 B CN101799930 B CN 101799930B
Authority
CN
China
Prior art keywords
color
projection
center
interference
projection axis
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
Application number
CN2009100073073A
Other languages
Chinese (zh)
Other versions
CN101799930A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to CN2009100073073A priority Critical patent/CN101799930B/en
Publication of CN101799930A publication Critical patent/CN101799930A/en
Application granted granted Critical
Publication of CN101799930B publication Critical patent/CN101799930B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

本发明涉及指定颜色层提取设备和方法。所述指定颜色层提取设备包括:投影轴值基准获得单元,根据背景颜色中心和干扰色颜色中心获得投影轴设置基准;投影轴设置单元,从目标颜色中心向所述投影轴设置基准进行投影,将所述投影线设置为投影轴;目标色提取器,通过将所述彩色图像的各像素向所述投影轴投影,而提取目标色颜色层的灰度图像。

Figure 200910007307

The invention relates to a specified color layer extraction device and method. The specified color layer extraction device includes: a projection axis value reference obtaining unit, which obtains a projection axis setting reference according to the background color center and the interference color color center; a projection axis setting unit, which projects from the target color center to the projection axis setting reference, The projection line is set as a projection axis; the target color extractor extracts the grayscale image of the color layer of the target color by projecting each pixel of the color image to the projection axis.

Figure 200910007307

Description

Designated color layer extracting device and method
Technical field
The present invention relates to the designated color layer extractive technique of coloured image, relate in particular to the method and apparatus of the designated color layer that extracts coloured image.
Background technology
Along with the continuous development of color image processing, its application is also more and more wider, like industry, commerce, medical science etc.Coloured image is coloured image especially, and dissimilar objects or content are often represented in the zone of different colours, extracts to have the object or the content of particular color, becomes an important images preconditioning technique.
Generally speaking, the color extractive technique in the coloured image can be divided into the three major types type.The first kind, according to the R of this pixel, G, the B value confirms whether this pixel is designated color layer.Document (N.Sherkat for example; T.Allen; And S.Wong.Use of colour for hand-filled form analysisand recognition.Pattern Analysis and Applications; 8 (1): 163-180,2005) pixel is assigned in preassigned some color class according to its rgb value and certain rule.Second type; Directly utilize clustering algorithm that the pixel of color space is gathered into some types; Like document (K.Sobottka, H.Bunke, and H.Kronenberg.Identificationof text on colored book andjournal covers.In Fifth InternationalConference on Document Analysis andRecognition; Pages 57-62,1999) utilize the k-means clustering algorithm to carry out cluster and extract the color of object layer.The 3rd type; Utilize the information of color distribution shape in rgb space to carry out cluster; Like document (M.Worring and L.Todoran.Segmentation of color documents byline oriented clustering using spatial information.In Fifth InternationalConference on Document Analysis and Recognition; Pages 67-70; 1999) think that the shades of colour distribution in the rgb space generally is line style, thereby the cluster of utilizing this constraint information to carry out the shades of colour layer realizes the extraction to the color of object layer.
But, above-mentioned several class methods all have certain defective, first method does not have effectively to utilize the color prior imformation relevant with color document, like color category and number etc.Second kind all is distributed with certain hypothesis to color of pixel in the image with the third method in rgb space, but is difficult in the actual conditions all satisfy.In addition, above-mentioned three kinds of methods all can't be handled the superimposed images zone of different colours.
Summary of the invention
The above-mentioned shortcoming that the present invention is directed to prior art is made, and purpose provides the method and apparatus that from coloured image, extracts designated color layer, and is not enough with the part that remedies prior art, and a kind of useful selection is provided at least.
In order to realize above purpose, following aspect is provided according to the application.
Aspect 1, a kind of designated color layer extracting device are used for extracting the color of object layer from coloured image, and said designated color layer extracting device comprises:
Axis of projection is provided with benchmark and obtains the unit, according to background color center and interference colour color center acquisition axis of projection benchmark is set;
Axis of projection is provided with the unit, and the said axis of projection of mind-set is provided with benchmark and carries out projection from color of object, and said projection line is set to axis of projection;
The aim colour extraction apparatus, through with each pixel of said coloured image to said axis of projection projection, and extract aim colour color layers gray level image.
Aspect 2, according to aspect 1 described designated color layer extracting device; Wherein, Said designated color layer extracting device also comprises at least one among background colour estimator, interference colour estimator and this three of aim colour estimator; Said background colour estimator is used to estimate the background color cluster centre of said coloured image, as said background color center; Said aim colour estimator is used to estimate the color of object cluster centre of said coloured image, and as said color of object center, said interference colour estimator is used to estimate the interference colour cluster centre of said coloured image, as the interference colour color center.
Aspect 3, according to aspect 2 described designated color layer extracting devices; Wherein, Said background colour estimator comes estimated background color cluster center through color component histogram method or clustering methodology, and said aim colour estimator or said interference colour estimator come estimating target color cluster center through average drifting method or clustering methodology.
Aspect 4, according to aspect 1 described designated color layer extracting device; Wherein, It is that axis of projection is provided with datum line that said axis of projection is provided with benchmark; The color center that said axis of projection is provided with each color in the set that benchmark obtains the unit to be formed by said background colour and said interference colour is connected with straight line, makes every kind of color center at least through straight line, and said straight line is provided with datum line as said axis of projection.
Aspect 5, according to aspect 4 described designated color layer extracting devices; Wherein, the connected mode of the color center of each color in the set of said background colour and said interference colour composition is connected said background colour color center and each interference colour color center for only with said axis of projection datum line being set.
Aspect 6, according to aspect 4 described designated color layer extracting devices; Wherein, the connected mode of the color center of each color in the set of said background colour and said interference colour composition only is provided with datum line through a said axis of projection for making each interference colour color center.
Aspect 7, according to aspect 4 described designated color layer extracting devices; Wherein, the connected mode of the color center of each color in the set formed of said background colour and said interference colour is provided with datum line for the color center that only makes a kind of color in the said set through two or more said axis of projection.
Aspect 8, according to aspect 1 described designated color layer extracting device; Wherein, Said coloured image comprises two kinds or more kinds of interference colour; It is that axis of projection is provided with reference field that said axis of projection is provided with benchmark; Said axis of projection is provided with benchmark and obtains the determined plane of color center that the unit obtains three kinds of colors in the set that said background colour and said interference colour form, as said axis of projection reference field is set, and makes the color center of every kind of color in the said set through a said axis of projection reference field is set at least.
Aspect 9, according to aspect 1 described designated color layer extracting device; Wherein, When said axis of projection was provided with benchmark and obtains the unit and obtain a plurality of axis of projections benchmark is set, said axis of projection was provided with the unit a plurality of axis of projections correspondingly is set, said aim colour extraction apparatus with each pixel of said coloured image to each said axis of projection projection; To compare at the projection value on each said axis of projection, with the projection value of minimum projection value as this pixel.
Aspect 10, according to aspect 1 described designated color layer extracting device, wherein, said axis of projection is provided with benchmark and obtains the unit and obtain a plurality of said axis of projections reference field is set, each said axis of projection is provided with all color center through background color of reference field.
Aspect 11, a kind of designated color layer method for distilling are used for extracting the color of object layer from coloured image, and said designated color layer method for distilling comprises:
Axis of projection is provided with benchmark and obtains step, according to background color center and interference colour color center acquisition axis of projection benchmark is set;
Axis of projection is provided with step, and the said axis of projection of mind-set is provided with benchmark and carries out projection from color of object, and said projection line is set to axis of projection;
The aim colour extraction step, through with each pixel of said coloured image to said axis of projection projection, and extract aim colour color layers gray level image.
Description of drawings
With reference to below in conjunction with the explanation of accompanying drawing, can understand above and other purpose, characteristics and advantage of the present invention to the embodiment of the invention with being more prone to.In the accompanying drawings, technical characterictic or parts identical or correspondence will adopt identical or corresponding Reference numeral to represent.
Fig. 1 is the block diagram that illustrates according to the designated color layer extracting device that is used for coloured image of the embodiment of the invention.
Fig. 2 shows the process flow diagram that is used for the estimated background color center according to the embodiment of the invention.
Fig. 3 shows the process flow diagram that is used to estimate to disturb color and color of object center according to the embodiment of the invention.
Fig. 4 shows the embodiment that is used for extracting at the color document that contains a kind of background colour, a kind of interference colour the color of object layer according to embodiment of the present invention.
Fig. 5 shows the embodiment that is used for extracting at the coloured image that contains a kind of background colour, multiple interference colour a kind of color of object layer according to embodiment of the present invention.
Fig. 6 shows the embodiment that is used for extracting at the coloured image that contains a kind of background colour, two kinds of interference colours the color of object layer according to embodiment of the present invention.
Fig. 7 shows the embodiment that is used for extracting at the coloured image that contains a kind of background colour, multiple interference colour a kind of color of object layer of another embodiment according to the present invention.
Fig. 8 has schematically shown the particular flow sheet according to the designated color layer method for distilling that is used for coloured image of embodiment of the present invention.
Fig. 9 has schematically shown concrete coloured image and the result of handling according to the mode of the embodiment of Fig. 4 thereof.
Figure 10 has schematically shown concrete coloured image and the result of handling according to the mode of the embodiment of Fig. 6 thereof.
Figure 11 has schematically shown concrete coloured image and the result of handling according to the mode of the embodiment of Fig. 5 or Fig. 7 thereof.
Embodiment
Embodiment of the present invention is described with reference to the accompanying drawings.Should be noted that for purpose clearly, omitted the parts that have nothing to do with the present invention, those of ordinary skills are known and the expression and the description of processing in accompanying drawing and the explanation.
Fig. 1 shows the block diagram according to the designated color layer extracting device 100 of embodiment of the present invention.
As shown in Figure 1, designated color layer equipment 100 comprises that background colour estimator 101, interference colour estimator 102, aim colour estimator 103, axis of projection are provided with benchmark acquisition unit 104, axis of projection is provided with device 105, aim colour extraction apparatus 106.
Be example with the color document images below, the processing of 100 pairs of coloured images of designated color layer equipment of embodiment of the present invention is described.
In the present embodiment; Suppose that the coloured image of input represented by three color component RGB; The background area total area of coloured image is much larger than the foreground area total area, and image is except that containing the color that background color and user specify extraction, and image contains some other known colors.In the gray level image of equipment output, the gray level representative belongs to the confidence level or the probability of intended target look, and gray level is high more, represents confidence level high more.
Fig. 2 shows the process flow diagram of the estimated background color center of background colour estimator 101 according to the preferred embodiment of the present invention.The method of estimated background color center is a lot, for example can adopt average drifting method that color component histogram method, clustering methodology, back also can mention etc.Among Fig. 2 illustration color component histogram method simply fast.Because the area of background area is much larger than the foreground area total area, therefore in the statistic histogram of pixel color component (for example R, G and B three-component), the peak-peak in the corresponding histogram in background color center.Thereby, as shown in Figure 2, at first, added up the histogram of the R component of image pixel, and histogram curve has been done average or gaussian filtering in step 201.Peak-peak in the step 202 search histogram, and write down its pairing R component value R 0Similarly, step 203 with 204 and step 205 and 206 can find G component value G respectively 0With B component value B 0At last, in step 207 color P 0=(R 0, G 0, B 0) color center output as a setting.
Should note; Though in Fig. 2; Histogram, the step of step (step 205 and 206) of searching for the position of peak-peak of step (step 203 and 204) and calculating B component of step (step 201 and 202) and the position of the histogram that calculates the G component, search peak-peak of position of calculating histogram, the search peak-peak of R component walks abreast and carries out, but also can be in sequence.
When the estimated background look, also can adopt clustering methodology.For example; Can adopt mean cluster (K-Means Cluster) or hierarchical cluster (Hierarchical Cluster); Automatically be divided into several classifications to the point of image in color space, and the maximum corresponding background colour of classification of number, the corresponding background colour of its average center.
On the other hand, having imported background colour or not being under the very high situation to the extraction accuracy requirement of designated color layer, also can omit background colour estimator 101.
The operation of the aim colour estimator 103 and the interference colour estimator 102 of embodiment of the present invention is described below in conjunction with Fig. 3.Because aim colour estimator 103 and interference colour estimator 102 can adopt identical method realization, thereby followingly only detailed explanation is carried out in the operation of aim colour estimator 103.In addition, as previously mentioned, background colour estimator 101 also can adopt identical operations.
Fig. 3 shows the process flow diagram of the estimating target color center of aim colour estimator 103 according to the preferred embodiment of the present invention.The method of estimating target color center is also a lot, for example clustering methodology, average drifting (Mean Shift) method etc., among Fig. 3 illustration average drifting (Mean Shift) method.The average drifting method can in color space (for example RGB three dimensions), make the initial target look of appointment converge on the cluster centre of aim colour through the mode of iteration.
Though carrying out designated color layer when extracting, the user generally can the intended target color or is disturbed color, generally speaking; This moment is to the appointment of color of object or interference color; All be qualitatively, for example " black, red, yellow, green, blue or green, blue, purple " is actually a kind of color gamut in other words; Thereby need the color of specified color layers further be quantized, determine interference colour with the center of the aim colour that will extract.
When the estimating target look, also can adopt clustering methodology.For example; Can adopt mean cluster (K-Means Cluster) or hierarchical cluster (Hierarchical Cluster); Automatically be divided into several classifications to the point of image in color space, and from the corresponding color of object of the nearest classification of initial designated color, its classification average can be the center of aim colour.
Having imported the specific aim color value or not being under the very high situation to the extraction accuracy requirement of designated color layer, also can omit aim colour estimator 103 and interference colour estimator 102.
Below in conjunction with Fig. 3 detailed description is carried out in the processing of aim colour estimator 103.
Step 301 is with the color of object initialization aim colour center of user's appointment, P 1(0)=(R 1(0), G 1(0), B 1(0)), wherein 0 represents iterations t=0.
Step 302 is obtained target chromosphere collection, promptly when the t time iteration, with the currency P at aim colour center 1(t)=(R 1(t), G 1(t), B 1(t)) be the centre of sphere, make a spheroid at the RGB color space with certain radius d.
In a kind of scheme, can use fixing radius d to obtain this target chromosphere collection.In another program, can the radius d that adopted be associated with iterating the number of times that has carried out, promptly at the iteration initial stage, the centre of sphere is positioned at the more sparse zone of pixel, and radius d establishes greatlyyer; In the iteration later stage, the centre of sphere is positioned at the zone of pixel comparatively dense, and radius d establishes lessly.
In addition, can set the interval [d of a d value Min, d Max], equal interval quantizing goes out one group of d value, when the t time iteration, adds up the d value distribution plan of all pixels, searches the feasible interval [d that falls into of a suitable d (t) Min, d (t)] in number of pixels reach predetermined number.The pixel set of collecting may be defined as
I(t)={i|‖(r i,g i,b i)-(R 1(t),R 1(t),R 1(t))‖≤d(t)}
Wherein, t representes iteration the t time, and I representes to fall into the set of pixel index, the ‖ of target chromosphere ... ‖ representes 2 Euclidean distance.
Step 303 is calculated ball and is comprised the color of pixel average, and upgrade the aim colour center with it, promptly
P 1 ( t + 1 ) = ( R 1 ( t + 1 ) , G 1 ( t + 1 ) , B 1 ( t + 1 ) ) = 1 n ( t ) Σ i ∈ I ( t ) ( r i , g i , b i )
Wherein the element number among the I (t) is gathered in n (t) expression.
Step 304 is upgraded iteration variable t.
Step 305 judges whether the iteration result reaches end condition.Although the termination condition shown in the figure is that the drift value at color of object center is enough little, i.e. ‖ P 1(t+1)-P 1(t) ‖<ε (ε is little positive number), but also can utilize maximum iteration time T to limit, promptly t>T perhaps adopts the combination of above two conditions to confirm whether iteration can finish.If fail to satisfy end condition, then change step 302, get into the iterative process of next round.
Step 306, with the result of last iteration as the color of object center P 1=(R 1, G 1, B 1).
The axis of projection of describing first embodiment of the invention below in conjunction with Fig. 4 and Fig. 5 is provided with benchmark and obtains the processing that unit 104, axis of projection are provided with device 105 and aim colour extraction apparatus 106.In first embodiment of the invention; To comprising the file and picture of interference colour; The color center that axis of projection is provided with each color in the set that benchmark obtains unit 104 to be formed by said background colour and said interference colour is connected with straight line; Make every kind of color center at least through straight line, said straight line is provided with datum line as said axis of projection.By axis of projection the unit 105 said axis of projection of mind-set from color of object is set and benchmark is set carries out projection, said projection line is set to axis of projection; At last by aim colour extraction apparatus 106 through with each pixel of said coloured image to said axis of projection projection, and extract aim colour color layers gray level image.
The axis of projection that Fig. 4 shows first embodiment of the invention is provided with benchmark and obtains first embodiment that unit 104, axis of projection are provided with the processing of device 105 and aim colour extraction apparatus 106.In first embodiment of first embodiment of the invention shown in Figure 4, to comprising a kind of file and picture of interference colour, axis of projection is set datum line is set, according to the axis of projection datum line axis of projection is set, extract the principle of color of object layer according to axis of projection.
Particularly, in the example depicted in fig. 4, background colour is a white, and color of object is a black, and interference colour is red.
In the RGB of three-dimensional color space, background colour center and interference colour center represent that with some P0, P01 the aim colour center is with some P 1Expression has axis of projection that benchmark is set and obtains unit 104 P0, P01 are linked to each other with straight line, is designated as line 1, and by axis of projection device 105 is set and crosses the aim colour centers and do the straight line perpendicular to line 1, is designated as line A1, and this line A1 is an axis of projection.
Then, certain the pixel P in the image can find corresponding rgb value with its color in color space, also is a point.Cross this point by aim colour extraction apparatus 106 and do projection to axis of projection.Clearly; The length of the projection of background colour and interference colour (white and red) (is also claimed projection value; Be that it is the probable value of background colour) bigger, and the resulting projection value of the projection of aim colour is less, thus can confirm that by projection value this pixel is the probability of background colour in gray space.
Like this, the projection value linear normalization of all pixels to interval [0,255], is promptly added up the resulting projection value g of projection i, confirm its maximal value g MaxWith minimum value g Min, then that all pixels are corresponding projection value g iLinear mapping is to 0-255, i.e. 255* (g i-g Min)/(g Max-g Min), export the gray level image after the normalization at last, the image of the color of object layer that this gray level image promptly extracts.
Fig. 5 has illustrated second embodiment of first embodiment of the invention.In a second embodiment,, obtain the axis of projection datum line, axis of projection is set, extract the principle of color of object layer according to axis of projection for the file and picture of the interference colour that comprises two or more.
Particularly, in the example depicted in fig. 5, background colour is a white, and color of object is a black, and interference colour is respectively redness, blue and green.
In example as shown in Figure 5, in the RGB of three-dimensional color space, the background colour center is represented with some P0, and the interference colour center is represented with P01, P02, P03 respectively, and the aim colour center is represented with some P1.By axis of projection benchmark acquisition unit 104 is set P01, P02, P03...... are linked to each other with background colour center P 0 usefulness straight line respectively, obtain line 1, line 2, line 3, promptly axis of projection is provided with datum line.By crossing the aim colour center P 1Do vertical line perpendicular to line 1, line 2, line 3 as axis of projection, obtain axis of projection A1, axis of projection A2, axis of projection A3.
For certain the pixel P in the image; Can in color space, find corresponding rgb value with its color; It also is a point; Cross this point by aim colour extraction apparatus 106 and do projection, get the projection of this pixel of conduct in gray space of this pixel value minimum in the projected length (projection value) of each axis of projection to each axis of projection.Clearly, the resulting projection value of the projection of background color is bigger, and the resulting projection value of the projection of color of object is less, thereby can confirm that by projection value this pixel is the probability of background colour in gray space.
All grey scale pixel value linear normalizations to interval [0,255], are promptly added up the resulting projection value g of projection i, confirm its maximal value g MaxWith minimum value g Min, then that all pixels are corresponding projection probable value g iLinear mapping is to 0-255, i.e. 255* (g i-g Min)/(g Max-g Min), export the gray level image after the normalization at last.
In the above embodiments, interference colour (P01, P02, P03) is linked to each other with background colour center P 0 usefulness straight line respectively, obtain line 1, line 2, line 3.Cross the aim colour center P 1Do vertical line perpendicular to line 1, line 2, line 3 as axis of projection.But this is not restrictive, can regard background colour as a kind of common interference colour.In the set of background colour and interference colour formation, at will select a kind of color as the summit look, and each links to each other with this summit look other color with straight line, obtain line 1, line 2, line 3 etc.Cross the aim colour center P 1Do vertical line perpendicular to line 1, line 2, line 3 as axis of projection.
In another embodiment, can background colour and interference colour aim colour for example be divided into two groups that number equates randomly, the interference colour in two groups connects with straight line correspondingly, crosses the aim colour center P then 1Do vertical line perpendicular to these lines as axis of projection.For example for the situation of color image shown in Figure 5, can background colour and interference colour be divided into two groups (that is, white and red one group, blue and green one group), interconnect between two groups then, thereby obtain line 1 and line 2, and confirm axis of projection A1 and A2 thus.
Then,, cross this point and do projection, get the projection of this pixel of conduct in gray space of this pixel value minimum in the projected length (projection value) of each axis of projection to each axis of projection for certain the pixel P in the image.
If can not be divided into two groups that equate fully, then remaining a kind of color can link to each other with straight line with background colour or arbitrary other interference colour, crosses the aim colour center P then 1Do vertical line perpendicular to this line as axis of projection.
In addition; Similar with the situation of background color shown in Figure 5; The line of the color center of one or more color in the set of forming through background colour and interference colour can have many; A kind of color in promptly should set can link to each other with straight line with two kinds or more colors in this set, and so axis of projection is set.
In the superincumbent statement, Fig. 4 shows a kind of situation of interference colour, and Fig. 5 shows the situation of three kinds of interference colours, but the present invention is not limited, but goes for the situation of two kinds or four kinds or more kinds of interference colours.Owing to can obtain similarly to two kinds of interference colours with to the situation of interference colour more than three kinds, therefore not repeat them here.
Describing second embodiment of the invention axis of projection below in conjunction with Fig. 6 and Fig. 7 is provided with benchmark and obtains the handling principle that unit 104, axis of projection are provided with device 105 and aim colour extraction apparatus 106.In second embodiment of the invention; To comprising the file and picture of two kinds or more kinds of interference colours; Axis of projection is provided with benchmark and obtains the determined plane of color center that unit 104 obtains three kinds of colors in the set that said background colours and said interference colour form; As said axis of projection reference field is set, and makes the color center of every kind of color in the said set through a said axis of projection reference field is set at least.By axis of projection the unit 105 said axis of projection of mind-set from color of object is set and benchmark is set carries out projection, said projection line is set to axis of projection; At last by aim colour extraction apparatus 106 through with each pixel of said coloured image to said axis of projection projection, and extract aim colour color layers gray level image.
Fig. 6 shows axis of projection according to second embodiment of the present invention and benchmark is set obtains first embodiment that unit 104, axis of projection are provided with the processing of device 105 and aim colour extraction apparatus 106.In this first embodiment, for the file and picture that comprises 2 kinds of interference colours, the axis of projection reference field is set, axis of projection is set according to the axis of projection reference field, extract the color of object layer according to axis of projection.
Particularly, in the example depicted in fig. 6, background colour is a white, and color of object is a black, and interference colour is respectively red and green.
In the example depicted in fig. 6, in the RGB of three-dimensional color space, the background colour center representes that with some P0 interference colour representes that with P01 and P02 the aim colour center is represented with some P1.Axis of projection is provided with benchmark and obtains unit 104 plane of P01, P02,3 formations of P0 is made as the axis of projection reference field.Axis of projection is provided with device 105 and crosses the straight line that aim colour center P 1 is done perpendicular to this plane, is designated as line A1, and this line is an axis of projection.In the present invention, planes (plane that for example P01, P02, P0 formed) background colour and interference colour composition or that a plurality of interference colours are formed are called axis of projection reference field is set.Axis of projection is provided with datum line and axis of projection to be provided with reference field and to become the axis of projection benchmark.
Then, with above-described similar, certain the pixel P in the image can find corresponding rgb value with its color in color space, also is a point.Cross this point by aim colour extraction apparatus 106 and do projection to axis of projection.The projection value linear normalization of all pixels to interval [0,255], is exported the gray level image after the normalization, the image of the color of object layer that this gray level image promptly extracts at last.
Fig. 7 shows axis of projection according to second embodiment of the present invention and benchmark is set obtains second embodiment that unit 104, axis of projection are provided with the processing of device 105 and aim colour extraction apparatus 106.In this second embodiment, for the file and picture that comprises 3 kinds of interference colours, the axis of projection reference field is set, axis of projection is set according to the axis of projection reference field, extract the color of object layer according to axis of projection.
Particularly, in the example depicted in fig. 7, background colour is a white, and color of object is a black, and interference colour is respectively redness, green and blue.
In the example depicted in fig. 7, in the RGB of three-dimensional color space, the background colour center representes that with some P0 interference colour representes that with P01, P02 and P03 the aim colour center is represented with some P1.3 of P01, P02, P0 constitute a plane, cross the straight line that aim colour center P 1 is done perpendicular to this plane, i.e. axis of projection A1, and simultaneously, P03, P02,3 of P0 constitute another plane, cross the straight line that aim colour center P 1 is done perpendicular to this plane, i.e. axis of projection A2.
Then, with above-described similar, certain the pixel P in the image can find corresponding rgb value with its color in color space, also is a point.Cross this point and do projection respectively, get one less in two projection values to axis of projection A1 and A2, as this pixel final projection value.The projection value linear normalization of all pixels to interval [0,255], is exported the gray level image after the normalization, the image of the color of object layer that this gray level image promptly extracts at last.
In the superincumbent statement, Fig. 6 shows the situation of 2 kinds of interference colours, and Fig. 7 shows the situation of three kinds of interference colours, but the present invention is not limited, but goes for the situation of four kinds or more kinds of interference colours.Because the situation to four kinds or more kinds of interference colours can obtain similarly, therefore do not repeat them here.
Fig. 8 shows the process flow diagram according to the designated color layer method for distilling of one embodiment of the present invention.
At first, in step 801, confirm the background colour center.As stated, the method for confirming the background colour center can be histogram method, clustering procedure or average drifting method.
Then, in step 802, confirm each interference colour center.
Subsequently, in step 803, confirm the aim colour center.
The method of confirming each interference colour center and aim colour center can adopt clustering procedure and average drifting method.
Though step 801-803 is in sequence in the drawings, these steps can walk abreast and carry out.And, when ratio of precision not high in desired precision or background colour, aim colour and the interference colour imported is higher, can omit these steps.
Step 801-803 can be accomplished by background colour estimator 101, interference colour estimator 102 and aim colour estimator 103 respectively.
Subsequently, obtain the processing that axis of projection is provided with benchmark in step 804.
In one embodiment, benchmark is set is that axis of projection is provided with datum line to said axis of projection.Particularly, can the color center of each color in the set of background colour and interference colour composition be interconnected with straight line, make every kind of color center pass through straight line at least.
In a kind of concrete embodiment, respectively each interference colour center is connected with the background colour center with straight line.These straight lines have constituted axis of projection datum line have been set.
In another concrete embodiment, a certain interference colour center as the summit look, is connected with the background colour center other interference colour center respectively with straight line with this interference colour center.These straight lines have constituted axis of projection datum line have been set.
In another concrete embodiment, the color center through a kind of or more colors in interference colour and the set that background colour is formed is connected with other color straight line in two or more this set.
In another embodiment, benchmark is set is that axis of projection is provided with reference field to said axis of projection.Particularly, the color center of each color in the set of forming with background colour and interference colour is confirmed one or more plane, on the plane that every kind of color center is positioned at least determined.
Step 804 is provided with benchmark acquiring unit 104 by axis of projection and realizes.
Then, in step 805, axis of projection is set.
Particularly, cross the aim colour center do perpendicular to these axis of projections benchmark is set vertical line as axis of projection.
Step 805 can be provided with device 105 by axis of projection and accomplish.
In step 806,, cross this point and do projection then, get the projection value of pixel value on axis of projection of this pixel, as the gray-scale value of this pixel in gray space to axis of projection for each pixel P in the image.When a plurality of axis of projection, get the projection value of this pixel value minimum in the projection value of each axis of projection, as the gray-scale value of this pixel in gray space.
At last, in step 907, the gray-scale value linear normalization of all pixels to interval [0,255], is promptly added up the resulting projection value g of projection i, confirm its gray-scale value g MaxWith minimum value g Min, then with all pixel corresponding gray g iLinear mapping is to 0-255, i.e. 255* (g i-g Min)/(g Max-g Min), export the gray level image after the normalization at last.
Fig. 9 has schematically provided the designated color layer extracting device that utilizes Fig. 1 or has adopted designated color layer method for distilling shown in Figure 8 to handle the concrete example of coloured image.Particularly, Fig. 9 has schematically shown concrete coloured image and the result of handling according to the mode of the embodiment of Fig. 4 thereof.In original colorful image, in the input color file and picture shown in Fig. 9 top, background color is a white, and the literal and the redness that contain black are affixed one's seal.Show at Fig. 9 middle part utilize Fig. 4 institute specifically the method for example be designated color layer with the black layer, be the gray level image that interference colour was extracted with red seal.It is designated color layer that Fig. 9 bottom shows with red seal, is interference colour with the black layer, utilize Fig. 4 the gray level image that extracts of the method for concrete example.In the gray level image that processing obtains, background white and interference colour all become white, have obtained inhibition, and color of object becomes black, has obtained reservation.The lap of target white and interference colour becomes grey.The gray-scale value of pixel has just embodied it and has belonged to the power of designated color.
Figure 10 has schematically provided the designated color layer extracting device that utilizes Fig. 1 or has adopted designated color layer method for distilling shown in Figure 8 to handle the concrete example of coloured image.Particularly, Figure 10 has schematically shown concrete coloured image and the result of handling according to the mode of the embodiment of Fig. 6 thereof.In the illustrative original colorful image of Figure 10 left side institute, background color is a white, specifies and extracts black layer.The viridescent form line of interference colour, redness are affixed one's seal, and this image can be the image of bmp form.On Figure 10 right side in the gray level image after the illustrative extraction, background white and interference colour all become white, have obtained inhibition, target black becomes black, has obtained reservation.Aim colour becomes grey with the lap that disturbs redness.The gray-scale value of pixel has just embodied it and has belonged to the power of designated color (being black here).
Figure 11 has schematically provided the designated color layer extracting device that utilizes Fig. 1 or has adopted designated color layer method for distilling shown in Figure 8 to handle the concrete example of coloured image.Particularly, Figure 11 has schematically shown concrete coloured image and the result of handling according to the mode of the embodiment of Fig. 5 or Fig. 7 thereof.In the shown original bmp coloured image of Figure 11 topmost, background color is a white, comprises red seal, green invoice title, the invoice number (0073140) of black and blue exabyte etc.
Illustrating to have provided with the green at the middle part of Figure 11 is interference colour, is the gray level image that aim colour extracted with black.Can find out that from this gray level image background white and green all become white, and not as all the other colors of interference colour, have obtained good reservation like redness, blueness etc., occur with the form with respect to the different gray scales of aim colour.
What illustrate in the bottom of Figure 11 to provide is interference colour with green, redness, is the gray level image that aim colour extracted with black.Can find out that from this gray level image background white, green and redness all become white, and all the other several kinds of color of objects have all obtained good reservation, occur with the form with respect to the different gray scales of aim colour.
Can find out also that from Figure 11 the present invention can effectively remove particular color.
The description that should be noted that the front is exemplary, is not limitation of the present invention.For example, the present invention also can adopt the method for other expression color, for example CMY, YUV, YCrCb space etc., and the scheme of extracting color layers this moment can be identical with the front.
According to embodiments of the invention, can from coloured image, extract the color layers of appointment.It can make full use of the information of input, and the required information of knowing is also less.In certain embodiments, only need know color of object attribute and interference colour to be extracted, and need not know the content of coloured image and other color that is comprised.It is output as gray level image; The strong and weak represent pixel color of gray scale belongs to the confidence level (perhaps probability) of color of object; Even in the overlapping region of color of object and other color, also can isolate the color of object zone, can handle the overlapping region of different colours preferably.
The technician who is familiar with the field of the invention should be appreciated that; Any processing in the process flow diagram of this paper or that otherwise describe or method description or square frame can be understood that promptly to comprise by simple hard-wired parts, element, device, unit etc.; The code that also comprises one or more executable instruction of the concrete logic function that is used for realizing this processing or step is expressed module, code segment or code portions, promptly also can be realized by software.In addition, also can realize through the combination of computer software and hardware.
Logic in the process flow diagram of this paper or that otherwise describe and/or step for example can be considered the orderly expression of the executable instruction that is used to realize logic function; Can through or combined command executive system, equipment or device (for example, the other system of this instruction maybe can called and carry out in computer-based system, the system that contains processor from instruction execution system, equipment or device) in any computer-readable medium that uses, realize these logics and/or step.In the context of this paper, " computer-readable medium " can be can comprise, store, pass on, propagate or transmit through or any device of the program used of combined command executive system, equipment or device.Computer-readable medium for example can but be not limited to electricity, magnetic, optics, electromagnetism, infrared or semiconductor system, unit or propagation medium.The embodiment more specifically (non exhaustive) of computer-readable medium comprises the following: have one or more leads electrical connection (electricity), portable computer diskette (magnetic), random-access memory (ram) (electricity), ROM (read-only memory) (ROM) (electricity) but erasing type programmable read only memory (EPROM or flash memory) (electricity), optical fiber (optics) and portable optic disk ROM (read-only memory) (CDROM) (optics).Note; Computer-readable medium even can be paper spare or other the suitable media that is printed on program above that; Because can come this program of electron capture via for example paper spare or other media being carried out optical scanning; Then compiling, explain or in a suitable manner this program carried out other processing as required, then with this procedure stores in computer memory.
With reference to specific embodiment the present invention has been described in the instructions in front.Yet those of ordinary skill in the art understands, and under the prerequisite that does not depart from the scope of the present invention that limits like claims, can carry out various modifications and change.

Claims (10)

1.一种指定颜色层提取设备,用于从彩色图像中提取目标颜色层,即指定颜色层,所述指定颜色层提取设备包括:1. A designated color layer extraction device is used to extract a target color layer from a color image, i.e. a designated color layer, and the designated color layer extraction device includes: 投影轴设置基准获得单元,根据背景颜色中心和干扰色颜色中心获得投影轴设置基准;The projection axis setting reference acquisition unit obtains the projection axis setting reference according to the background color center and the interference color color center; 投影轴设置单元,从目标颜色中心向所述投影轴设置基准进行投影,将进行所述投影所形成的投影线设置为投影轴;a projection axis setting unit, which projects from the target color center to the projection axis setting reference, and sets the projection line formed by performing the projection as the projection axis; 目标色提取器,通过将所述彩色图像的各像素向所述投影轴投影,而提取目标色颜色层灰度图像。The target color extractor extracts the gray scale image of the target color layer by projecting each pixel of the color image onto the projection axis. 2.根据权利要求1所述的指定颜色层提取设备,其中,所述指定颜色层提取设备还包括背景色估计器、干扰色估计器和目标色估计器这三者中的至少一个,所述背景色估计器用于估计所述彩色图像的背景颜色聚类中心,作为所述背景颜色中心;所述目标色估计器用于估计所述彩色图像的目标颜色聚类中心,作为所述目标颜色中心,所述干扰色估计器用于估计所述彩色图像的干扰色聚类中心,作为干扰色颜色中心。2. The designated color layer extraction device according to claim 1, wherein the designated color layer extraction device further comprises at least one of a background color estimator, an interference color estimator and a target color estimator, the The background color estimator is used to estimate the background color cluster center of the color image as the background color center; the target color estimator is used to estimate the target color cluster center of the color image as the target color center, The interference color estimator is used for estimating the interference color cluster center of the color image as an interference color color center. 3.根据权利要求2所述的指定颜色层提取设备,其中,所述背景色估计器通过颜色分量直方图法、均值漂移法或聚类分析法来估计背景颜色聚类中心,所述目标色估计器或所述干扰色估计器通过均值漂移法或聚类分析法来估计目标颜色聚类中心或干扰色聚类中心。3. The designated color layer extraction device according to claim 2, wherein the background color estimator estimates the background color cluster center by color component histogram method, mean shift method or cluster analysis method, and the target color The estimator or the interference color estimator estimates the target color cluster center or the interference color cluster center through a mean shift method or a cluster analysis method. 4.根据权利要求1所述的指定颜色层提取设备,其中,所述投影轴设置基准为投影轴设置基准线,所述投影轴设置基准获得单元将所述背景色和所述干扰色组成的集合中的各颜色的颜色中心用直线连接,使每种颜色中心至少通过一条直线,将所述直线作为所述投影轴设置基准线。4. The designated color layer extraction device according to claim 1, wherein the projection axis setting reference is a projection axis setting reference line, and the projection axis setting reference obtaining unit combines the background color and the interference color The color centers of the colors in the set are connected by a straight line, so that each color center passes through at least one straight line, and the straight line is used as the reference line for setting the projection axis. 5.根据权利要求4所述的指定颜色层提取设备,其中,所述背景色和所述干扰色组成的集合中的各颜色的颜色中心的连接方式为仅用所述投影轴设置基准线连接所述背景色颜色中心和各干扰色颜色中心。5. The designated color layer extraction device according to claim 4, wherein the connection mode of the color centers of each color in the set composed of the background color and the interference color is to only use the projection axis to set a reference line connection The color center of the background color and the color center of each interference color. 6.根据权利要求4所述的指定颜色层提取设备,其中,所述背景色和所述干扰色组成的集合中的各颜色的颜色中心的连接方式为使各干扰色颜色中心仅通过一条所述投影轴设置基准线。6. The designated color layer extraction device according to claim 4, wherein the connection mode of the color centers of each color in the set composed of the background color and the interference color is to make each interference color color center only pass through one The above-mentioned projection axis sets the reference line. 7.根据权利要求4所述的指定颜色层提取设备,其中,所述背景色和所述干扰色组成的集合中的各颜色的颜色中心的连接方式为仅使所述集合中的一种颜色的颜色中心通过两条或两条以上的所述投影轴设置基准线。7. The designated color layer extraction device according to claim 4, wherein the connection mode of the color centers of each color in the set composed of the background color and the interference color is such that only one color in the set The color center sets the reference line through two or more of the projection axes. 8.根据权利要求1所述的指定颜色层提取设备,其中,所述彩色图像包括两种或更多种干扰色,所述投影轴设置基准为投影轴设置基准面,所述投影轴设置基准获得单元获得所述背景色和所述干扰色组成的集合中的三种颜色的颜色中心所确定的平面,作为所述投影轴设置基准面,并使所述集合中的每种颜色的颜色中心至少通过一个所述投影轴设置基准面。8. The designated color layer extraction device according to claim 1, wherein the color image includes two or more interference colors, the projection axis setting reference is a projection axis setting reference plane, and the projection axis setting reference The obtaining unit obtains the plane determined by the color centers of the three colors in the set composed of the background color and the interference color, sets the reference plane as the projection axis, and makes the color center of each color in the set A reference plane is provided by at least one of said projection axes. 9.根据权利要求1所述的指定颜色层提取设备,其中,当所述投影轴设置基准获得单元获得多个投影轴设置基准时,所述投影轴设置单元相应地设置多个投影轴,所述目标色提取器将所述彩色图像的各像素向各所述投影轴投影,将在各所述投影轴上的投影值进行比较,将最小的投影值作为该像素的投影值,利用所述投影值获得所述目标色颜色层灰度图像。9. The specified color layer extracting device according to claim 1, wherein, when the projection axis setting reference obtaining unit obtains a plurality of projection axis setting references, the projection axis setting unit sets a plurality of projection axes accordingly, the The target color extractor projects each pixel of the color image to each of the projection axes, compares the projection values on each of the projection axes, takes the smallest projection value as the projection value of the pixel, and utilizes the The grayscale image of the color layer of the target color is obtained by projecting the values. 10.一种指定颜色层提取方法,用于从彩色图像中提取目标颜色层,即指定颜色层,所述指定颜色层提取方法包括:10. A method for extracting a designated color layer, used to extract a target color layer from a color image, i.e. a designated color layer, the method for extracting a designated color layer comprises: 投影轴设置基准获得步骤,根据背景颜色中心和干扰色颜色中心获得投影轴设置基准;The projection axis setting reference obtaining step is to obtain the projection axis setting reference according to the background color center and the interference color color center; 投影轴设置步骤,从目标颜色中心向所述投影轴设置基准进行投影,将进行所述投影所形成的投影线设置为投影轴;The projection axis setting step is to project from the target color center to the projection axis setting reference, and set the projection line formed by the projection as the projection axis; 目标色提取步骤,通过将所述彩色图像的各像素向所述投影轴投影,而提取目标色颜色层灰度图像。The target color extraction step is to extract the grayscale image of the target color layer by projecting each pixel of the color image onto the projection axis.
CN2009100073073A 2009-02-11 2009-02-11 Specified color layer extracting device and method Expired - Fee Related CN101799930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100073073A CN101799930B (en) 2009-02-11 2009-02-11 Specified color layer extracting device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100073073A CN101799930B (en) 2009-02-11 2009-02-11 Specified color layer extracting device and method

Publications (2)

Publication Number Publication Date
CN101799930A CN101799930A (en) 2010-08-11
CN101799930B true CN101799930B (en) 2012-06-13

Family

ID=42595602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100073073A Expired - Fee Related CN101799930B (en) 2009-02-11 2009-02-11 Specified color layer extracting device and method

Country Status (1)

Country Link
CN (1) CN101799930B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1395222A (en) * 2001-06-29 2003-02-05 三星电子株式会社 Representation and diawing method of three-D target and method for imaging movable three-D target
CN1853200A (en) * 2003-09-17 2006-10-25 皇家飞利浦电子股份有限公司 System and method for rendering 3-D images on a 3-d image display screen
CN101599124A (en) * 2008-06-03 2009-12-09 汉王科技股份有限公司 A kind of from video image the method and apparatus of separating character

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1395222A (en) * 2001-06-29 2003-02-05 三星电子株式会社 Representation and diawing method of three-D target and method for imaging movable three-D target
CN1853200A (en) * 2003-09-17 2006-10-25 皇家飞利浦电子股份有限公司 System and method for rendering 3-D images on a 3-d image display screen
CN101599124A (en) * 2008-06-03 2009-12-09 汉王科技股份有限公司 A kind of from video image the method and apparatus of separating character

Also Published As

Publication number Publication date
CN101799930A (en) 2010-08-11

Similar Documents

Publication Publication Date Title
Rocco et al. Neighbourhood consensus networks
CN109190752B (en) Image Semantic Segmentation Based on Deep Learning Global and Local Features
Liu et al. 3D Point cloud analysis
Alidoost et al. A CNN-based approach for automatic building detection and recognition of roof types using a single aerial image
CN107766933B (en) A visualization method for explaining convolutional neural networks
CN108921120B (en) Cigarette identification method suitable for wide retail scene
CN108596203B (en) An optimization method for the surface wear detection model of the pantograph carbon sliding plate by parallel pooling layers
Recky et al. Windows detection using k-means in cie-lab color space
CN114299324B (en) Pathological image classification method and system based on multiscale domain countermeasure network
CN110647875A (en) Method for segmenting and identifying model structure of blood cells and blood cell identification method
CN111291779B (en) Vehicle information identification method, system, memory and processor
CN110838105A (en) A Method for Image Recognition and Reconstruction of Business Process Model
CN104778464A (en) Garment positioning and detecting method based on depth convolution nerve network
Hu et al. RGB-D semantic segmentation: a review
Musicco et al. Automatic point cloud segmentation for the detection of alterations on historical buildings through an unsupervised and clustering-based Machine Learning approach
CN108230330B (en) Method for quickly segmenting highway pavement and positioning camera
CN118570212B (en) Display screen defect detection method and system based on enhanced feature extraction network
CN110059765B (en) A system and method for intelligent identification and classification of minerals
CN114241226A (en) Three-dimensional point cloud semantic segmentation method based on multi-neighborhood characteristics of hybrid model
CN114419323A (en) Cross-modal learning and domain self-adaptive RGBD image semantic segmentation method
Mirande et al. A graph-based approach for simultaneous semantic and instance segmentation of plant 3D point clouds
CN111652200A (en) Processing method, device and equipment for distinguishing multiple vehicles from pictures in vehicle insurance case
CN104732644A (en) Quality control method for paper money authentication and system thereof
CN118736322B (en) Application of deep dictionary learning based on neighborhood atom enhancement in anomaly detection
CN103136536A (en) System and method for detecting target and method for exacting image features

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20120613

Termination date: 20220211

CF01 Termination of patent right due to non-payment of annual fee