CN103473747A - Method and device for transmitting colors - Google Patents

Method and device for transmitting colors Download PDF

Info

Publication number
CN103473747A
CN103473747A CN2013104413422A CN201310441342A CN103473747A CN 103473747 A CN103473747 A CN 103473747A CN 2013104413422 A CN2013104413422 A CN 2013104413422A CN 201310441342 A CN201310441342 A CN 201310441342A CN 103473747 A CN103473747 A CN 103473747A
Authority
CN
China
Prior art keywords
color
pixel
former
corresponding region
ctwc
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.)
Pending
Application number
CN2013104413422A
Other languages
Chinese (zh)
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.)
Yunnan University YNU
Original Assignee
Yunnan University YNU
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 Yunnan University YNU filed Critical Yunnan University YNU
Priority to CN2013104413422A priority Critical patent/CN103473747A/en
Publication of CN103473747A publication Critical patent/CN103473747A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and device for transmitting colors. The method is carried out based on L alpha beta space, and comprises the steps that one or more pairs of corresponding areas are selected in an original image and a target image according to a color transmitting task; a CTWC is set for each pixel in the original image in each pair of corresponding areas, and the CTWCs of the pixels are inversely proportional to the color statistical distance between the pixels and the currently-selected area of the original image; according to the CTWCs of the pixels of each pair of corresponding areas, color transmission linear conversion is carried out on the original image, and the converted image is obtained. The method and device can achieve local color transmission, and meet the diversified demands of users.

Description

