CN101441763B - Multiple-colour tone image unity regulating method based on color transfer - Google Patents

Multiple-colour tone image unity regulating method based on color transfer Download PDF

Info

Publication number
CN101441763B
CN101441763B CN2008101621352A CN200810162135A CN101441763B CN 101441763 B CN101441763 B CN 101441763B CN 2008101621352 A CN2008101621352 A CN 2008101621352A CN 200810162135 A CN200810162135 A CN 200810162135A CN 101441763 B CN101441763 B CN 101441763B
Authority
CN
China
Prior art keywords
image
point
reference picture
sigma
picture
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
CN2008101621352A
Other languages
Chinese (zh)
Other versions
CN101441763A (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN2008101621352A priority Critical patent/CN101441763B/en
Publication of CN101441763A publication Critical patent/CN101441763A/en
Application granted granted Critical
Publication of CN101441763B publication Critical patent/CN101441763B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for uniformly adjusting a multicolor picture based on color transmission. The method comprises the following steps: 1, one picture with two colors is divided into two pictures, namely a reference picture and a picture to be adjusted; and the two pictures are converted to a 1 alpha beta color space; 2, the two pictures are divided through a K mean algorithm; and each partition region of the reference picture is sampled; 3, an expectation maximization algorithm is used to carry out probability partition on the two pictures respectively; and a mapping relation is established between each partition region of the reference picture and each partition region of the picture to be adjusted; 4, the picture to be adjusted is subjected to brightness zooming in order to keep consistency in brightness of the reference picture; and 5, a point of sampling points of the reference picture which is most matched with each point of the picture to be adjusted is searched out; and the color value of the most matched point of the reference picture is transmitted to the corresponding point of the picture to be adjusted. The method has small calculation amount, is convenient and rapid and solves the problem of color discontinuity in the prior multicolor picture adjustment method.

Description

Multi-level image based on the color transmission is unified method of adjustment
Technical field
The present invention relates to a kind of to unifying method of adjustment based on the multi-level image based on the color transmission of color transmission.
Background technology
There is an obvious defects in present remote sensing image: because the subimage of the zones of different in the original image possibly be to be taken under the difference moment and different weather conditions by the satellite of different model to obtain; Therefore when the later stage is spliced demonstration to these images; The problem that the adjacent image tone has big difference will appear; It is lofty visually to seem; The observer is done not feel like oneself and influence interpretation, can bring difficulty for analyzing and processing such as land resources statistics, physical environment monitoring, disaster assessment and the city planning of follow-up geodata, also can the impact analysis statistical accuracy.This problem also often occurs in most commercial GIS software, can see this problem often among the for example now very popular online generalized information system Google Earth by the release of Google company.This shows that the unified research of the tone of remote sensing images seems very necessary.
On present remote sensing image processing correlative study work mainly concentrates on feature extraction and classifies; The research of relevant even look seldom; The still traditional digital image processing method that is adopted in the practice at present, or utilize business software artificially such as Photoshop that image is carried out the tone adjustment.Briefly introduce the colored Enhancement Method of traditional digital picture below:
1) histogram is handled
Histogram is the statistics that the gray scale (colour) of piece image distributes, and has comprised abundant information.The histogram enhancement techniques is just with the foundation of histogram as conversion, makes histogram after the conversion become the shape of expectation.Histogram transformation commonly used has histogram equalization, histogram normalization and histogram coupling in the remote sensing image processing.
Histogram equalization is actually image is carried out non-linear stretching, redistributes gray scale (colour) value of image pixel, makes the pixel quantity in certain gray scale (colour) scope roughly the same.Histogram normalization is that the histogram transformation with image is the shape of normal distribution, and gray scale (colour) frequency distribution of image has the shape near the distribution of normal state if this is, just can think that this width of cloth image is fit to eye-observation.The histogram coupling is to be the histogram of certain designated shape or the histogram of a certain reference picture to the histogram transformation of original image; Adjust gray scale (colour) value of each pixel of source images then according to the histogram of known designated modality, obtain the image of a width of cloth histogram and reference histograms coupling at last.
2) wavelet transform process
Wavelet transformation be a kind of signal the time ask---yardstick (time---frequency) analytical approach; It has the characteristics of multiresolution analysis; And the time, frequently two territories all have the ability of characterization signal local feature; Be that a kind of window size immobilizes but its shape can change, the time-frequency localization analytical approach that time window and frequency window can change.Promptly have higher frequency resolution and lower temporal resolution, have at HFS and ask resolution and lower frequency resolution when higher, be described as the microscope of analytic signal in low frequency part.Wavelet transformation is applied to the figure image intensifying; Be that picture breakdown is size, the position component all different with direction; Before doing inverse transformation; Change the size of some coefficient in the wavelet transformed domain, so just can amplify interested component selectively and reduce unwanted component, thereby reach the purpose of realization figure image intensifying.
3) HIS adjustment
HSI is tone, saturation degree and intensity color model, and tone is an attribute of describing pure color, and saturation degree provides a kind of pure color by the tolerance of the degree of white light dilution, and brightness is subjective description, has embodied colourless intensity notion.This model can be in coloured image from the influence of chromatic information (color harmony saturation degree) the lining cancellation strength component that carries, the image processing method of describing based on colour for exploitation is a desirable instrument.The hue information of image can adopt several different methods that it is adjusted directly corresponding to the H component, to obtain the tone of expectation.
Summary of the invention
The objective of the invention is to overcome the deficiency of existing overall adjustment algorithm, the deficiency that the processing time is long provides a kind of multi-level image based on the color transmission to unify method of adjustment.
Unifying method of adjustment based on the multi-level image of color transmission may further comprise the steps:
The piece image that 1) will have two kinds of tones is divided into two width of cloth images---reference picture and image to be adjusted, and with this two width of cloth image transitions to l α β color space;
2) with the K mean algorithm two width of cloth images are cut apart, and each cut zone of reference picture is sampled;
3) with expectation-maximization algorithm two width of cloth images are carried out probability respectively and cut apart, and to reference picture with wait to adjust between each cut section of image and set up mapping relations;
4) treat the convergent-divergent that the adjustment image carries out brightness, it and reference brightness are kept consistency;
5) treat each point of adjustment image, in the sampled point of reference picture, seek and its point that matees most, the color value of match point in the reference picture is passed to the corresponding point of waiting to adjust in the image;
The described piece image that will have two kinds of tones is divided into two width of cloth images---reference picture and image to be adjusted, and with this two width of cloth image transitions to l α β color space, the steps include:
(1) piece image that has two kinds of tones is divided into two width of cloth images, is to exist the picture of two kinds of tones to carry out preliminary area dividing by the user to one, it is divided into two parts: wait to adjust picture and reference picture;
(2) if former picture uses is the RGB color space, then pass through following step, be converted into l α β color space, the steps include:
A) first step is to change into the XYZ tristimulus values to image from RGB, and wherein XYZ is the device independent space, and is as follows:
X Y Z = 0.5141 0.3239 0.1604 0.2651 0.6702 0.0641 0.0241 0.1228 0.8444 R G B
B) second step was to be converted into the LMS space from XYZ space, and is as follows:
L M S = 0.3897 0.6980 - 0.0787 - 0.2298 1.1834 0.0464 0.0000 0.0000 1.0000 X Y Z
C) merge these two transformed matrixs, obtain transition matrix, obtain following matrix from the RGB color space to the LMS color space:
L M S = 0.3811 0.5783 0 . 0402 0.1967 0.7244 0.0782 0.0241 0.1288 0 . 8444 R G B
D) calculate the logarithm value of LMS value:
L=logL,M=logM,S=logS
Adopt following formula to carry out final conversion:
l α β = 1 3 0 0 0 1 6 0 0 0 1 2 1 1 1 1 1 - 2 1 - 1 0 L M S
Describedly two width of cloth images are cut apart, and each cut zone of reference picture are carried out sampling step with the K mean algorithm:
(3) with the K mean algorithm two width of cloth images are cut apart, its step does;
E) point that will import is divided into K initial set, adopts disposable or all can heuristic cutting apart;
F) calculate the central point or the barycenter of each set;
G) utilize formula:
D m=min|x m-u i| 2, x mBe the point of input, u iBarycenter for each set
Each point is distributed to apart from its nearest central point;
H) recomputate the barycenter of each set, and utilize formula:
V = Σ i = 1 k Σ x j ∈ S i | x j - u i | 2
Calculate the difference of two squares in the cluster,, or after the step of iteration some, cut apart end when the value of its value less than certain user's appointment; Otherwise carrying out g and h step of iteration.
(4) each cut zone of reference picture is sampled, can sample by the user is manual, or the computer random sampling;
Describedly with expectation-maximization algorithm two width of cloth images are carried out probability respectively and cut apart, and to reference picture with wait to adjust and set up the mapping relations step between each cut section of image:
(5) use expectation-maximization algorithm that two width of cloth images are carried out the probability segmentation procedure respectively to be:
I) initialization: utilize the K average segmentation result of a last joint to calculate each mean value of areas u iAnd standard deviation sigma i
J) expectation: (x y) belongs to i Gauss model G to pixel I i(i; u i, σ i) probability can pass through computes:
i P xy = exp ( - ( I ( x , y ) u i ) 2 2 σ i 2 ) Σ j = 1 N exp ( - ( I ( x , y ) u j ) 2 2 σ j 2 )
G iRepresent regional i Gaussian distribution G i(i; u i, σ i), iP Xy(x y) belongs to G to the pixel I of representative image I iProbability, p XyThe pixel I of representative image I (x, probability distribution estimation y), p Xy t = { p Xy t i | i = 1 , 2 . . . } .
K) maximization: the Gaussian distribution G that recomputates regional i according to following formula i(i; u i, σ i) average u iAnd standard deviation sigma i:
u i = 1 Σ i x , y p xy Σ i x , y P xy I ( x , y )
σ i = Σ i x , y P xy ( I ( x , y ) - u i ) 2 Σ i x , y P xy
L) repeat j, two steps of k up to convergence.
(6) to reference picture with wait to adjust between each cut section of image and set up mapping relations, step is:
M) we will set up the mapping function f () of each Gauss model
Figure G2008101621352D0005151102QIETU
of waiting to adjust in the image some Gauss model in the reference picture; This mapping can be artificial the appointment; Also can be to accomplish automatically, but will satisfy the condition in the step 2 by algorithm;
N) suppose that image to be adjusted has two Gauss models
Figure G2008101621352D00051
With
Figure G2008101621352D00052
In luminance channel u t i ≥ u t j , So, the average u ' after the mapping also should satisfy u t i ′ ≥ u t j ′ . In our algorithm, when
Figure G2008101621352D00055
With
Figure G2008101621352D00056
The brightness average the most approaching, and satisfy under the situation of monotonicity,
Figure G2008101621352D00057
Be mapped to
Figure G2008101621352D00058
The described adjustment image convergent-divergent that carries out brightness of treating makes it and the reference brightness step that keeps consistency:
(7) because the difference of two width of cloth images in overall brightness if directly adopt their brightness to compare, will cause very poor matching result, therefore, we need in advance the brightness of image to be changed, and they are consistent.We have adopted a kind of linear mapping to come the average and the standard deviation of the Luminance Distribution of two width of cloth images are shone upon:
Y ′ ( p ) = σ s σ t ( Y ( p ) - u t ) + u s
u s, σ s: reference brightness average and standard deviation
u t, σ t:: brightness average and the standard deviation of waiting to adjust image
Described each point of treating the adjustment image is sought in the sampled point of reference picture and its point that matees most, and the color value of match point in the reference picture is passed to the corresponding point step of waiting to adjust in the image:
(8) treat each point of adjusting image, in the sampled point of reference picture, seek and its point that matees most, the steps include:
O) for corresponding sampled point in each point of waiting to adjust image and the reference picture, at first whether judgement point and the sampled point in the reference picture waiting to adjust in the image belongs to the same area after the K average is cut apart, and promptly judges f (KMeansPartitionResult (P t)) whether equal f (KMeansPartitionResult (P s)).If two points are not at the same area, promptly above two functional values are unequal, then continue a pair of point relatively down; If at the same area, promptly above two functional values equate, then continue step 2 and mate;
P) with the brightness of point-to-point transmission and probability distribution as evaluation criterion, calculate P tAnd P sDistance, P tAnd P sDistance function definition as follows:
dis tan ce ( p s , p t ) = w 1 | l p s - l p t | + w 2 | | P → p s - P → p t | |
Figure G2008101621352D000511
Expression p s, p tLuminance difference
Figure G2008101621352D000512
Expression point p sProbability segmentation result vector
Figure G2008101621352D000513
Some p after expression is shone upon through the zone tProbability segmentation result vector
Figure G2008101621352D000514
represents
Figure G2008101621352D000515
and Euclidean distance between
Usually get w 2∝ 10w 1
Calculating waits to adjust distance between point and all sampled points in the reference picture in the image, and wherein that minimum sampled point of distance is optimal match point.
(9) color value with match point in the reference picture passes to the corresponding point of waiting to adjust in the image, the steps include:
Q) finding P tMatch point P sAfter, with P sColouring information (being the value of α β passage) pass to P t, keep P tBrightness constant (being the value of l passage).
The beneficial effect that the present invention compared with prior art has:
Traditional length consuming time of the image adjusting method based on manual work, workload is big, and efficient is low; The research work of relevant tone adjustment mainly is to daily treatment of picture research, and be not suitable for numerous with target, the zone is complicated, each interregional border is not obvious, saturation degree brightness is hanged down is the remote sensing images of characteristics; Existing research work can only be handled the adjustment of two kinds of tones, and the effect of adjustment is still undesirable; And can not unify adjustment to the tone of the image that contains multiple color tones.
The present invention proposes a kind of unified adjustment algorithm of new masstone remote sensing images, can remove on a large scale the mixed and disorderly tangible amalgamation of color harmony border in the remote sensing images effectively, interactive operation is easy, and processing speed is fast, and can be applied to the other field of Flame Image Process.
A kind of new color pass-algorithm that proposes among the present invention carries out the adjustment unification of two kinds of tones; Be in the process that the sampled point of waiting to adjust picture point and reference picture matees; Introduce probability segmentation result based on expectation maximization as important judgment criteria, obtained matching result preferably.
In a word, use the adjustment unification that the present invention can fast and effeciently carry out two kinds of tones.The present invention has solved traditional length consuming time of the image adjusting method based on manual work well, and workload is big, inefficient deficiency, and the present invention is significantly increased on the agility of the convenience of user interactions, calculating and matching result.
Description of drawings
Fig. 1 is based on the multi-level image of color transmission and unifies the method for adjustment schematic flow sheet;
Fig. 2 (a) is a hue regions to be adjusted;
Fig. 2 (b) is with reference to hue regions;
Fig. 3 (a) is a K average segmentation result of waiting to adjust hue regions, and various colors is represented different cut zone;
Fig. 3 (b) is the K average segmentation result with reference to hue regions, and various colors is represented different cut zone;
Fig. 4 is the sample graph with reference to hue regions, the redness point expression sampled point among the figure;
Fig. 5 (a) treats the adjustment hue regions to carry out probability and cut apart synoptic diagram, when probability is cut apart, is split into the same area and representes with white in the drawings;
Fig. 5 (b) is cut apart synoptic diagram to carrying out probability with reference to hue regions, when probability is cut apart, is split into the same area and representes with white in the drawings;
Fig. 6 carries out the adjusted figure as a result of tone with the present invention.
Embodiment
Unifying method of adjustment based on the multi-level image of color transmission may further comprise the steps:
The piece image that 1) will have two kinds of tones is divided into two width of cloth images---reference picture and image to be adjusted, and with this two width of cloth image transitions to l α β color space;
2) with the K mean algorithm two width of cloth images are cut apart, and each cut zone of reference picture is sampled;
3) with expectation-maximization algorithm two width of cloth images are carried out probability respectively and cut apart, and to reference picture with wait to adjust between each cut section of image and set up mapping relations;
4) treat the convergent-divergent that the adjustment image carries out brightness, it and reference brightness are kept consistency;
5) treat each point of adjustment image, in the sampled point of reference picture, seek and its point that matees most, the color value of match point in the reference picture is passed to the corresponding point of waiting to adjust in the image;
Fig. 1 has showed the flow process of unifying method of adjustment based on the multi-level image of color transmission.
The described piece image that will have two kinds of tones is divided into two width of cloth images---reference picture and image to be adjusted, and with this two width of cloth image transitions to l α β color space, the steps include:
(1) piece image that has two kinds of tones is divided into two width of cloth images, is to exist the picture of two kinds of tones to carry out preliminary area dividing by the user to one, it is divided into two parts: picture to be adjusted (Fig. 2 (a)) and reference picture (Fig. 2 (b));
(2) if former picture uses is the RGB color space, then pass through following step, be converted into l α β color space, the steps include:
A) first step is to change into the XYZ tristimulus values to image from RGB, and wherein XYZ is the device independent space, and is as follows:
X Y Z = 0.5141 0.3239 0.1604 0.2651 0.6702 0.0641 0.0241 0.1228 0.8444 R G B
B) second step was to be converted into the LMS space from XYZ space, and is as follows:
L M S = 0.3897 0.6980 - 0.0787 - 0.2298 1.1834 0.0464 0.0000 0.0000 1.0000 X Y Z
C) merge these two transformed matrixs, obtain transition matrix, obtain following matrix from the RGB color space to the LMS color space:
L M S = 0.3811 0.5783 0.0402 0.1967 0.7244 0.0782 0.0241 0.1288 0.8444 R G B
D) calculate the logarithm value of LMS value:
L=logL,M=logM,S=logS
Adopt following formula to carry out final conversion:
l α β = 1 3 0 0 0 1 6 0 0 0 1 2 1 1 1 1 1 - 2 1 - 1 0 L M S
Describedly two width of cloth images are cut apart, and each cut zone of reference picture are carried out sampling step with the K mean algorithm:
(3) with the K mean algorithm two width of cloth images are cut apart, its step does;
E) point that will import is divided into K initial set, adopts disposable or all can heuristic cutting apart;
F) calculate the central point or the barycenter of each set;
G) utilize formula:
D m=min|x m-u i| 2, x mBe the point of input, u iBarycenter for each set
Each point is distributed to apart from its nearest central point;
H) recomputate the barycenter of each set, and utilize formula:
V = Σ i = 1 k Σ x j ∈ S i | x j - u i | 2
Calculate the difference of two squares in the cluster,, or after the step of iteration some, cut apart end when the value of its value less than certain user's appointment; Otherwise carrying out g and h step of iteration.
Showed among Fig. 3 treat the adjustment hue regions and cut apart with the K average with reference to hue regions after the result, the different colours among the figure is being represented different cut zone.
(4) each cut zone of reference picture is sampled, can sample by the user is manual, or the computer random sampling.Sampling to reference to hue regions is as shown in Figure 4, redness point expression sampled point wherein.
Describedly with expectation-maximization algorithm two width of cloth images are carried out probability respectively and cut apart, and to reference picture with wait to adjust and set up the mapping relations step between each cut section of image:
(5) use expectation-maximization algorithm that two width of cloth images are carried out the probability segmentation procedure respectively to be:
I) initialization: utilize the K average segmentation result of a last joint to calculate each mean value of areas u iAnd standard deviation sigma i
J) expectation: (x y) belongs to i Gauss model G to pixel I i(i; u i, σ i) probability can pass through computes:
i P xy = exp ( - ( I ( x , y ) - u i ) 2 2 σ i 2 ) Σ j = 1 N exp ( - ( I ( x , y ) - u j ) 2 2 σ j 2 )
G iRepresent regional i Gaussian distribution G i(i; u i, σ i), ip Xy(x y) belongs to G to the pixel I of representative image I iProbability, p XyThe pixel I of representative image I (x, probability distribution estimation y), p Xy t = { p Xy t i | i = 1 , 2 . . . } .
K) maximization: the Gaussian distribution G that recomputates regional i according to following formula i(i; u i, σ i) average u iAnd standard deviation sigma i:
u i = 1 Σ i x , y p xy Σ i x , y P xy I ( x , y )
σ i = Σ i x , y P xy ( I ( x , y ) - u i ) 2 Σ i x , y P xy
1) repeats j, two steps of k up to convergence.
Fig. 5 has showed that treating the adjustment color harmony carries out the synoptic diagram as a result after probability is cut apart with reference to hue regions, and the part that is split into the same area is filled with white in the drawings;
(6) to reference picture with wait to adjust between each cut section of image and set up mapping relations, step is:
M) we will set up the mapping function f () of each Gauss model
Figure G2008101621352D0009104243QIETU
of waiting to adjust in the image some Gauss model in the reference picture; This mapping can be artificial the appointment; Also can be to accomplish automatically, but will satisfy the condition in the step 2 by algorithm;
N) suppose that image to be adjusted has two Gauss models With
Figure G2008101621352D00096
In luminance channel u t i ≥ u t j , So, the average u ' after the mapping also should satisfy u t i ′ ≥ u t j ′ . In our algorithm, when With
Figure G2008101621352D000910
The brightness average the most approaching, and satisfy under the situation of monotonicity, Be mapped to
Figure G2008101621352D000912
The described adjustment image convergent-divergent that carries out brightness of treating makes it and the reference brightness step that keeps consistency:
(7) because the difference of two width of cloth images in overall brightness if directly adopt their brightness to compare, will cause very poor matching result, therefore, we need in advance the brightness of image to be changed, and they are consistent.We have adopted a kind of linear mapping to come the average and the standard deviation of the Luminance Distribution of two width of cloth images are shone upon:
Y ′ ( p ) = σ s σ t ( Y ( p ) - u t ) + u s
u s, σ s: reference brightness average and standard deviation
u t, σ T:: brightness average and the standard deviation of waiting to adjust image
Described each point of treating the adjustment image is sought in the sampled point of reference picture and its point that matees most, and the color value of match point in the reference picture is passed to the corresponding point step of waiting to adjust in the image:
(8) treat each point of adjusting image, in the sampled point of reference picture, seek and its point that matees most, the steps include:
O) for corresponding sampled point in each point of waiting to adjust image and the reference picture, at first whether judgement point and the sampled point in the reference picture waiting to adjust in the image belongs to the same area after the K average is cut apart, and promptly judges f (KMeansPartitionResult (P t)) whether equal f (KMeansPartitionResult (P s)).If two points are not at the same area, promptly above two functional values are unequal, then continue a pair of point relatively down; If at the same area, promptly above two functional values equate, then continue step 2 and mate;
P) with the brightness of point-to-point transmission and probability distribution as evaluation criterion, calculate P tAnd P sDistance, P tAnd P sDistance function definition as follows:
dis tan ce ( p s , p t ) = w 1 | l p s - l p t | + w 2 | | P → p s - P → p t | |
Expression p s, p tLuminance difference
Figure G2008101621352D00104
Some p after expression is shone upon through the zone tProbability segmentation result vector
Figure G2008101621352D00105
represents
Figure G2008101621352D00106
and
Figure G2008101621352D00107
Euclidean distance between
Usually get w 2∝ 10w 1
Calculating waits to adjust distance between point and all sampled points in the reference picture in the image, and wherein that minimum sampled point of distance is optimal match point.
(9) color value with match point in the reference picture passes to the corresponding point of waiting to adjust in the image, the steps include:
Q) finding P tMatch point P sAfter, with P sColouring information (being the value of α β passage) pass to P t, keep P tBrightness constant (being the value of l passage).
Last tone adjustment result is as shown in Figure 6, can find out, and two zones that tone is different of script, through unify the method for adjustment adjustment based on the multi-level image of color transmission after, tone reaches unanimity.
What more than enumerate only is specific embodiment of the present invention.Obviously, the invention is not restricted to above embodiment, many distortion can also be arranged.All distortion that those of ordinary skill in the art can directly derive or associate from content disclosed by the invention all should be thought protection scope of the present invention.

