CN105139360A - Method and apparatus for correcting image colour - Google Patents

Method and apparatus for correcting image colour Download PDF

Info

Publication number
CN105139360A
CN105139360A CN201510580660.6A CN201510580660A CN105139360A CN 105139360 A CN105139360 A CN 105139360A CN 201510580660 A CN201510580660 A CN 201510580660A CN 105139360 A CN105139360 A CN 105139360A
Authority
CN
China
Prior art keywords
pixel
image
color correction
range
key values
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
CN201510580660.6A
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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201510580660.6A priority Critical patent/CN105139360A/en
Publication of CN105139360A publication Critical patent/CN105139360A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The present invention provides a method and apparatus for correcting image colour. The method includes the steps as follows: receiving the setting of parameters for confirming the key value range of the image colour to be corrected, wherein, the parameters include hue, aperture, saturation threshold, saturation and soft edge; confirming the key value range of the image colour to be corrected in a YUV chrominance space according to the set parameters; screening various pixel points of the image according to a set rule so as to confirm the pixel points for colour correction; and correcting colour of the confirmed pixel points. The image colour correcting scheme provided by the invention can correct one kind of colour of images under the premise that the scheme meets the requirement of correction accuracy.

Description

A kind of image color correction method and device
Technical field
The present invention relates to technical field of image processing, particularly relate to a kind of image color correction method and device.
Background technology
In image/video process software, carrying out correction to class color a certain in image/video has demand widely.And the essence of the color correction algorithm adopted gets colors exactly from image, then each Color Channel of this kind of color chosen is corrected.
Existing two kinds of color calibration methods are as follows:
The first, to the method that solid color corrects.Particularly, when adopting the method to carry out color correction, enter the correction that right solid color can be set at every turn, if desired multiple color is corrected, then need repeatedly correcting process.
Visible, although existing first method corrects accurately, cannot correct multiple color.
The second, carries out the method for color correction to entire image.Particularly, arranged by the shading value to integral image, Transparent color, to realize the correction of the color to entire image.
Existing second method, carries out color correction to multiple color although can meet simultaneously, and the degree of accuracy corrected is low, and, cannot only correct a class color or a part of color.
Visible, when existing image color correction method is to color correction, under the prerequisite meeting calibration accuracy, only cannot carry out color correction to a class color simultaneously.
Summary of the invention
In view of above-mentioned existing image color correction method under the prerequisite meeting calibration accuracy, only cannot carry out the problem of color correction to a class color simultaneously, the invention provides the method and apparatus that color of image corrects.
According to one aspect of the present invention, provide a kind of image color correction method, comprise: receive the setting that the range of key values treating correcting image color carries out the parameter confirmed, wherein, described parameter comprises: form and aspect, aperture, saturation degree threshold value, saturation degree and soft limit; According to the described parameter arranged, the range of key values determining described color of image to be corrected in YUV chrominance space; Each pixel in described image is screened, to determine each pixel carrying out color correction according to setting rule; Color correction is carried out to the described each pixel determined.
Preferably, described according to arrange described parameter, in YUV chrominance space, determine that the step of the range of key values of described color of image to be corrected comprises: YUV chrominance space is normalized into square space; By angle value corresponding for the coordinate axis retrograde rotation form and aspect in described square space; In described square space after rotation, according to the described parameter determination intermediate variable arranged; The range of key values of described color of image to be corrected is determined according to the described intermediate variable determined.
Preferably, described intermediate variable comprises: the cosine value of described form and aspect, the sine value of described form and aspect, described aperture 1/2nd cotangent value and described range of key values inner and outer boundary between length value.
Preferably, described according to setting rule each pixel in described image is screened, to determine that the step of each pixel carrying out color correction comprises: each pixel in described image is divided into groups according to setting number, each pixel in each group is synchronously screened, to determine the pixel carrying out color correction in current group.
Preferably, when determining whether single pixel is the pixel carrying out color correction: according to the pixel value of current pixel point, judge described pixel whether within the inner boundary of described range of key values; If within described inner boundary, then determine that current pixel point is the pixel carrying out color correction; If current pixel point is outside the outer boundary of described range of key values, or current pixel point between described inner boundary and described outer boundary, then determines that current pixel point is without the need to carrying out color correction.
Preferably, when current pixel point is between described inner boundary and described outer boundary, described method also comprises: carry out transparency process to current pixel point.
According to another aspect of the present invention, a kind of color of image means for correcting being provided, comprising: receiver module, carrying out the setting of the parameter confirmed for receiving the range of key values treating correcting image color, wherein, described parameter comprises: form and aspect, aperture, saturation degree threshold value, saturation degree and soft limit; Determination module, for according to the described parameter arranged, in YUV chrominance space, determine the range of key values of described color of image to be corrected; Screening module, for screening each pixel in described image according to setting rule, to determine each pixel carrying out color correction; Correction module, for carrying out color correction to the described each pixel determined.
Preferably, described determination module comprises: normalization module, for YUV chrominance space is normalized into square space; Rotary module, for by angle value corresponding for the coordinate axis retrograde rotation form and aspect in described square space; Variant determination module, in described square space after rotation, according to the described parameter determination intermediate variable arranged; Range of key values determination module, for determining the range of key values of described color of image to be corrected according to the described intermediate variable determined.
Preferably, described screening module is screened each pixel in described image according to setting rule, during to determine each pixel carrying out color correction: each pixel in described image is divided into groups according to setting number, each pixel in each group is synchronously screened, to determine the pixel carrying out color correction in current group.
Preferably, when described screening module determines whether single pixel is the pixel carrying out color correction: according to the pixel value of current pixel point, judge described pixel whether within the inner boundary of described range of key values; If within described inner boundary, then determine that current pixel point is the pixel carrying out color correction; If current pixel point is outside the outer boundary of described range of key values, or current pixel point between described inner boundary and described outer boundary, then determines that current pixel point is without the need to carrying out color correction.
Compared with prior art, the present invention has the following advantages:
The color of image correcting scheme that the embodiment of the present invention provides, can determine the range of key values of color of image to be corrected, that is, can determine a class color to be corrected according to the form and aspect of input, aperture, saturation degree threshold value, saturation degree and soft limit parameter.After determining a class color to be corrected, each pixel in image is screened according to setting rule, determines that pixel value meets each pixel of color to be corrected, then, color correction is carried out to each pixel determined.The color of image correcting scheme provided in the embodiment of the present invention only carries out color correction to a class color, and other class colors are not corrected, compared to existing the second color calibration method, all kinds of color all being carried out blindly corrects, calibration accuracy is higher, can meet the requirement to correction accuracy.Visible, the color of image correcting scheme that the embodiment of the present invention provides, under the prerequisite meeting correction accuracy, can carry out color correction to the class color in image simultaneously.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the flow chart of steps of a kind of image color correction method according to the embodiment of the present invention one;
Fig. 2 is the flow chart of steps of a kind of image color correction method according to the embodiment of the present invention two;
Fig. 3 adopts the method shown in embodiment two, image is carried out to the flow chart of steps of color correction;
Fig. 4 is the sign schematic diagram of geometric meaning corresponding to the range of key values in embodiment two;
Fig. 5 is the structured flowchart of a kind of color of image means for correcting according to the embodiment of the present invention three;
Fig. 6 is the structured flowchart of a kind of color of image means for correcting according to the embodiment of the present invention four.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiment one
With reference to Fig. 1, show the flow chart of steps of a kind of image color correction method of the embodiment of the present invention one.
The image color correction method of the embodiment of the present invention comprises the following steps:
Step S102: receive the setting that the range of key values treating correcting image color carries out the parameter confirmed.
Wherein, the parameter that the range of key values treating correcting image color carries out confirming comprises: form and aspect, aperture, saturation degree threshold value, saturation degree and soft limit.
Wherein, form and aspect and hue refer to the phase place of color, the i.e. Main way of color, aperture (i.e. aperture) saturation degree threshold values (i.e. threshold)), saturation degree (i.e. saturation) and soft limit (i.e. softness) then sketched the contours of a class in these form and aspect or a part of color region, determine the final color needing to correct, i.e. range of key values.Wherein aperture is the subtended angle of selected areas, and threshold is the threshold values of restriction saturation, i.e. the outer boundary of selected areas, and saturation is the inner boundary of selected areas, and softness is the parameter factors of process inner and outer boundary center section.
Step S104: according to the parameter arranged, the range of key values determining color of image to be corrected in YUV chrominance space.
Step S106: each pixel in image is screened, to determine each pixel carrying out color correction according to setting rule.
Wherein, described setting rule can be set as the pixel in image to be divided into many groups, screens in units of group to each pixel in every group simultaneously.Certainly, also can be arranged to, only a pixel be screened at every turn, until the whole pixels in image all screen complete.
When screening each pixel, determining this pixel value whether in range of key values by the pixel value that each pixel is corresponding, if in range of key values, then pixel corresponding for this pixel value being defined as the pixel needing to carry out color correction; Otherwise, then determine that this pixel is the pixel not needing to carry out color correction.
Step S108: color correction is carried out to each pixel determined.
When carrying out color correction to the pixel determined, can adjust for any one in the hue shift of pixel, contrast, saturation degree, intensity, form and aspect, also can adjust the gamma value of red, green, blue three color components of pixel, gain and offset.For the design parameter item of adjustment required during color correction, can be arranged according to the actual requirements by those skilled in the art, in the embodiment of the present invention, concrete restriction not done to this.
By the image color correction method that the embodiment of the present invention provides, the range of key values of color of image to be corrected can be determined according to the form and aspect of input, aperture, saturation degree threshold value, saturation degree and soft limit parameter, that is, a class color to be corrected can be determined.After determining a class color to be corrected, each pixel in image is screened according to setting rule, determines that pixel value meets each pixel of color to be corrected, then, color correction is carried out to each pixel determined.The image color correction method provided in the embodiment of the present invention only carries out color correction to a class color, and other class colors are not corrected, compared to existing the second color calibration method, all kinds of color all being carried out blindly corrects, calibration accuracy is higher, can meet the requirement to correction accuracy.Visible, the image color correction method that the embodiment of the present invention provides, under the prerequisite meeting correction accuracy, can carry out color correction to the class color in image simultaneously.
Embodiment two
With reference to Fig. 2, show the flow chart of steps of a kind of image color correction method of the embodiment of the present invention 21.
Step S202: image processing apparatus receives the setting that the range of key values treating correcting image color carries out the parameter confirmed.
Wherein, parameter comprises: form and aspect, aperture, saturation degree threshold value, saturation degree and soft limit.
When above-mentioned parameter is arranged, can manually input parameter value corresponding to each parameter by user; The a certain pixel in image can be selected by user, then, automatically generate parameter value corresponding to above-mentioned parameter by computing machine according to the pixel value that this selected pixel is corresponding, to complete the setting to above-mentioned parameter.
Wherein, image processing apparatus can be arbitrarily can mounting software, the equipment that processes image, such as: the equipment such as computing machine, mobile phone.
Step S204: YUV chrominance space is normalized into square space by image processing apparatus.
Wherein, brightness signal Y and carrier chrominance signal U form two colored components, mainly consider U, the impact of V in the present invention when calculation key, and therefore, main needs obtains range of key values from chrominance space U-V.Due to the maximal value of u with v not identical (maximal value of u is 0.436, and the maximal value of v is 0.615), therefore, need chrominance space to be normalized into a square space, we select the value compressing v, namely adopt formula: v=v × 0.436/0.615, are normalized.By normalization, U-V space has been normalized into square space.
Step S206: image processing apparatus is by angle value corresponding for the coordinate axis retrograde rotation form and aspect in square space.
Such as: angle value corresponding to form and aspect is 50 degree, then the X-axis rotate-50 in square space is spent.
Through above-mentioned rotation, saturation degree threshold values (threshold) in the parameter arranged and saturation degree (saturation) have all dropped on transverse axis u axle, transverse axis u axle just divides aperture equally, angle is aperture/2, carries out follow-up projection calculate according to transverse axis u rotational symmetry.
Angle value corresponding to the coordinate axis retrograde rotation form and aspect in square space in this step is to be divided equally in aperture, to simplify follow-up calculating.
Step S208: in square space after rotation, according to the parameter determination intermediate variable arranged.
Wherein, intermediate variable comprises: the cotangent value of 1/2nd in the sine value of the cosine value of form and aspect and cos (-hue), form and aspect and sin (-hue), aperture and the length value between cot (aperture/2) and range of key values inner and outer boundary and range.Can to the range of key values determining color of image to be corrected by above-mentioned intermediate variable.
Step S210: image processing apparatus determines the range of key values of color of image to be corrected according to the intermediate variable determined.
Through above-mentioned rotation, saturation degree threshold values (threshold) and saturation degree (saturation) have all dropped on transverse axis u axle, transverse axis u axle just divides aperture equally, and angle is aperture/2, calculates according to transverse axis u rotational symmetry.
The geometric meaning of the range of key values determined as shown in Figure 4.Each pixel in image can be screened by this range of key values.
Wherein, region belonging to the pixel of the region that in figure, key assignments is 0 namely outside outer boundary, key assignments is the region of 1, the region belonging to the pixel namely within inner boundary, key assignments is region pixel belonging to of region namely between outer boundary and inner boundary of (0,1).
Step S212: each pixel in image divides into groups according to setting number by image processing apparatus, synchronously screens, to determine the pixel carrying out color correction in current group to each pixel in each group.
It should be noted that, in each group, the concrete number of pixel can be arranged by the processing power of those skilled in the art's synthetic image treating apparatus according to the actual requirements, such as: being arranged to every 5 pixels is one group, or every 4 pixels are one group, can also to be arranged to 3 pixels be one group or 6 pixels is one group, and the present embodiment does not do concrete restriction to this.
In the embodiment of the present invention, pixel is divided into groups, each pixel comprised is screened simultaneously, can screening time be shortened in every group, promote the efficiency that color of image corrects.
Below to determine whether single pixel is need the pixel of color correction to be described, and it should be noted that, in specific implementation process, need to perform following constant current journey really to each pixel in one group of pixel simultaneously.After current group of pixels point has screened, repeat this flow process and next group pixel has been screened, until each pixel in entire image all screens complete.
A kind ofly preferably determine that whether single pixel is that the mode of the pixel carrying out color correction is as follows:
S1: according to the pixel value of current pixel point, judges described pixel whether within the inner boundary of described range of key values;
S2: if within described inner boundary, then determine that current pixel point is the pixel carrying out color correction;
S3: if current pixel point is outside the outer boundary of described range of key values, or current pixel point between described inner boundary and described outer boundary, then determines that current pixel point is without the need to carrying out color correction.
Preferably, when current pixel point is between inner boundary and outer boundary, transparency process is carried out to current pixel point.
Below with an instantiation to judging that whether pixel is that the concrete judgment mode of the pixel needing to carry out color correction is described.
Such as: in square space, a pixel coordinate is (ku, kv), by rotation of coordinate-hue angle and angle value corresponding to retrograde rotation form and aspect, obtain new coordinate (ku', kv'), ku'=ku × cos (-hue)-kv × sin (-hue), kv'=ku × sin (-hue)+kv × cos (-hue).Through above-mentioned rotation, saturation degree threshold values (threshold) and saturation degree (saturation) have all dropped on transverse axis u axle, transverse axis u axle just divides aperture equally, angle is aperture/2, calculate according to transverse axis u rotational symmetry, get the absolute value of kv', i.e. kv'=|kv'|, kv' is projected on transverse axis u axle and compare, kv "=kv'*cot (aperture/2)+threshold, kv " namely kv' horizontal projection and threshold horizontal coordinate and, range=saturation-threshold, length between range and inner and outer boundary.
Then compare, if kv' is less than or equal to kv ", then illustrate that this pixel (comprises outer boundary) outside outer boundary, do not choose this pixel point; Kv' is more than or equal to kv else if "+range, then illustrate that this pixel (comprises inner boundary) within inner boundary, choose this pixel; If either way do not met, then illustrate that this pixel (does not comprise inner and outer boundary) between inner and outer boundary above, only transparency process is done to this pixel, to ensure the smoothness of image.
When transparent processing is carried out to pixel, calculate as follows, K=(kv'-kv ")/range; K namely this at the scale factor of middle portion location; A=K+softness × (K-K × K), the A i.e. factor of this transparency, alpha'=alpha × A; the transparency of alpha point for this, the transparency after namely alpha' processes.
Repeat above-mentionedly preferably to determine that whether single pixel is the mode of the pixel carrying out color correction, the screening of the pixel of entire image can be completed.
It should be noted that, transparency is carried out to the pixel between inner boundary and outer boundary and is treated to preferred processing mode, by carrying out transparency process to the pixel of this type, handling flexibly can be carried out to the edge of color to be corrected, making the image after color correction more natural.
Step S214: image processing apparatus carries out color correction to each pixel determined.
With reference to correlation technique, both can carry out Integral correction to each pixel when color correction is carried out to each pixel, and also can correct each passage, in the embodiment of the present invention, concrete restriction not done to this.
By the image color correction method that the embodiment of the present invention provides, except the beneficial effect that the image color correction method possessed in embodiment one possesses, the image color correction method of the embodiment of the present invention, when determining pixel to be corrected, pixel in image is divided into groups, each pixel in one group is screened simultaneously, each only to the defining method that a pixel screens in existing image color correction method, the screening time of pixel can be saved, thus improve the efficiency of color of image correction.
With reference to the accompanying drawings 4, be described with the screening process of an instantiation to pixel.
With below x86/x86-64 framework in this instantiation, adopting and the processor of the SIMD of intel enhancing instruction set SSE2 processes image is that example is described.Because SSE2 can carry out the Vector operation of integer or floating-point, therefore, the key assignments of multiple pixel can be calculated simultaneously, namely multiple pixel is screened simultaneously; Calculate because SSE2 instruction is easy to realize mask in addition, therefore, without the need to any conditional branch statements during calculation key, therefore, it is possible to promote computing velocity, thus promote color of image correction rate.
In this instantiation, the screening of one group of pixel is illustrated.Particularly, this group pixel is be that one group of division obtains by the pixel in image with four pixels.
The idiographic flow screened one group of pixel is as follows:
Step S402: according to input parameter hue, aperture, threshold, saturation calculate intermediate variable.
Wherein, intermediate variable comprises cos (-hue), sin (-hue), cot (aperture/2), range.
Step S404: read in three _ _ mm128 variable by the data of 4 pixels from original image, the respectively red of these 4 pixels corresponding, they are designated as pixel_red by green, blue passage respectively, pixel_green, pixel_blue.
This step is obtain from image when pixel value corresponding to this group 4 pixels of pre-treatment, screens pixel so that follow-up.Wherein, pixel is pixel.Namely pixel_red, pixel_green, pixel_blue are respectively the red color component value of the pixel value of the correspondence of pixel, the green component values of the pixel value that pixel is corresponding, and the blue color component value of pixel value corresponding to pixel.
Visible, the pixel value of the pixel of acquisition is the characteristic manner of rgb color space.
Step S406: utilize the transformation for mula of RGB to YUV to carry out colour space transformation to pixel_red, pixel_green, pixel_blue, result exists pixel_y, in pixel_u, pixel_v.
In this step, pixel value corresponding for pixel is transformed into YUV color space by rgb color space.
Step S408: utilize cos (-hue), sin (-hue), according to rotation formula, rotate pixel_u, pixel_v, result exists pixel_u, in pixel_v.
This group pixel is rotated according to rotation formula ku'=ku × cos (-hue)-kv × sin (-hue), kv'=ku × sin (-hue)+kv × cos (-hue) respectively.
Wherein, (ku, kv) is the coordinate of pixel in square U-V space.(ku', kv') is the coordinate in pixel square U-V space after rotation.Particularly, how by U-V spatial normalization to square space, with reference to the correlation step in embodiment two, in this instantiation, this can be repeated no more.
Such as: in square space, a pixel coordinate is (ku, kv), by rotation of coordinate-hue angle and angle value corresponding to retrograde rotation form and aspect, obtain new coordinate (ku', kv'), ku'=ku × cos (-hue)-kv × sin (-hue), kv'=ku × sin (-hue)+kv × cos (-hue).
Step S410: the absolute value getting pixel_v | pixel_v|, calculate its projection on the horizontal axis | pixel_v| × cot (aperture/2), add threshold, result and pixel_u and range compare, obtain mask mask, recycling softness calculates alpha, obtains key assignments.
Pixel_v and kv'.Particularly, calculate according to transverse axis u rotational symmetry, get the absolute value of kv', i.e. kv'=|kv'|, kv' is projected on transverse axis u axle and compares, kv "=kv'*cot (aperture/2)+threshold, kv " namely kv' horizontal projection and threshold horizontal coordinate and, length between range=saturation-threshold, range and inner and outer boundary.
Then compare, if kv' is less than or equal to kv ", then illustrate that this pixel (comprises outer boundary) outside outer boundary, do not choose this pixel; Kv' is more than or equal to kv else if "+range, then illustrate that this pixel (comprises inner boundary) within inner boundary, choose this pixel; If either way do not met above, then illustrate that this pixel (does not comprise inner and outer boundary) between inner and outer boundary, this pixel is not also selected.
Adopt step S410 to calculate the key assignments of 4 each pixels in this group pixel, to screen this group pixel simultaneously.After the pixel screening of current group, return step S404 and next group pixel is screened, until the whole pixels in image all screen complete.
Proving through overtesting, the image color correction method provided by the embodiment of the present invention, is on the processor of 2.5GHz a dominant frequency, and the key assignments calculating a width 720x576 pixel size image (BGRA space) only needs 2.5ms.If can make full use of multinuclear/Hyper-Threading (calculating being evenly distributed to above each core or on hardware thread), the CPU process one width 720x576 sized images of eight cores then only needs less than 1ms.
Embodiment three
With reference to Fig. 5, show the structured flowchart of a kind of color of image means for correcting of the embodiment of the present invention three.
The color of image device of the embodiment of the present invention comprises: receiver module 502, carries out the setting of the parameter confirmed for receiving the range of key values treating correcting image color, and wherein, described parameter comprises: form and aspect, aperture, saturation degree threshold value, saturation degree and soft limit; Determination module 504, for according to the described parameter arranged, in YUV chrominance space, determine the range of key values of described color of image to be corrected; Screening module 506, for screening each pixel in described image according to setting rule, to determine each pixel carrying out color correction; Correction module 508, for carrying out color correction to the described each pixel determined.
The color of image means for correcting provided by the embodiment of the present invention, the range of key values of color of image to be corrected can be determined according to the form and aspect of input, aperture, saturation degree threshold value, saturation degree and soft limit parameter, that is, a class color to be corrected can be determined.After determining a class color to be corrected, each pixel in image is screened according to setting rule, determines that pixel value meets each pixel of color to be corrected, then, color correction is carried out to each pixel determined.The color of image means for correcting provided in the embodiment of the present invention only carries out color correction to a class color, and other class colors are not corrected, compared to existing the second color calibration method, all kinds of color all being carried out blindly corrects, calibration accuracy is higher, can meet the requirement to correction accuracy.Visible, the color of image means for correcting that the embodiment of the present invention provides, under the prerequisite meeting correction accuracy, can carry out color correction to the class color in image simultaneously.
Embodiment four
With reference to Fig. 6, show the structured flowchart of a kind of color of image means for correcting of the embodiment of the present invention four.
The color of image device of the embodiment of the present invention comprises: receiver module 602, carries out the setting of the parameter confirmed for receiving the range of key values treating correcting image color, and wherein, described parameter comprises: form and aspect, aperture, saturation degree threshold value, saturation degree and soft limit; Determination module 604, for according to the described parameter arranged, in YUV chrominance space, determine the range of key values of described color of image to be corrected; Screening module 606, for screening each pixel in described image according to setting rule, to determine each pixel carrying out color correction; Correction module 608, for carrying out color correction to the described each pixel determined.
Preferably, described determination module 604 comprises: normalization module 6042, for YUV chrominance space is normalized into square space; Rotary module 6044, for by angle value corresponding for the coordinate axis retrograde rotation form and aspect in described square space; Variant determination module 6046, in described square space after rotation, according to the described parameter determination intermediate variable arranged; Range of key values determination module 6048, for determining the range of key values of described color of image to be corrected according to the described intermediate variable determined.
Preferably, described screening module 606 is screened each pixel in described image according to setting rule, during to determine each pixel carrying out color correction: each pixel in described image is divided into groups according to setting number, each pixel in each group is synchronously screened, to determine the pixel carrying out color correction in current group.
Preferably, when described screening module 606 determines whether single pixel is the pixel carrying out color correction: according to the pixel value of current pixel point, judge described pixel whether within the inner boundary of described range of key values; If within described inner boundary, then determine that current pixel point is the pixel carrying out color correction; If current pixel point is outside the outer boundary of described range of key values, or current pixel point between described inner boundary and described outer boundary, then determines that current pixel point is without the need to carrying out color correction.
Preferably, when current pixel point is between described inner boundary and described outer boundary, described screening module 606, also for carrying out transparency process to current pixel point.
Preferably, described intermediate variable comprises: the cosine value of described form and aspect, the sine value of described form and aspect, described aperture 1/2nd cotangent value and described range of key values inner and outer boundary between length value.
The color of image means for correcting of the embodiment of the present invention is used for realizing corresponding image color correction method in previous embodiment one and embodiment two, and has the beneficial effect of corresponding embodiment of the method, does not repeat them here.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment at this color of image correcting scheme provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure required by system that there is the present invention program is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as the following claims reflect, all features of inventive aspect disclosed single embodiment before being to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in detail in the claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize scratching according to the video image of the embodiment of the present invention the some or all parts in image space case.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (10)

1. an image color correction method, is characterized in that, comprising:
Receive the setting that the range of key values treating correcting image color carries out the parameter confirmed, wherein, described parameter comprises: form and aspect, aperture, saturation degree threshold value, saturation degree and soft limit;
According to the described parameter arranged, the range of key values determining described color of image to be corrected in YUV chrominance space;
Each pixel in described image is screened, to determine each pixel carrying out color correction according to setting rule;
Color correction is carried out to the described each pixel determined.
2. method according to claim 1, is characterized in that, described according to arrange described parameter, in YUV chrominance space, determine that the step of the range of key values of described color of image to be corrected comprises:
YUV chrominance space is normalized into square space;
By angle value corresponding for the coordinate axis retrograde rotation form and aspect in described square space;
In described square space after rotation, according to the described parameter determination intermediate variable arranged;
The range of key values of described color of image to be corrected is determined according to the described intermediate variable determined.
3. method according to claim 2, is characterized in that, described intermediate variable comprises: the cosine value of described form and aspect, the sine value of described form and aspect, described aperture 1/2nd cotangent value and described range of key values inner and outer boundary between length value.
4. method according to claim 1, is characterized in that, described according to setting regular screening each pixel in described image, to determine that the step of each pixel carrying out color correction comprises:
Each pixel in described image is divided into groups according to setting number, each pixel in each group is synchronously screened, to determine the pixel carrying out color correction in current group.
5. method according to claim 4, is characterized in that, when determining whether single pixel is the pixel carrying out color correction:
According to the pixel value of current pixel point, judge described pixel whether within the inner boundary of described range of key values;
If within described inner boundary, then determine that current pixel point is the pixel carrying out color correction;
If current pixel point is outside the outer boundary of described range of key values, or current pixel point between described inner boundary and described outer boundary, then determines that current pixel point is without the need to carrying out color correction.
6. method according to claim 5, is characterized in that, when current pixel point is between described inner boundary and described outer boundary, described method also comprises:
Transparency process is carried out to current pixel point.
7. a color of image means for correcting, is characterized in that, comprising:
Receiver module, carries out the setting of the parameter confirmed for receiving the range of key values treating correcting image color, wherein, described parameter comprises: form and aspect, aperture, saturation degree threshold value, saturation degree and soft limit;
Determination module, for according to the described parameter arranged, in YUV chrominance space, determine the range of key values of described color of image to be corrected;
Screening module, for screening each pixel in described image according to setting rule, to determine each pixel carrying out color correction;
Correction module, for carrying out color correction to the described each pixel determined.
8. device according to claim 7, is characterized in that, described determination module comprises:
Normalization module, for being normalized into square space by YUV chrominance space;
Rotary module, for by angle value corresponding for the coordinate axis retrograde rotation form and aspect in described square space;
Variant determination module, in described square space after rotation, according to the described parameter determination intermediate variable arranged;
Range of key values determination module, for determining the range of key values of described color of image to be corrected according to the described intermediate variable determined.
9. device according to claim 7, is characterized in that, described screening module is screened, during to determine each pixel carrying out color correction each pixel in described image according to setting rule:
Each pixel in described image is divided into groups according to setting number, each pixel in each group is synchronously screened, to determine the pixel carrying out color correction in current group.
10. device according to claim 9, is characterized in that, when described screening module determines whether single pixel is the pixel carrying out color correction:
According to the pixel value of current pixel point, judge described pixel whether within the inner boundary of described range of key values;
If within described inner boundary, then determine that current pixel point is the pixel carrying out color correction;
If current pixel point is outside the outer boundary of described range of key values, or current pixel point between described inner boundary and described outer boundary, then determines that current pixel point is without the need to carrying out color correction.
CN201510580660.6A 2015-09-11 2015-09-11 Method and apparatus for correcting image colour Pending CN105139360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510580660.6A CN105139360A (en) 2015-09-11 2015-09-11 Method and apparatus for correcting image colour

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510580660.6A CN105139360A (en) 2015-09-11 2015-09-11 Method and apparatus for correcting image colour

Publications (1)

Publication Number Publication Date
CN105139360A true CN105139360A (en) 2015-12-09

Family

ID=54724693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510580660.6A Pending CN105139360A (en) 2015-09-11 2015-09-11 Method and apparatus for correcting image colour

Country Status (1)

Country Link
CN (1) CN105139360A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020131095A1 (en) * 2000-12-26 2002-09-19 Fuji Photo Film Co., Ltd. Method of correcting image data picked up from photographic film
CN1523898A (en) * 2003-02-21 2004-08-25 索尼英国有限公司 Colour correction
CN101764911A (en) * 2008-12-08 2010-06-30 新奥特(北京)视频技术有限公司 Method for restraining overflow of foreground color and controlling mixed brightness
CN101764909A (en) * 2008-12-08 2010-06-30 新奥特(北京)视频技术有限公司 Method for determining key values of pixels in image
CN101764912A (en) * 2008-12-09 2010-06-30 新奥特(北京)视频技术有限公司 Method for determining key value based on foreground and background color difference

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020131095A1 (en) * 2000-12-26 2002-09-19 Fuji Photo Film Co., Ltd. Method of correcting image data picked up from photographic film
CN1523898A (en) * 2003-02-21 2004-08-25 索尼英国有限公司 Colour correction
CN101764911A (en) * 2008-12-08 2010-06-30 新奥特(北京)视频技术有限公司 Method for restraining overflow of foreground color and controlling mixed brightness
CN101764909A (en) * 2008-12-08 2010-06-30 新奥特(北京)视频技术有限公司 Method for determining key values of pixels in image
CN101764912A (en) * 2008-12-09 2010-06-30 新奥特(北京)视频技术有限公司 Method for determining key value based on foreground and background color difference

Similar Documents

Publication Publication Date Title
CN106778995B (en) Artistic two-dimensional code generation method and device fused with image
CN100389597C (en) Methods and systems for locally adaptive image processing filters
US20100098350A1 (en) Blur Computation Algorithm
CN109658330B (en) Color development adjusting method and device
US9947258B2 (en) Image processing method and image processing apparatus
CN104574291A (en) Tone mapping
CN103118219A (en) Image processing apparatus, image processing method, and program product
CN109309826B (en) Image color balancing method and device, terminal equipment and readable storage medium
CN111489322B (en) Method and device for adding sky filter to static picture
CN105120185A (en) Image matting method and device for video images
CN105991982A (en) Color matching for imaging systems
US20130342741A1 (en) Method And Apparatus For Correcting For Vignetting In An Imaging System
GB2566050A (en) Luminance-normalised colour spaces
CN109920381B (en) Method and equipment for adjusting backlight value
CN109993718B (en) Multi-channel projection image fusion method and device
US9690752B2 (en) Method and system for performing robust regular gridded data resampling
CN110570384A (en) method and device for carrying out illumination equalization processing on scene image, computer equipment and computer storage medium
CN110838088A (en) Multi-frame noise reduction method and device based on deep learning and terminal equipment
CN113228097B (en) Image processing method and system
CN105139360A (en) Method and apparatus for correcting image colour
CN100437746C (en) Character display apparatus, character display method, character display program, and recording medium
CN105184785B (en) The contour extraction method and contour extraction apparatus of image
CN103686029B (en) A kind of video pixel opposite-angle interpolation method for the many optical projection systems of giant-screen
CN113409196B (en) High-speed global chromatic aberration correction method for real-time video splicing
CN113099191B (en) Image processing method and device

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

Application publication date: 20151209

RJ01 Rejection of invention patent application after publication