The method and apparatus that color transmits
Technical field
The present invention relates to image processing field, the method and apparatus transmitted in particular to color.
Background technology
The color transmission is that a kind of ad hoc approach that utilizes carries out the method for image color interpolation or change automatically, specify former figure and target figure, utilize the color transmission method that the color information in target figure is delivered in former figure, the color of former figure is changed and there is the color characteristic similar to target figure.
Color transmission of the prior art is normally for overall color transmission, and overall color transmission method is based on the criterion that the image that seems similar has similar statistical information.It carries out linear transformation to single order and the second-order statistics feature of original image and target image, makes original image have the statistical nature similar with target image, and the original image after the conversion has visually just reached the effect similar to the target image color like this.
Yet the mode of this overall color transmission is that the color of view picture original image is all converted, and can't meet the demand of user individual.
For the mode of above-mentioned overall color transmission, can't meet the problem of users ' individualized requirement, effective solution is not yet proposed at present.
Summary of the invention
The method and apparatus that provides a kind of color to transmit is provided the purpose of the embodiment of the present invention, in order to address the above problem.
According to the one side of the embodiment of the present invention, a kind of method that provides color to transmit, the method is carried out based on L α β color space, comprising: select one or more pairs of corresponding regions in former figure and target figure according to the color transmission tasks; For every pair of corresponding region, be that each pixel in former figure arranges CTWC, wherein, the CTWC of pixel and pixel are inversely proportional to the Color Statistical distance of the current selected areas of former figure; According to the every pair of corresponding region, the CTWC of corresponding pixel, carry out the linear transformation of color transmission, the image after being converted to former figure.
According to the embodiment of the present invention on the other hand, the device that provides a kind of color to transmit comprises: module is selected in zone, for according to the color transmission tasks, at former figure and target figure, selecting one or more pairs of corresponding regions; Color transmits weight coefficient module is set, be used for based on L α β color space, every pair of corresponding region selecting module to select for zone is that each pixel in former figure arranges CTWC, and wherein, the CTWC of this pixel and pixel are inversely proportional to the Color Statistical distance of the current selected areas of former figure; The color linear transform module, for every pair of corresponding region that the module setting is set according to color transmission weight coefficient, the CTWC of corresponding pixel, carry out the linear transformation of color transmission, the image after being converted to former figure.
The embodiment of the present invention adopts the stronger L α β color space of Color Channel independence, and the CTWC of pixel and this pixel are set are inversely proportional to the Color Statistical distance of the current selected areas of former figure, then the CTWC based on each pixel carries out the color transmission, can reach local color transmission effect preferably, adapt to user's diversified demand.
The accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention the present invention does not form inappropriate limitation of the present invention for explaining.In the accompanying drawings:
Fig. 1 is the method flow diagram that the color that provides of the embodiment of the present invention transmits;
Fig. 2 is that the local color that the embodiment of the present invention provides is transmitted the schematic diagram of corresponding region;
Fig. 3 is the apparatus structure block diagram that the color that provides of the embodiment of the present invention transmits.
Embodiment
Hereinafter with reference to accompanying drawing, also describe the present invention in detail in conjunction with the embodiments.It should be noted that, in the situation that do not conflict, embodiment and the feature in embodiment in the application can combine mutually.
Consider that the user has the demand of carrying out the transmission of image local color sometimes, the method and apparatus that the embodiment of the present invention provides a kind of color to transmit, mainly be based on CTWC(Color Transfer Weight Coefficients, color transmits weight coefficient) the local color transmission carried out.
Simultaneously, because L α β color space relatively meets the human visual perception system, and while applying in natural scene by it, L α β significant spatial has reduced the correlativity between each Color Channel, make between each passage to have certain mutual independence, the impact that this variation that can reduce to greatest extent a passage causes to two other passage, thus can carry out different computings at different Color Channels, and the problem that not there will be passage to intersect.In order to reach local color transmission effect preferably, the execution space that the embodiment of the present invention has selected L α β color space to transmit as local color.Wherein, the L passage means the achromaticity passage, i.e. luminance channel, and α means colored Huang-blue channel, β means colored red-green passage.
The method flow diagram that color shown in Figure 1 transmits, the method is carried out based on L α β color space, comprises the following steps:
Step S102 selects one or more pairs of corresponding regions in former figure and target figure according to the color transmission tasks;
Step S104, be that each pixel in former figure arranges CTWC for every pair of corresponding region, and wherein, the CTWC of this pixel and this pixel are inversely proportional to the Color Statistical distance of the current selected areas of former figure;
Step S106, according to the every pair of above-mentioned corresponding region, the CTWC of corresponding pixel, carry out the linear transformation of color transmission, the image after being converted to former figure.
The method of the present embodiment adopts the stronger L α β color space of Color Channel independence, and the CTWC of pixel and this pixel are set are inversely proportional to the Color Statistical distance of the current selected areas of former figure, then the CTWC based on each pixel carries out the color transmission, can reach local color transmission effect preferably, adapt to user's diversified demand.
The needs that transmit according to color can identify out with rectangle frame by the zone of choosing respectively in former figure and target figure, and the pixel color scope in rectangle frame has determined between former figure and target figure to need the color gamut transmitted.When chosen area, can select according to actual needs multipair corresponding region, corresponding one by one with the zone of selecting in target figure for the zone that makes to select in former figure, the above-mentioned step of one or more pairs of corresponding regions of selecting in former figure and target figure according to the color transmission tasks of the present embodiment can comprise: according to the color transmission tasks, select corresponding region one by one in former figure and target figure; For the corresponding region of selecting in former figure and target figure arranges identical sign.By this simple mode, can determine that two identical zones of sign are that color transmits corresponding zone.
Local color is as shown in Figure 2 transmitted the schematic diagram of corresponding region, and the figure in left frame is former figure, and the figure in right frame is target figure.Wherein,
Figure BDA0000387409850000041
with
Figure BDA0000387409850000042
be k to the corresponding region in former figure and target figure,
Figure BDA0000387409850000043
with
Figure BDA0000387409850000044
be that k is to the corresponding region in former figure and target figure, c s(i, j) is the value of certain Color Channel of pixel (i, j) in former figure.The needs that transmit according to color are selected corresponding region respectively in former figure and target figure, and the zone of choosing identifies out with rectangle frame, and the pixel color scope in rectangle frame has determined between former figure and target figure to need the color gamut transmitted.While selecting multipair corresponding region, the zone in former figure and target figure is corresponding one by one.
When the CTWC of each pixel is set, can utilize low pass Butterworth(Bart to irrigate hereby) the filter spectrum construction of function, this CTWC weight coefficient means the influence degree that the pixel in former figure is transmitted by the selected areas color, and weight coefficient and pixel are inversely proportional to the Color Statistical distance of selected areas.Calculate single order and the second-order statistics feature of original image and target image in each corresponding region, i.e. average and standard deviation determine the degree of linear transformation when carrying out linear transformation according to CTWC.If select the average of each Color Channel in zone to be for k in former figure
Figure BDA0000387409850000045
in former figure, select the value of each Color Channel of other pixels (i, j) outside zone to be for k
Figure BDA0000387409850000051
the Color Statistical distance between pixel (i, j) and selection zone can be calculated with following formula;
x ij k = ( l ij k - μ l k ) 2 + ( α ij k - μ α k ) 2 + ( β ij k - μ β k ) 2 ;
For calculating CTWC, need to build a weight function w (x), it and Color Statistical distance
Figure BDA0000387409850000053
be inversely proportional to,
Figure BDA0000387409850000054
larger, mean pixel (i, j) and select the field color gap larger, the impact that transmitted by color is less; If
Figure BDA0000387409850000055
less, mean pixel (i, j) and select the field color gap less, the impact that transmitted by color is larger.The present embodiment calculates CTWC with reference to low pass Butterworth wave filter.Wherein, the characteristics of Buterrworth wave filter are that the frequency response curve in passband is smooth to greatest extent, do not rise and fall, and at suppressed frequency band, drop to gradually zero.On the Bode diagram of the logarithm of amplitude and angular frequency, from a certain boundary angle frequency, amplitude the increase of angular frequency and is gradually reduced, the trend minus infinity.Its low-pass filter can mean with square formula to frequency of following amplitude:
| H ( w ) | 2 = 1 1 + ( w w c ) 2 n = 1 1 + ϵ 2 ( w w ρ ) 2 n
Wherein, the exponent number of n=wave filter, w c=cutoff frequency, frequency when its amplitude drops to-3 decibels, w p=passband marginal frequency.
The frequency w of wave filter corresponds to the Color Statistical distance
Figure BDA0000387409850000057
cutoff frequency w ccorrespond to color cut-off statistical distance x c.Like this, the CTWC weight function of Butterworht filter form can mean with following formula.
w ( x ij k ) = 1 1 + ( x ij k / x c ) 2 N
Wherein, x cfor the color cut-off statistical distance of setting, the color filtering exponent number of N for setting; From above formula, color cut-off statistical distance x ccan be used to control with the exponent number N of wave filter the effect that local color is transmitted.
In k selection zone, the CTWC that the pixel in it can be set is 1.
The set-up mode of above-mentioned CTWC can reach local color transmission effect preferably, less on the impact in other territory district.
When the corresponding region of selecting is a pair of, can adopt formula in former figure and target figure C s new ( i , j ) = C s ( i , j ) + w ( x ij ) · ( μ t + σ t σ s ( C s ( i , j ) - μ s ) - C s ( i , j ) ) The Color Channel of former figure is carried out to the linear transformation of color transmission; Wherein,
Figure BDA0000387409850000062
the numerical value of corresponding color passage after pixel (i, the j) conversion in former figure; C s(i, j) is the numerical value of pixel (i, j) corresponding color passage, w (x ij) be the CTWC of pixel (i, j), μ s, μ trespectively the average of the corresponding region corresponding color passage of former figure and target figure, σ s, σ tto be respectively the standard deviation of the corresponding region corresponding color passage of former figure and target figure.
The corresponding region of selecting in former figure and target figure is M(M>1) to the time, current task is multizone local color transmission tasks, can adopt Image Iterative fusion method or weighted mean fusion method to realize the transmission of multizone local color.
Above-mentioned Image Iterative fusion method refers to: according to the order of chosen area, take turns doing the local color transmission, and after once transmit before being delivered in once on the basis of result and complete, the final like this figure as a result obtained is the result that all corresponding regions iteration color transmits.Be implemented as follows:
According to selecting regional order, adopt following formula to carry out the local color transmission for every pair of corresponding region successively:
C s k ( i , j ) = C s k - 1 ( i , j ) + w ( x ij k ) · ( μ t k + σ t k σ s k ( C s k - 1 ( i , j ) - μ s k ) - C s k - 1 ( i , j ) ) ( k = 1,2,3 , · · · , M )
Wherein, M>1,
Figure BDA0000387409850000064
the initial value of a Color Channel of pixel (i, j) in former figure,
Figure BDA0000387409850000065
the figure as a result obtained after the color transmission of k corresponding region corresponding color passage;
Figure BDA0000387409850000066
the CTWC of pixel (i, j) for k corresponding region,
Figure BDA0000387409850000067
respectively the average of k corresponding region corresponding color passage in former figure and target figure,
Figure BDA0000387409850000071
it is the standard deviation of k corresponding region corresponding color passage in former figure and target figure.
Above-mentioned weighted mean fusion method refers to: the local color transmission is first carried out separately in every a pair of corresponding region, and then the CTWC separately of utilization as a result that every a pair of corresponding region is obtained is weighted on average, obtains final figure as a result.The basic step of the method is as follows:
1) adopt following formula to carry out separately respectively the local color transmission to every pair of corresponding region:
C s k ( i , j ) = C s ( i , j ) + w ( x ij k ) · ( μ t k + σ t k σ s k ( C s ( i , j ) - μ s k ) - C s ( i , j ) ) ( k = 1,2 , · · · , M )
Wherein, M>1,
Figure BDA0000387409850000073
numerical value after to be pixel (i, j) in former figure transmit for the color of a Color Channel of k corresponding region; C s(i, j) is the numerical value of pixel (i, j) corresponding color passage,
Figure BDA0000387409850000074
the CTWC of pixel (i, j) for k corresponding region, respectively the average of k corresponding region corresponding color passage in former figure and target figure,
Figure BDA0000387409850000076
it is the standard deviation of k corresponding region corresponding color passage in former figure and target figure;
In this step, for each pixel (i, j) in former figure, can calculate respectively in the manner described above the Color Statistical distance of itself and each corresponding region
Figure BDA0000387409850000077
and then obtain this zone to this pixel CTWCw ( x ij k ) ( k = 1,2 , · · · , M ) ;
2) for every pair of corresponding region, the CTWC weighted mean value of calculating pixel point (i, j)
Figure BDA0000387409850000079
p ( x ij k ) = w ( x ij k ) Σ k = 1 M w ( x ij k ) ;
This step is equivalent to the local color transmission is carried out separately in every pair of corresponding region;
3) calculate above-mentioned pixel (i, j) and carry out the result after the color transmission for every pair of corresponding region C s new ( i , j ) = Σ k = 1 M p ( x ij k ) · C s k ( i , j ) .
Each pixel is all processed in the manner described above, obtains final color and transmits figure as a result.
Said method transmits corresponding region according to the color of selecting in original image and target image, and the pixel structure CTWC to former figure, determine the influence degree that former figure is transmitted by target figure color, thereby reach the purpose that local color is transmitted.In addition, realize multizone local color transmission image co-registration by using iterative image fusion method formula or weighted mean fusion method, thereby realize the transmission to the multizone local color.
Corresponding to said method, the device that the embodiment of the present invention also provides a kind of color to transmit, the apparatus structure block diagram that color shown in Figure 3 transmits, this device comprises with lower module:
Module 32 is selected in zone, for according to the color transmission tasks, at former figure and target figure, selecting one or more pairs of corresponding regions;
Color transmits weight coefficient module 34 is set, be used for based on L α β color space, every pair of corresponding region selecting module 32 to select for zone is that each pixel in former figure arranges color transmission weight coefficient CTWC, wherein, the CTWC of pixel and pixel are inversely proportional to the Color Statistical distance of the current selected areas of former figure;
Color linear transform module 36, for every pair of corresponding region that module 34 settings are set according to color transmission weight coefficient, the CTWC of corresponding pixel, carry out the linear transformation of color transmission, the image after being converted to former figure.
The device of the present embodiment adopts the stronger L α β color space of Color Channel independence, and the CTWC of pixel and this pixel are set are inversely proportional to the Color Statistical distance of the current selected areas of former figure, then the CTWC based on each pixel carries out the color transmission, can reach local color transmission effect preferably, adapt to user's diversified demand.
Preferably, above-mentioned color transmission weight coefficient arranges module 34 and comprises: the Color Statistical metrics calculation unit, select other pixel (i, j) and k the Color Statistical distance of selecting between zone outside zone for calculating k, former figure wherein, select the average of each Color Channel in regional L α β color space to be for k
Figure BDA0000387409850000091
in the L α β color space of pixel (i, j), the value of each Color Channel is
Figure BDA0000387409850000092
the first setting unit for the CTWC that pixel (i, j) is set is:
Figure BDA0000387409850000093
wherein, x cfor the color cut-off statistical distance of setting, the color filtering exponent number of N for setting; The second setting unit is 1 for the CTWC that k the pixel in the selection zone is set.
For selecting the situation of a pair of corresponding region in former figure and target figure, above-mentioned color linear transform module 36 can comprise: the first linear transform unit, while being a pair of for the corresponding region selected as former figure and target figure, adopt following formula the Color Channel of former figure to be carried out to the linear transformation of color transmission:
C s new ( i , j ) = C s ( i , j ) + w ( x ij ) · ( μ t + σ t σ s ( C s ( i , j ) - μ s ) - C s ( i , j ) )
Wherein,
Figure BDA0000387409850000095
the numerical value of corresponding color passage after pixel (i, the j) conversion in former figure; C s(i, j) is the numerical value of pixel (i, j) corresponding color passage, w (x ij) be the CTWC of pixel (i, j), μ s, μ trespectively the average of the corresponding region corresponding color passage of former figure and target figure, σ s, σ tto be respectively the standard deviation of the corresponding region corresponding color passage of former figure and target figure.
For selecting the situation of multipair corresponding region in former figure and target figure, above-mentioned color linear transform module 36 can adopt following two kinds of specific implementations, mode one: color linear transform module 36 comprises: the iteration integrated unit, for the corresponding region of selecting as former figure and target figure be M to the time, according to selecting regional order, adopt following formula to carry out the local color transmission for every pair of corresponding region successively:
C s k ( i , j ) = C s k - 1 ( i , j ) + w ( x ij k ) · ( μ t k + σ t k σ s k ( C s k - 1 ( i , j ) - μ s k ) - C s k - 1 ( i , j ) ) ( k = 1,2,3 , · · · , M )
Wherein, M>1,
Figure BDA0000387409850000097
the initial value of a Color Channel of pixel (i, j) in former figure,
Figure BDA0000387409850000098
the figure as a result obtained after the color transmission of k corresponding region corresponding color passage;
Figure BDA0000387409850000099
the CTWC of pixel (i, j) for k corresponding region,
Figure BDA0000387409850000101
respectively the average of k corresponding region corresponding color passage in former figure and target figure,
Figure BDA0000387409850000102
it is the standard deviation of k corresponding region corresponding color passage in former figure and target figure;
Mode two, color linear transform module 36 comprises with lower unit:
The local color transfer unit, for the corresponding region of selecting as former figure and target figure be M to the time, adopt following formula to carry out separately respectively the local color transmission to every pair of corresponding region: C s k ( i , j ) = C s ( i , j ) + w ( x ij k ) · ( μ t k + σ t k σ s k ( C s ( i , j ) - μ s k ) - C s ( i , j ) ) ( k = 1,2 , · · · , M ) ;
Wherein, M>1, numerical value after to be pixel (i, j) in former figure transmit for the color of a Color Channel of k corresponding region; C s(i, j) is the numerical value of pixel (i, j) corresponding color passage,
Figure BDA0000387409850000105
the CTWC of pixel (i, j) for k corresponding region,
Figure BDA0000387409850000106
respectively the average of k corresponding region corresponding color passage in former figure and target figure,
Figure BDA0000387409850000107
it is the standard deviation of k corresponding region corresponding color passage in former figure and target figure;
The weighted mean value computing unit, for for every pair of corresponding region, the CTWC weighted mean value of calculating pixel point (i, j)
p ( x ij k ) = w ( x ij k ) Σ k = 1 M w ( x ij k ) ;
The weighted mean integrated unit, carry out the result after the color transmission for calculating pixel point (i, j) for every pair of corresponding region C s new ( i , j ) = Σ k = 1 M p ( x ij k ) · C s k ( i , j ) .
Above-described embodiment has been realized the local color transmission to image on the basis of transmitting weight coefficient based on color, and its directive property with delivery areas is higher high with dirigibility.In addition, after using iterative image amalgamation mode or weighted mean amalgamation mode, can realize preferably the local color transmission of multizone.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, and in some cases, can carry out step shown or that describe with the order be different from herein, perhaps they are made into respectively to each integrated circuit modules, perhaps a plurality of modules in them or step being made into to the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. the method that color transmits, is characterized in that, described method is carried out based on L α β color space, comprising:
Select one or more pairs of corresponding regions in former figure and target figure according to the color transmission tasks;
For every pair of described corresponding region, be that each pixel in described former figure arranges color and transmits weight coefficient CTWC, wherein, the CTWC of described pixel and described pixel to the Color Statistical of the current selected areas of described former figure apart from being inversely proportional to;
According to the every pair of described corresponding region, the CTWC of corresponding pixel, carry out the linear transformation of color transmission, the image after being converted to described former figure.
2. method according to claim 1, is characterized in that, according to the color transmission tasks, in former figure and target figure, selects one or more pairs of corresponding regions to comprise:
Select corresponding region one by one in former figure and target figure according to the color transmission tasks;
For the corresponding region of selecting in described former figure and described target figure arranges identical sign.
3. method according to claim 1, is characterized in that, for every pair of described corresponding region, is that each pixel in described former figure arranges CTWC and comprises:
Calculate k other pixel (i, j) and described k the Color Statistical distance of selecting between zone of selecting outside zone in described former figure s ij k = ( l ij k - μ l k ) 2 + ( α ij k - μ α k ) 2 + ( β ij k - μ β k ) 2 ; Wherein, select the average of each Color Channel in zone to be for described k
Figure FDA0000387409840000012
the value of each Color Channel of described pixel (i, j) is
Figure FDA0000387409840000013
The CTWC that described pixel (i, j) is set is:
Figure FDA0000387409840000021
wherein, x cfor the color cut-off statistical distance of setting, the color filtering exponent number of N for setting;
The CTWC that pixel in described k selection zone is set is 1.
4. method according to claim 1, is characterized in that, the CTWC of corresponding pixel according to the every pair of described corresponding region, and the linear transformation that described former figure is carried out to the color transmission comprises:
When the corresponding region of selecting is a pair of, adopt formula in described former figure and described target figure C s new ( i , j ) = C s ( i , j ) + w ( x ij ) · ( μ t + σ t σ s ( C s ( i , j ) - μ s ) - C s ( i , j ) ) The Color Channel of described former figure is carried out to the linear transformation of color transmission;
Wherein,
Figure FDA0000387409840000023
the numerical value of corresponding described Color Channel after pixel (i, the j) conversion in described former figure; C s(i, j) is the numerical value of the corresponding described Color Channel of described pixel (i, j), w (x ij) be the CTWC of described pixel (i, j), μ s, μ trespectively the average of the corresponding described Color Channel in described corresponding region of described former figure and described target figure, σ s, σ tto be respectively the standard deviation of the corresponding described Color Channel in described corresponding region of described former figure and described target figure.
5. method according to claim 1, is characterized in that, the CTWC of corresponding pixel according to the every pair of described corresponding region, and the linear transformation that described former figure is carried out to the color transmission comprises:
The corresponding region of selecting in described former figure and described target figure be M to the time, according to selecting regional order, adopt following formula to carry out the local color transmission for every pair of corresponding region successively:
C s k ( i , j ) = C s k - 1 ( i , j ) + w ( x ij k ) · ( μ t k + σ t k σ s k ( C s k - 1 ( i , j ) - μ s k ) - C s k - 1 ( i , j ) ) ( k = 1,2,3 , · · · , M )
Wherein, M>1,
Figure FDA0000387409840000025
the initial value of a Color Channel of pixel (i, j) in described former figure,
Figure FDA0000387409840000026
the figure as a result obtained after the color transmission of the corresponding described Color Channel in k corresponding region;
Figure FDA0000387409840000027
the CTWC of described pixel (i, j) for k corresponding region,
Figure FDA0000387409840000028
respectively the average of k the corresponding described Color Channel in corresponding region in described former figure and described target figure, it is the standard deviation of k the corresponding described Color Channel in corresponding region in described former figure and described target figure.
6. method according to claim 1, is characterized in that, the CTWC of corresponding pixel according to the every pair of described corresponding region, and the linear transformation that described former figure is carried out to the color transmission comprises:
The corresponding region of selecting in described former figure and described target figure be M to the time, adopt following formula to carry out separately respectively the local color transmission to every pair of described corresponding region: C s k ( i , j ) = C s ( i , j ) + w ( x ij k ) · ( μ t k + σ t k σ s k ( C s ( i , j ) - μ s k ) - C s ( i , j ) ) ( k = 1,2 , · · · , M )
Wherein, M>1, numerical value after to be pixel (i, j) in described former figure transmit for the color of a Color Channel of k corresponding region; C s(i, j) is the numerical value of the corresponding described Color Channel of described pixel (i, j), the CTWC of described pixel (i, j) for k corresponding region,
Figure FDA0000387409840000035
respectively the average of k the corresponding described Color Channel in corresponding region in described former figure and described target figure,
Figure FDA0000387409840000036
it is the standard deviation of k the corresponding described Color Channel in corresponding region in described former figure and described target figure;
For every pair of described corresponding region, calculate the CTWC weighted mean value of described pixel (i, j) p ( x ij k ) :
p ( x ij k ) = w ( x ij k ) Σ k = 1 M w ( x ij k )
Calculate described pixel (i, j) and carry out the result after the color transmission for every pair of described corresponding region C s new ( i , j ) = Σ k = 1 M p ( x ij k ) · C s k ( i , j ) .
7. the device that color transmits, is characterized in that, comprising:
Module is selected in zone, for according to the color transmission tasks, at former figure and target figure, selecting one or more pairs of corresponding regions;
Color transmits weight coefficient module is set, be used for based on L α β color space, every pair of described corresponding region selecting module to select for described zone is that each pixel in described former figure arranges color transmission weight coefficient CTWC, wherein, the CTWC of described pixel and described pixel are inversely proportional to the Color Statistical distance of the current selected areas of described former figure;
The color linear transform module, for the every pair of described corresponding region that the module setting is set according to described color transmission weight coefficient, the CTWC of corresponding pixel, carry out the linear transformation of color transmission, the image after being converted to described former figure.
8. device according to claim 7, is characterized in that, described color transmission weight coefficient arranges module and comprises:
The Color Statistical metrics calculation unit, select other pixel (i, j) and described k the Color Statistical distance of selecting between zone outside zone for calculating k, described former figure
Figure FDA0000387409840000041
wherein, select the average of each Color Channel in regional L α β color space to be for described k
Figure FDA0000387409840000042
in the L α β color space of described pixel (i, j), the value of each Color Channel is
Figure FDA0000387409840000043
The first setting unit for the CTWC that described pixel (i, j) is set is: wherein, x cfor the color cut-off statistical distance of setting, the color filtering exponent number of N for setting;
The second setting unit is 1 for the CTWC that the pixel in described k selection zone is set.
9. device according to claim 7, is characterized in that, described color linear transform module comprises:
The first linear transform unit, while being a pair of for the corresponding region selected as described former figure and described target figure, adopts following formula the Color Channel of described former figure to be carried out to the linear transformation of color transmission:
C s new ( i , j ) = C s ( i , j ) + w ( x ij ) · ( μ t + σ t σ s ( C s ( i , j ) - μ s ) - C s ( i , j ) )
Wherein, the numerical value of corresponding described Color Channel after pixel (i, the j) conversion in described former figure; C s(i, j) is the numerical value of the corresponding described Color Channel of described pixel (i, j), w (x ij) be the CTWC of described pixel (i, j), μ s, μ trespectively the average of the corresponding described Color Channel in described corresponding region of described former figure and described target figure, σ s, σ tto be respectively the standard deviation of the corresponding described Color Channel in described corresponding region of described former figure and described target figure.
10. device according to claim 7, is characterized in that,
Described color linear transform module comprises: the iteration integrated unit, for the corresponding region of selecting as described former figure and described target figure be M to the time, according to selecting regional order, adopt following formula to carry out the local color transmission for every pair of corresponding region successively:
C s k ( i , j ) = C s k - 1 ( i , j ) + w ( x ij k ) · ( μ t k + σ t k σ s k ( C s k - 1 ( i , j ) - μ s k ) - C s k - 1 ( i , j ) ) ( k = 1,2,3 , · · · , M )
Wherein, M>1,
Figure FDA0000387409840000054
the initial value of a Color Channel of pixel (i, j) in described former figure,
Figure FDA0000387409840000055
the figure as a result obtained after the color transmission of the corresponding described Color Channel in k corresponding region;
Figure FDA0000387409840000056
the CTWC of described pixel (i, j) for k corresponding region, respectively the average of k the corresponding described Color Channel in corresponding region in described former figure and described target figure,
Figure FDA0000387409840000058
it is the standard deviation of k the corresponding described Color Channel in corresponding region in described former figure and described target figure;
Perhaps, described color linear transform module comprises:
The local color transfer unit, for the corresponding region of selecting as described former figure and described target figure be M to the time, adopt following formula to carry out separately respectively the local color transmission to every pair of described corresponding region: C s k ( i , j ) = C s ( i , j ) + w ( x ij k ) · ( μ t k + σ t k σ s k ( C s ( i , j ) - μ s k ) - C s ( i , j ) ) ( k = 1,2 , · · · , M ) ;
Wherein, M>1,
Figure FDA0000387409840000061
numerical value after to be pixel (i, j) in described former figure transmit for the color of a Color Channel of k corresponding region; C s(i, j) is the numerical value of the corresponding described Color Channel of described pixel (i, j),
Figure FDA0000387409840000062
the CTWC of described pixel (i, j) for k corresponding region, respectively the average of k the corresponding described Color Channel in corresponding region in described former figure and described target figure,
Figure FDA0000387409840000064
it is the standard deviation of k the corresponding described Color Channel in corresponding region in described former figure and described target figure;
The weighted mean value computing unit, for for every pair of described corresponding region, calculate the CTWC weighted mean value of described pixel (i, j)
Figure FDA0000387409840000065
p ( x ij k ) = w ( x ij k ) Σ k = 1 M w ( x ij k ) ;
The weighted mean integrated unit, carry out the result after the color transmission for calculating described pixel (i, j) for every pair of described corresponding region
Figure FDA0000387409840000067
CN2013104413422A 2013-09-25 2013-09-25 Method and device for transmitting colors Pending CN103473747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013104413422A CN103473747A (en) 2013-09-25 2013-09-25 Method and device for transmitting colors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013104413422A CN103473747A (en) 2013-09-25 2013-09-25 Method and device for transmitting colors