Claims (1)

1. the multi-level image based on the color transmission is unified method of adjustment, it is characterized in that may further comprise the steps:
The piece image that 1) will have two kinds of tones is divided into two width of cloth images---reference picture and image to be adjusted, and with this two width of cloth image transitions to l α β color space;
2) with the K mean algorithm two width of cloth images are cut apart, and each cut zone of reference picture is sampled;
3) with expectation-maximization algorithm two width of cloth images are carried out probability respectively and cut apart, and to reference picture with wait to adjust between each cut section of image and set up mapping relations;
4) treat the convergent-divergent that the adjustment image carries out brightness, it and reference brightness are kept consistency;
5) treat each point of adjustment image, in the sampled point of reference picture, seek and its point that matees most, the color value of match point in the reference picture is passed to the corresponding point of waiting to adjust in the image;
The described piece image that will have two kinds of tones is divided into two width of cloth images---reference picture and image to be adjusted, and with this two width of cloth image transitions to l α β color space step be:
(1) piece image that has two kinds of tones is divided into two width of cloth images, is to exist the picture of two kinds of tones to carry out preliminary area dividing by the user to one, it is divided into two parts: wait to adjust picture and reference picture;
(2) if former picture uses is the RGB color space, then pass through following step, be converted into l α β color space, the steps include:
A) first step is to change into the XYZ tristimulus values to image from RGB, and wherein XYZ is the device independent space, and is as follows:
X Y Z = 0.5141 0.3239 0.1604 0.2651 0.6702 0.0641 0.0241 0.1228 0.8444 R G B
B) second step was to be converted into the LMS space from XYZ space, and is as follows:
L M S = 0.3897 0.6980 - 0.0787 - 0.2298 1.1834 0.0464 0.0000 0.0000 1.0000 X Y Z
C) merge these two transformed matrixs, obtain transition matrix, obtain following matrix from the RGB color space to the LMS color space:
L M S = 0.3811 0.5783 0.0402 0.1967 0.7244 0.0782 0.0241 0.1288 0.8444 R G B
D) calculate the logarithm value of LMS value:
L=logL,M=logM,S=logS
Adopt following formula to carry out final conversion:
l α β = 1 3 0 0 0 1 6 0 0 0 1 2 1 1 1 1 1 - 2 1 - 1 0 L M S ;
Describedly two width of cloth images are cut apart, and each cut zone of reference picture is carried out sampling step are with the K mean algorithm:
(3) with the K mean algorithm two width of cloth images are cut apart, its step does;
E) point that will import is divided into K initial set, adopts disposable or all can heuristic cutting apart;
F) calculate the central point or the barycenter of each set;
G) utilize formula:
D m=min|x m-u i| 2, x mBe the point of input, u iBarycenter for each set
Each point is distributed to apart from its nearest central point;
H) recomputate the barycenter of each set, and utilize formula:
V = Σ i = 1 k Σ x j ∈ S i | x j - u i | 2
Calculate the difference of two squares in the cluster,, or after the step of iteration some, cut apart end when the value of its value less than certain user's appointment; Otherwise carrying out g and h step of iteration;
(4) each cut zone of reference picture is sampled, can sample by the user is manual, or the computer random sampling;
Describedly with expectation-maximization algorithm two width of cloth images are carried out probability respectively and cut apart, and to reference picture with wait to adjust and set up the mapping relations step between each cut section of image and be:
(5) use expectation-maximization algorithm that two width of cloth images are carried out the probability segmentation procedure respectively to be:
I) initialization: utilize the K average segmentation result of a last joint to calculate each mean value of areas u iAnd standard deviation sigma i
J) expectation: (x y) belongs to i Gauss model G to pixel I i(i; u i, σ i) probability can pass through computes:
P xy i = exp ( - ( I ( x , y ) - u i ) 2 2 σ i 2 ) Σ j = 1 N exp ( - ( I ( x , y ) - u j ) 2 2 σ j 2 )
G iRepresent regional i Gaussian distribution G i(i; u i, σ i), ip Xy(x y) belongs to G to the pixel I of representative image I iProbability, p XyThe pixel I of representative image I (x, probability distribution estimation y),
Figure FSB00000590677000032
K) maximization: the Gaussian distribution G that recomputates regional i according to following formula i(i; u i, σ i) average u iAnd standard deviation sigma i:
u i = 1 Σ x , y p xy i Σ x , y P xy i I ( x , y )
σ i = Σ x , y P xy i ( I ( x , y ) - u i ) 2 Σ x , y P xy i
L) repeat j, two steps of k are up to convergence;
(6) to reference picture with wait to adjust between each cut section of image and set up mapping relations, step is:
M) we will set up the mapping function f () of each Gauss model of waiting to adjust in the image some Gauss model in the reference picture; This mapping can be artificial the appointment; Also can be to accomplish automatically, but will satisfy the condition in the step 2 by algorithm;
N) so in luminance channel to suppose two Gauss models
Figure FSB00000590677000036
and
Figure FSB00000590677000037
are arranged image to be adjusted; Average u ' after the mapping also should satisfy
Figure FSB00000590677000039
in our algorithm; Brightness average as
Figure FSB000005906770000310
with
Figure FSB000005906770000311
is the most approaching; And satisfy under the situation of monotonicity,
Figure FSB000005906770000312
is mapped to
Figure FSB000005906770000313
The described adjustment image convergent-divergent that carries out brightness of treating makes it and the reference brightness step that keeps consistency be:
(7) because the difference of two width of cloth images in overall brightness; If directly adopt their brightness to compare; Will cause very poor matching result, therefore, we need in advance the brightness of image to be changed; They are consistent, and we have adopted a kind of linear mapping to come the average and the standard deviation of the Luminance Distribution of two width of cloth images are shone upon:
Y ′ ( p ) = σ s σ t ( Y ( p ) - u t ) + u s
u s, σ s: reference brightness average and standard deviation
u t, σ t: brightness average and the standard deviation of waiting to adjust image;
Described each point of treating the adjustment image is sought in the sampled point of reference picture and its point that matees most, and the color value of match point in the reference picture is passed to the corresponding point step of waiting to adjust in the image:
(8) treat each point of adjusting image, in the sampled point of reference picture, seek and its point that matees most, the steps include:
O) for corresponding sampled point in each point of waiting to adjust image and the reference picture, at first whether judgement point and the sampled point in the reference picture waiting to adjust in the image belongs to the same area after the K average is cut apart, and promptly judges f (KMeansPartitionResult (P t)) whether equal f (KMeansPartitionResult (P s)), if two points not at the same area, promptly above two functional values are unequal, then continue a pair of point relatively down; If at the same area, promptly above two functional values equate, then continue step 2 and mate;
P) with the brightness of point-to-point transmission and probability distribution as evaluation criterion, calculate P tAnd P sDistance, P tAnd P sDistance function definition as follows:
dis tan ce ( p s , p t ) = w 1 | l p s - l p t | + w 2 | | P → p s - P → p t | |
Figure FSB00000590677000042
Expression p s, p tLuminance difference
Expression point p sProbability segmentation result vector
Figure FSB00000590677000044
Some p after expression is shone upon through the zone tProbability segmentation result vector
Figure FSB00000590677000045
means
Figure FSB00000590677000046
and
Figure FSB00000590677000047
Euclidean distance between
Usually get w 2∝ 10w 1
Calculating waits to adjust distance between point and all sampled points in the reference picture in the image, and wherein that minimum sampled point of distance is optimal match point;
(9) color value with match point in the reference picture passes to the corresponding point of waiting to adjust in the image, the steps include:
Q) finding P tMatch point P sAfter, with P sColouring information pass to P t, keep P tBrightness constant.
CN2008101621352A 2008-11-11 2008-11-11 Multiple-colour tone image unity regulating method based on color transfer Expired - Fee Related CN101441763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101621352A CN101441763B (en) 2008-11-11 2008-11-11 Multiple-colour tone image unity regulating method based on color transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101621352A CN101441763B (en) 2008-11-11 2008-11-11 Multiple-colour tone image unity regulating method based on color transfer