Publications (1)

Publication Number Publication Date
CN103473747A true CN103473747A (en) 2013-12-25

Family

ID=49798581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013104413422A Pending CN103473747A (en) 2013-09-25 2013-09-25 Method and device for transmitting colors

Country Status (1)

Country Link
CN (1) CN103473747A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777783A (en) * 2018-07-09 2018-11-09 广东交通职业技术学院 A kind of image processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6058207A (en) * 1995-05-03 2000-05-02 Agfa Corporation Selective color correction applied to plurality of local color gamuts
CN1947147A (en) * 2004-04-28 2007-04-11 三洋电机株式会社 Portable telephone, image converter, control method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6058207A (en) * 1995-05-03 2000-05-02 Agfa Corporation Selective color correction applied to plurality of local color gamuts
CN1947147A (en) * 2004-04-28 2007-04-11 三洋电机株式会社 Portable telephone, image converter, control method and program

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
YU-WING TAI等: "Local color transfer via probabilistic segmentation by expectation-maximization", 《COMPUTER VISION AND PATTERN RECOGNITION, 2005. CVPR 2005. IEEE COMPUTER SOCIETY CONFERENCE ON》 *
何永强等: "基于融合和色彩传递的灰度图像彩色化技术", 《红外技术》 *
普园媛: "云南重彩画艺术风格的数字模拟及合成技术研究", 《中国博士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777783A (en) * 2018-07-09 2018-11-09 广东交通职业技术学院 A kind of image processing method and device