Publications (2)

Publication Number Publication Date
CN101441763A CN101441763A (en) 2009-05-27
CN101441763B true CN101441763B (en) 2012-05-16

Family

ID=40726183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101621352A Expired - Fee Related CN101441763B (en) 2008-11-11 2008-11-11 Multiple-colour tone image unity regulating method based on color transfer

Country Status (1)

Country Link
CN (1) CN101441763B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8340415B2 (en) * 2010-04-05 2012-12-25 Microsoft Corporation Generation of multi-resolution image pyramids
CN102236789B (en) * 2010-04-26 2017-06-13 富士通株式会社 The method and device being corrected to tabular drawing picture
CN102034237A (en) * 2010-12-10 2011-04-27 中国人民解放军国防科学技术大学 Method for searching correspondence of two-dimensional image
CN102542544A (en) * 2010-12-30 2012-07-04 北京大学 Color matching method and system
CN102214364B (en) * 2011-04-27 2013-03-13 天津大学 Automatic coloring method of gray level images in combination with histogram regression and texture analysis
CN102360506B (en) * 2011-09-30 2013-07-31 北京航空航天大学 Local linear preserver-based scene color style uniformizing method
CN102521807B (en) * 2011-12-02 2013-09-25 中国科学院自动化研究所 Method for transferring colors by utilizing color space distribution
CN102903128B (en) * 2012-09-07 2016-12-21 北京航空航天大学 The video image content editor's transmission method kept based on Similarity of Local Characteristic Structure
CN103136733B (en) * 2013-02-25 2016-03-02 中国人民解放军总参谋部第六十一研究所 Based on multi-scale image segmentation and the remote sensing images color enhancement method of color transfer
CN103729873B (en) * 2013-12-31 2017-01-04 天津大学 A kind of ambient light method of sampling of perception of content
CN105812674B (en) * 2014-12-29 2019-05-21 浙江大华技术股份有限公司 A kind of color correct method, monitoring method and the device of signal lamp
CN105654520B (en) * 2015-12-28 2021-09-14 联想(北京)有限公司 Image processing method and electronic equipment
US9990536B2 (en) * 2016-08-03 2018-06-05 Microsoft Technology Licensing, Llc Combining images aligned to reference frame
CN107204018A (en) * 2017-04-24 2017-09-26 东北大学 A kind of color compensation method based on light differential
CN108492292B (en) * 2018-03-20 2022-03-25 西安工程大学 Infrared image processing-based wire strand scattering detection method
CN110674828B (en) * 2018-07-03 2023-05-16 柯鑫 Method and device for normalizing fundus images
CN109003273B (en) * 2018-07-27 2021-05-18 郑州工程技术学院 Method for detecting light guide consistency of car lamp
CN111507981B (en) * 2019-01-31 2021-07-13 数坤(北京)网络科技股份有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN109859142B (en) * 2019-02-19 2021-06-22 广州视源电子科技股份有限公司 Image brightness adjusting method and device, computer equipment and storage medium
CN109903247B (en) * 2019-02-22 2023-02-03 西安工程大学 High-precision graying method for color image based on Gaussian color space correlation
CN112907485B (en) * 2021-03-18 2023-04-25 国家海洋信息中心 Remote sensing image batch toning method based on lalpha beta space color mapping
CN113077405A (en) * 2021-03-27 2021-07-06 荆门汇易佳信息科技有限公司 Color transfer and quality evaluation system for two-segment block
CN113096043B (en) * 2021-04-09 2023-02-17 杭州睿胜软件有限公司 Image processing method and device, electronic device and storage medium
CN114596372B (en) * 2022-05-07 2022-07-29 武汉天际航信息科技股份有限公司 Image color migration method, image consistency improvement method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479254A (en) * 2003-05-18 2004-03-03 浙江大学 Natural image scratching method in digital image treatment based on HVS precessing

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479254A (en) * 2003-05-18 2004-03-03 浙江大学 Natural image scratching method in digital image treatment based on HVS precessing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张引等.自动采集样本的图像颜色传递算法.《中国图象图形学报》.2005,(第10期), *
王想等.图像和视频亮度的自动调整.《电子学报》.2009, *

Also Published As

Publication number Publication date
CN101441763A (en) 2009-05-27

Similar Documents

Publication Publication Date Title
CN101441763B (en) Multiple-colour tone image unity regulating method based on color transfer
CN101339653B (en) Infrared and colorful visual light image fusion method based on color transfer and entropy information
CN102750385B (en) Correlation-quality sequencing image retrieval method based on tag retrieval
CN103714537B (en) Image saliency detection method
Muniyappan et al. A novel approach for image enhancement by using contrast limited adaptive histogram equalization method
CN105261046A (en) Scenario-adaptive tone migration method
CN110675462A (en) Gray level image colorizing method based on convolutional neural network
CN110400275A (en) One kind being based on full convolutional neural networks and the pyramidal color calibration method of feature
Wang et al. Variational single nighttime image haze removal with a gray haze-line prior
CN109493309A (en) A kind of infrared and visible images variation fusion method keeping conspicuousness information
Anbarjafari et al. Image illumination enhancement with an objective no-reference measure of illumination assessment based on Gaussian distribution mapping
CN105118076A (en) Image colorization method based on over-segmentation and local and global consistency
CN110414578A (en) A kind of transfer learning method based on the multiple batches of training of dynamic and colour gamut conversion
CN103729862A (en) Self-adaptive threshold value moving object detection method based on codebook background model
CN103678552A (en) Remote-sensing image retrieving method and system based on salient regional features
CN103324952A (en) Method for acne classification based on characteristic extraction
CN110390724B (en) SLAM method with instance segmentation
CN106934760A (en) A kind of high-spectral data color visualization method towards classification
CN109214331A (en) A kind of traffic haze visibility detecting method based on image spectrum
CN110390322A (en) A kind of unginned cotton mulch EO-1 hyperion visual mark algorithm for deep learning
CN107464213B (en) The heavy color method of Lab space mapping based on monochromatic colour disk
Abdullah et al. Digital image processing analysis using Matlab
Lan et al. Online knowledge distillation network for single image dehazing
CN105913462A (en) Image library-based image morphing method
Wang et al. Multi-priors guided dehazing network based on knowledge distillation

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: 20120516

Termination date: 20201111

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