Similar Documents

Publication Publication Date Title
CN106412547A (en) Image white balance method and device based on convolutional neural network, and computing device
CN104952036A (en) Facial beautification method and electronic equipment in real-time video
US9443322B2 (en) Method and associated apparatus for correcting color artifact of image
CN105988578A (en) Interactive video display method, device and system
CN107481209B (en) Image or video quality enhancement method based on convolutional neural network
WO2015085130A3 (en) Adaptive contrast in image processing and display
CN108369750B (en) Method and apparatus for image enhancement of virtual reality images
WO2016110188A1 (en) Method and electronic device for aesthetic enhancements of face in real-time video
CN103561236A (en) Building surrounding monitoring system and method
CN103002349A (en) Adaptive adjustment method and device for video playing
CN108063946B (en) Image encoding method and apparatus, storage medium, and electronic apparatus
US20150243003A1 (en) Method and apparatus for processing image
EP2879375A1 (en) Techniques to reduce color artifacts in a digital image
CN111246052B (en) Wide dynamic adjustment method and device, storage medium and electronic device
US11070705B2 (en) System and method for image dynamic range adjusting
CN105791849B (en) Picture compression method and device
CN103473747A (en) Method and device for transmitting colors
CN110751607A (en) Skin color correction method and device, storage medium and electronic device
EP3881280B1 (en) Methods and systems for image processing
CN103458307B (en) Image processing method and device
US20190130529A1 (en) Image processing apparatus for multi-playback based on tile image and method of constructing tile image using same
Vani Satellite image processing
CN105163194A (en) Real-time video coding method and electronic equipment
CN107872683A (en) A kind of video data handling procedure, device, equipment and storage medium
CN102263973B (en) Adaptive displaying method for grating viewpoints based on mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20131225