CN106060491A - Projected image color correction method and apparatus - Google Patents

Projected image color correction method and apparatus Download PDF

Info

Publication number
CN106060491A
CN106060491A CN201610440033.7A CN201610440033A CN106060491A CN 106060491 A CN106060491 A CN 106060491A CN 201610440033 A CN201610440033 A CN 201610440033A CN 106060491 A CN106060491 A CN 106060491A
Authority
CN
China
Prior art keywords
gray
scale map
region
value
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610440033.7A
Other languages
Chinese (zh)
Other versions
CN106060491B (en
Inventor
黄剑坚
吕岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL High-Tech Development Co Ltd
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201610440033.7A priority Critical patent/CN106060491B/en
Publication of CN106060491A publication Critical patent/CN106060491A/en
Application granted granted Critical
Publication of CN106060491B publication Critical patent/CN106060491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • H04N9/3182Colour adjustment, e.g. white balance, shading or gamut
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/643Hue control means, e.g. flesh tone control

Abstract

The invention provides a projected image color correction method and apparatus, wherein the method comprises the steps of: shooting a first grey-scale map with first brightness and segmenting the first grey-scale map into several regions, and according to an average brightness value of each region and a standard average brightness value of each region, regulating the brightness of a light source to target brightness; shooting a second grey-scale map with target brightness and segmenting the second grey-scale map into several regions, and acquiring an average value of each color in each region; shooting a third grey-scale map with second brightness and segmenting the third grey-scale map into several regions, and acquiring an average value of each color in each region; according to the standard average value of each color in each region of the first grey-scale map, the average value of each color in each region of the second grey-scale map, the average value of each color in each region of the third grey-scale map and the standard average value of each color in each region of the third grey-scale map, determining a gain component value and an offset value of each color in each region; and performing color correction according to a determination result and an input value of each color. The method and the apparatus provided by the invention can effectively correct colors of images projected on a wall or a curtain of relatively low quality.

Description

A kind of method for correcting colors of projected image and device
Technical field
The present invention relates to projection art, particularly to a kind of method for correcting colors of projected image and device.
Background technology
Projector is widely used in the various occasions of life, such as: business office, education and instruction, home entertaining etc..With The development of shadow casting technique, as short out-of-focus projection, projector equipment the most slowly becomes important display amusement equipment.As throwing Shadow equipment part of the whole, curtain is often an important component part of display system, and the effect of curtain mainly guarantees Gain is suitable so that the image of projection has preferable good contrast and preferably color rendition etc..But it is the best Curtain, price is the most expensive, the most up to ten thousand yuan of good curtain, and this is a spending the biggest for the user.The most a lot User is in order to reduce the most cheap curtain of cost or simply not use curtain, but directly by image projection at wall On.And the usual quality of cheap curtain is the most poor, uses and color will be occurred after a period of time to change, affect image quality.As The most directly by image projection on wall, image quality also can be affected by the change of body of wall color.Existing projection As alignment technique mainly by spectral information or the color information of color sensor acquired projections plane, to the spectrum letter gathered Breath or color information are analyzed, then according to the color of analysis result correcting orthographic projection image.But this projection image correction Technology needs to increase extra color sensor, relatively costly, and to the image rectification poor effect being projected on body of wall.
Summary of the invention
In view of this, the present invention provides a kind of method for correcting colors of projected image and device, it is possible to achieve to being projected in wall Effective correction of the color of image on body or second-rate curtain.
Embodiment of the present invention first aspect provides a kind of method for correcting colors of projected image, including: the first of shooting projection The gray-scale map of brightness, obtains the first gray-scale map, according to preset size, described first gray-scale map is divided into several regions, root According to the array of the average brightness value in each region and each region in preset described first gray-scale map in described first gray-scale map Standard average brightness value, the brightness to light source is adjusted so that the brightness of described light source reaches object brightness;Shooting projection The gray-scale map of object brightness, obtains the second gray-scale map, according to the partitioning scheme identical with described first gray-scale map, by described second Gray-scale map is divided into several regions, and obtains in described second gray-scale map the average of each color included in each region respectively The array of value;The gray-scale map of the second brightness of shooting projection, obtains the 3rd gray-scale map, according to identical with described first gray-scale map Partitioning scheme, is divided into several regions by described 3rd gray-scale map, obtains in described 3rd gray-scale map included in each region The array of meansigma methods of each color, wherein said second brightness is less than described object brightness;According to preset described first ash Each face included in each region in the standard means of each color included in each region, described second gray-scale map in degree figure The array of the meansigma methods of each color included in each region and pre-in the array of the meansigma methods of color, described 3rd gray-scale map In described 3rd gray-scale map put, the standard means of each color included in each region, determines included in each described region The gain component value of each color and offset value;According to described gain component value, described offset value and each described region Included in the input value of each color, the image of Current projection is carried out color correction.
Embodiment of the present invention second aspect provides a kind of projection as color correction device, including taking module, is used for clapping Take the photograph the gray-scale map of the first brightness of projection, obtain the first gray-scale map;Segmentation module, is used for described first according to preset size Gray-scale map is divided into several regions;Brightness adjusting section, for according to the mean flow rate in each region in described first gray-scale map The standard average brightness value in each region in the array of value and preset described first gray-scale map, the brightness to light source is adjusted Whole so that the brightness of described light source reaches object brightness;Described taking module, is additionally operable to the gray scale of the object brightness of shooting projection Figure, obtains the second gray-scale map;Described segmentation module, is additionally operable to according to the partitioning scheme identical with described first gray-scale map, by institute State the second gray-scale map and be divided into several regions;Computing module, for obtaining in described second gray-scale map institute in each region respectively The array of the meansigma methods of each color comprised;Described taking module, is additionally operable to the gray-scale map of the second brightness of shooting projection, obtains 3rd gray-scale map, wherein said second brightness is less than described object brightness;Described segmentation module, is additionally operable to according to described first The partitioning scheme that gray-scale map is identical, is divided into several regions by described 3rd gray-scale map;Described computing module, is additionally operable to obtain The array of the meansigma methods of each color included in each region in described 3rd gray-scale map;Described computing module, is additionally operable to basis The standard means of each color included in each region, described second gray-scale map Zhong Ge district in preset described first gray-scale map In the array of the meansigma methods of each color included in territory, described 3rd gray-scale map, each color included in each region is average In the array of value and preset described 3rd gray-scale map, the standard means of each color included in each region, determines each The gain component value of each color included in described region and offset value;Correction module, for according to described gain component The input value of each color included in value, described offset value and each described region, carries out face to the image of Current projection Color corrects.
According to above-described embodiment, a kind of method for correcting colors of projected image of present invention offer and device, clapped by utilization Take the photograph the gray-scale map that module photograph is projected in the multiple different brightness of view field, and according to preset size by the gray-scale map of shooting It is divided into multiple region, then according to institute in the average brightness value in each region in the gray-scale map of multiple different brightness and each region The each self-corresponding meansigma methods of each color comprised, the figure to projection in conjunction with preset standard average brightness value and standard means As carrying out color correction, compared to prior art, on the one hand due to without color school can be carried out by extra particular components Just, therefore cost is relatively low, and on the other hand the present invention has the advantage that calibration accuracy is high, is particularly well-suited to curtain poor or without curtain The projection environment of cloth, can realize more natural overall display effect, thus improve Consumer's Experience, increases product viscosity.
For the above and other objects, features and advantages of the present invention can be become apparent, preferred embodiment cited below particularly, And coordinate institute's accompanying drawings, it is described in detail below.
Accompanying drawing explanation
The flow chart of a kind of method for correcting colors of projected image that Fig. 1 provides for one embodiment of the invention;
The signal of smoothing processing in a kind of method for correcting colors of projected image that Fig. 2 provides for another embodiment of the present invention Figure;
A kind of projection that Fig. 3 provides for one embodiment of the invention is as the structural representation of color correction device.
Detailed description of the invention
By further illustrating the technological means and effect that the present invention taked by realizing predetermined goal of the invention, below in conjunction with Accompanying drawing and preferred embodiment, to the foundation detailed description of the invention of the present invention, structure, feature and effect thereof, after describing in detail such as.
See Fig. 1, show the flow chart of a kind of method for correcting colors of projected image that first embodiment of the invention provides, The method is applied to be configured with the projector of photographing module, or is configured with photographing module and can remotely control projector Other-end equipment, such as: computer, smart mobile phone, smart camera or remote controller etc., the method specifically can include following Step:
The gray-scale map of the first brightness that S101, shooting project, obtains the first gray-scale map, according to preset size by the first ash Degree figure is divided into several regions, according to array and preset first ash of the average brightness value in region each in the first gray-scale map The standard average brightness value in each region in degree figure, the brightness to light source is adjusted so that the brightness of light source reaches object brightness;
Shooting is projected in the gray-scale map of the first brightness of view field, obtains the first gray-scale map, will according to preset size First gray-scale map is divided into several regions, and obtain the average brightness value in each region in the first gray-scale map array HV_L1 [X, Y], wherein X represents that line number, Y represent columns.
Concrete, with the first brightness, prediction picture is projected in the view field of curtain or body of wall by projection module, so By photographing module, this image taking of projection is got off afterwards, obtain the first gray-scale map.Surface condition ratio due to view field More complicated, some there may be mottle, wall skin comes off etc. affects the special circumstances of image quality, so simple overall situation school can not be done Just.Here according to preset size, the first gray-scale map is divided into the least unit area physically, corrects respectively, from And reach more preferable calibration result.
Preferably, by the first gray-scale map according to preset size, based on pixel, the first gray-scale map is divided into some Individual foursquare region.Decile is carried out as comprised 20 × 20 such sizes of pixel according to each region.
Be averaged respectively brightness statistics to the pixel in each region being partitioned in the first gray-scale map, the most respectively respectively The value of each color of all pixels comprised in individual region, as R (red), G (green), the value of B (blue) are accumulated in together, so After average again.Concrete, the average brightness value of a-quadrant=[(R+G+B of the pixel 1 of a-quadrant)+(pixel 2 of a-quadrant R+G+B) ...+(R+G+B of pixel N of a-quadrant)]/N, by that analogy.Each region in the first gray-scale map is obtained by statistics Array HV_L1 [X, Y] of average brightness value, wherein X represents that line number, Y represent columns.Assume to split the gray-scale map of 80% brightness Be 96 × 54 subregions, then HV_L1 [X, Y] i.e. HV_80 [96,54].
As another embodiment of the present invention, according to preset size, described first gray-scale map is being divided into several regions Before, also include: the brightness value of the first gray-scale map is compared with preset brightness value;If the brightness value of the first gray-scale map with The preset error between brightness value exceedes preset error value, then perform described first gray-scale map segmentation according to preset size For step and the follow-up aligning step thereof in several regions, otherwise, skip follow-up aligning step.Wherein, preset brightness Value be this locality prestore sampling region is corrected after the brightness value that obtains.
Further, add up the brightness value in multiple appointment regions in the first gray-scale map, by right with this for the brightness value counted The brightness value that sampling region obtains after being corrected compares, if error therebetween exceedes preset error, such as 5%, then Perform, according to preset size, described first gray-scale map is divided into the step in several regions and follow-up aligning step thereof, no Then, follow-up aligning step is skipped.
Wherein, add up the brightness value in preset multiple regions in the first gray-scale map to specifically include:
By limit and the limit of vertical direction of the horizontal direction of the first gray-scale map, carry out decile according to preset quantity respectively, Obtain the unit area of respective amount, take the unit area of the specified quantity (such as: 4) in the centre position of this first gray-scale map, The pixel of these 4 unit areas is carried out brightness statistics, obtains brightness value.Such as, by a size of FHD (Full High Definition, full HD) in the horizontal direction and vertical direction is respectively according to 6 parts for the first gray-scale map of 1920 × 1080 (pixels) Mode divide equally, then take centre 4 parts of unit areas 640 × 360 (pixel), the pixel wherein comprised is carried out brightness Statistics, obtains brightness value.
Concrete, according in the array of the average brightness value in region each in the first gray-scale map and the first preset gray-scale map The standard average brightness value in each region, the brightness to light source is adjusted including:
Each numerical value in array HV_L1 [X, Y] of the average brightness value in each region in the first gray-scale map that will count Compare with the standard average brightness value HV_L1_STANDARD in each region in the first preset gray-scale map respectively, it is judged that HV_ Whether L1 [X, Y] exists desired value, this desired value and the difference of HV_L1_STANDARD, obtain divided by after HV_L1_STANDARD To value should be greater than default value (such as: 10%).
If HV_L1 [X, Y] not existing desired value, then using the first brightness as object brightness.
If HV_L1 [X, Y] exists desired value, then show that metope has reflective, need to adjust the brightness of light source.Then by light The brightness in source (such as: 100%~70%) gradually reduces in presetting range, until when HV_L1 [X, Y] does not exist desired value, Now using this desired value as object brightness, or, until the brightness of light source has been adjusted to the minima of presetting range (as The 70% of big brightness), now using brightness corresponding for this minima as this object brightness.
It should be noted that brightness adjustment is a cyclic process, each time after brightness adjustment, HV_L1 [X, Y] is required to Reacquire.
As another embodiment of the present invention, the average brightness value in region each in the first gray-scale map is smoothed, The smooth average brightness value in each region in the first gray-scale map, replaces Yuanping City the brightest the array of the smooth average brightness value obtained The array of angle value compares with standard average brightness value, according to comparative result by the brightness adjustment of light source to meeting prerequisite Object brightness.
The average brightness value in region each in the first gray-scale map is smoothed, obtains each region in the first gray-scale map Smooth average brightness value, such as: according to the position feature in region each in the first gray-scale map, determines each region in the first gray-scale map Adjacent area;According to each self-corresponding weighted value in region each in the first gray-scale map and adjacent area thereof, and in the first gray-scale map The average brightness value in each region, by ranking operation, obtains the smooth average brightness value in each region in the first gray-scale map;According to The smooth average brightness value in each region in one gray-scale map, obtains the array of the average brightness value in each region in the first gray-scale map.
Concrete, each region in the first gray-scale map is divided into position, angle, position, limit and other positions according to position feature, point Not Huo Qu position, angle and each self-corresponding weighted value of adjacent area thereof, the brightest according to this weighted value and position, angle and adjacent area thereof The brightness value of this position, angle is computed weighted by angle value, obtains the smooth average brightness value of this position, angle;Respectively obtain position, limit and The each self-corresponding weighted value of adjacent area, according to the average brightness value of this weighted value and position, limit and adjacent area thereof to this position, limit Brightness value computes weighted, and obtains the smooth average brightness value of this position, limit;Obtain other positions and adjacent area thereof respectively each Corresponding weighted value, enters these other brightness value according to the average brightness value of this weighted value and other and adjacent area thereof Row ranking operation, obtains these other smooth average brightness value.
Wherein, the surrounding of position, angle includes 3 adjacent areas, and the surrounding of position, limit includes 5 adjacent regions, other week Enclose and include 8 adjacent regions.As a example by 96 × 54 subregions, as illustrated in fig. 2, it is assumed that A is position, angle, B is position, limit, and C is other Region, then:
Region for position, angle:
The former average brightness value in the region × weighted value Q1+ adjacent area 1 of the smooth average brightness value of position, A angle=position, A angle is former Average brightness value × former average brightness value of weighted value Q2+ adjacent area 2 × former average brightness value of weighted value Q3+ adjacent area 3 × Weighted value Q4;
Preferably, Q1 is 70%, Q2~Q4 is 10%.
Region for position, limit:
The former average brightness value in the region × weighted value Q1+ adjacent area 1 of the smooth average brightness value of position, B limit=position, B limit is former Average brightness value × former average brightness value of weighted value Q2+ adjacent area 2 × former average brightness value of weighted value Q3+ adjacent area 3 × The former average brightness value of the weighted value Q4+ adjacent area 4 × former average brightness value of weighted value Q5+ adjacent area 5 × weighted value Q6;
Preferably, Q1 is 60%, Q2~Q6 is 8%.
Region for other:
Other the former average brightness value in smooth average brightness value=C region × weighted value Q1+ adjacent area 1 Yuanping City of C is equal Brightness value × former average brightness value of weighted value Q2+ adjacent area 2 × former average brightness value × weight of weighted value Q3+ adjacent area 3 The value former average brightness value of the Q4+ adjacent area 4 × former average brightness value of weighted value Q5+ adjacent area 5 × weighted value Q6+ adjacent area 6 former average brightness values × former average brightness value of weighted value Q7+ adjacent area 7 × former average brightness value of weighted value Q8+ adjacent area 8 × weighted value Q9;
Preferably, Q1 is 60%, Q2~Q6 is 5%.
After above-mentioned smoothing processing, obtain array HV_L1_ of the smooth average brightness value in each region in the first gray-scale map NEW [X, Y].Each smooth average brightness value HV_L1_NEW [X, Y] is entered with standard average brightness value HV_L1_STANDARD respectively Row compares, if there is not desired value in HV_L1_NEW [X, Y], then brightness is object brightness.If HV_L1_NEW [X, Y] In there is desired value, then show that metope has reflective, need adjust light source brightness, wherein by this desired value and HV_L1_ The difference of STANDARD is more than 10% divided by the value obtained after HV_L1_STANDARD.Then by light-source brightness in presetting range (such as: 100%~70%) gradually reduces, until when HV_L1_NEW [X, Y] not existing desired value or light source has been adjusted to pre- When putting minima (such as the 70% of high-high brightness) of scope, brightness corresponding to this desired value or this minima is bright as this target Degree.
It should be noted that brightness adjustment is a cyclic process, each time after brightness adjustment, HV_L1_NEW [X, Y] is equal Need to reacquire.
As another embodiment of the present invention, each standard average brightness value related in the present embodiment and each standard means Obtain the most in such a way:
Darkroom shoots with the first brightness projection at the gray-scale map of Bai Mushang, to the gray-scale map of the first brightness of shooting R, G, B add up, the quantity of pixel that then will comprise in the accumulated value gray-scale map divided by this first brightness, obtain standard and put down All brightness value HV_L1_STANDARD;
Respectively R, G, the B in the gray-scale map of the first brightness of shooting is individually averaged, the most respectively the value of all R is tired out The quantity of the pixel comprised in gray-scale map divided by the first brightness after adding, by the value of all G ash divided by the first brightness after cumulative The quantity of the pixel comprised in degree figure, by the number of the pixel that the value of all B comprises in gray-scale map divided by the first brightness after cumulative Amount, obtains R, G, the B in the gray-scale map of the first brightness each self-corresponding standard means HV_L1_R_STANDARD, HV_L1_G_ STANDARD and HV_L1_B_STANDARD;
Darkroom shoots with the second brightness projection at the gray-scale map of Bai Mushang, to the gray-scale map of the second brightness of shooting R, G, B add up, the quantity of pixel that then will comprise in the accumulated value gray-scale map divided by this second brightness, obtain second bright The standard average brightness value HV_L2_STANDARD of the gray-scale map of degree;
Respectively R, G, the B in the gray-scale map of the second brightness of shooting is individually averaged, the most respectively the value of all R is tired out The quantity of the pixel comprised in gray-scale map divided by the second brightness after adding, by the value of all G ash divided by the second brightness after cumulative The quantity of the pixel comprised in degree figure, by the number of the pixel that the value of all B comprises in gray-scale map divided by the second brightness after cumulative Amount, obtains R, G, the B in the gray-scale map of the second brightness each self-corresponding standard means HV_L2_R_STANDARD, HV_L2_G_ STANDARD and HV_L2_B_STANDARD.
The gray-scale map of the object brightness that S102, shooting project, obtains the second gray-scale map, according to identical with the first gray-scale map Partitioning scheme, is divided into several regions by the second gray-scale map, and obtains in the second gray-scale map included in each region respectively The array of the meansigma methods of each color;
Concrete, by the second gray-scale map according to red R in each region of the partitioning scheme segmentation identical with the first gray-scale map, Green G, the blue trichromatic value of B are averaged after adding up respectively, obtain the meansigma methods of array HV_R_L3 [X, Y] of the meansigma methods of R, G Array HV_B_L3 [X, Y] of the meansigma methods of array HV_G_L3 [X, Y] and B.
Wherein, the meansigma methods of R in a-quadrant=[(value of the R of the pixel 1 of a-quadrant)+(R's of the pixel 2 of a-quadrant Value) ...+(value of the R of pixel N of a-quadrant)]/N;
The meansigma methods of G=[(value of the G of the pixel 1 of a-quadrant)+(value of the G of the pixel 2 of a-quadrant) ...+(A in a-quadrant The value of the G of pixel N in region)]/N;
The meansigma methods of B=[(value of the B of the pixel 1 of a-quadrant)+(value of the B of the pixel 2 of a-quadrant) ...+(A in a-quadrant The value of the B of pixel N in region)]/N.
By that analogy, thus obtain meansigma methods area array monochromatic for R, G, the B in each region in the second gray-scale map and be: HV_ R_L3 [X, Y], HV_G_L3 [X, Y] and HV_B_L3 [X, Y].
Further, in an alternative embodiment of the invention, according to each region average in above-mentioned process the first gray-scale map The smoothing processing mode that brightness value is identical, to the meansigma methods of R, the meansigma methods of G and B average in region each in the second gray-scale map Value is smoothed respectively, obtains the array of the smoothed average of each monochrome of R, G, B: HV_R_L3_NEW [X, Y], HV_G_ L3_NEW [X, Y] and HV_B_L3_NEW [X, Y].That is, according to the position feature in region each in the second gray-scale map, second is determined The adjacent area in each region in gray-scale map;According to each self-corresponding weighted value in region each in the second gray-scale map and adjacent area thereof, And second meansigma methods of each color in each region in gray-scale map, by ranking operation, obtain in the second gray-scale map in each region The smooth brightness value of each color;According to the smooth brightness value of each color in region each in the second gray-scale map, obtain the second gray-scale map In the array of the meansigma methods of each color in each region.As: assume that A is position, angle, then for the region of position, angle:
Yuanping City's average of R × weighted value Q1+ adjacent region in the region of the smoothed average of R=position, A angle in the region of position, A angle R former in Yuanping City's average of R × weighted value Q3+ adjacent area 3 in Yuanping City's average of R × weighted value Q2+ adjacent area 2 in territory 1 Meansigma methods × weighted value Q4.
In position, angle, in the smooth brightness value of G, B, position, limit and other region, the smooth brightness value of R, G, B is by that analogy.
The gray-scale map of the second brightness that S103, shooting project, obtains the 3rd gray-scale map, according to identical with the first gray-scale map Partitioning scheme, is divided into several regions by the 3rd gray-scale map, obtains each color included in each region in the 3rd gray-scale map The array of meansigma methods, wherein the second brightness is less than object brightness;
Preferably, the first brightness is 80%, and the second brightness is 20%, if being adjusted object brightness is 70%, then and second Brightness is 10%.The gray-scale map of the second brightness of shooting projection, obtains the 3rd gray-scale map, according to the side identical with step S101 Formula, by the 3rd gray-scale map according to preset size, based on pixel, is divided into several foursquare regions.As according to often Individual region includes that 20 × 20 such sizes of pixel carry out decile.
According to the acquisition mode identical with the meansigma methods of each color included in each region in the second gray-scale map, obtain the In three gray-scale maps in each region the meansigma methods of array HV_R_L2 [X, Y] of the meansigma methods of R, G array HV_G_L2 [X, Y] and Array HV_B_L2 [X, Y] of the meansigma methods of B;
According to the acquisition mode identical with the average brightness value in each region in the first gray-scale map in step S101, statistics obtains Array HV_L2 [X, Y] of the average brightness value in each region in 3rd gray-scale map.And according to in the second gray-scale map in step S102 The acquisition mode that the meansigma methods of the individual color included in each region is identical, statistics obtains being wrapped in each region in the 3rd gray-scale map Array HV_R_L2 [X, Y] of the meansigma methods of each monochrome in R, G, B three primary colors contained, HV_G_L2 [X, Y] and HV_B_L2 [X, Y]。
Further, in another embodiment of the invention, according to each region in the first gray-scale map in step S101 The smoothed average phase of each color included in each region in second gray-scale map in smooth average brightness value and step S102 With acquisition mode, included in each region in the average brightness value in each region in the 3rd gray-scale map and the 3rd gray-scale map In R, G, B three primary colors, the meansigma methods of each monochrome is smoothed, and obtains array HV_L2_ of the smooth average brightness value of correspondence Array HV_R_L2_NEW [X, Y] of the smoothed average of NEW [X, Y] and R, G, B, HV_G_L2_NEW [X, Y] and HV_B_ L2_NEW [X, Y], to replace array and the 3rd gray-scale map Zhong Ge district of the former average brightness value in each region in the 3rd gray-scale map The array of the meansigma methods of each color included in territory, for follow-up color correction.
S104, according to the standard means of each color included in each region in the first preset gray-scale map, second ash Each color included in each region in the array of meansigma methods of each color included in each region, the 3rd gray-scale map in degree figure The array of meansigma methods and the 3rd preset gray-scale map in the standard means of each color included in each region, determine The gain component value of each color included in each region and offset value;
Specifically, first according to array HV_R_ of the meansigma methods of each color included in each region in the 3rd gray-scale map Each face included in each region in L2 [X, Y], HV_G_L2 [X, Y] and HV_B_L2 [X, Y], and the 3rd preset gray-scale map Standard means HV_L2_R_STANDARD, HV_L2_G_STANDARD and HV_L2_B_STANDARD of color, calculates R's respectively The offset value OFFSET_B of offset value OFFSET_G and B of offset value OFFSET_R, G.
Carry out seeking difference operation with HV_L2_R_STANDARD respectively by each value in HV_R_L2 [X, Y], obtain the inclined of R Move value OFFSET_R=HV_L2_R_STANDARD-HV_R_L2;If the OFFSET_R calculated is less than the HV_ of specified ratio L2_R_STANDARD, does not the most change the OFFSET_R calculated;If OFFSET_R is more than or equal to the HV_L2_R_ of specified ratio STANDARD, then be again entered as the HV_L2_R_STANDARD of specified ratio by OFFSET_R.By in HV_G_L2 [X, Y] Each value carries out asking difference operation respectively with HV_L2_G_STANDARD, calculates the offset value OFFSET_G=HV_L2_G_ of G STANDARD-HV_G_L2;If the OFFSET_G calculated is less than the HV_L2_G_STANDARD of specified ratio, the most do not change meter The OFFSET_G calculated;If OFFSET_G is more than or equal to the HV_L2_G_STANDARD of specified ratio, then by OFFSET_G weight Newly it is entered as the HV_L2_G_STANDARD of specified ratio.HV_B_L2 [X, Y] is compared with HV_L2_B_STANDARD respectively Relatively, the offset value OFFSET_B=HV_L2_B_STANDARD-HV_B_L2 of B is calculated;If the OFFSET_B calculated is less than referring to The HV_L2_B_STANDARD of fixed-ratio, does not the most change the OFFSET_B calculated;If OFFSET_B is more than or equal to specifying ratio The HV_L2_B_STANDARD of rate, then be again entered as the HV_L2_B_STANDARD of specified ratio by OFFSET_B.
Secondly, according to array HV_R_L3 of the meansigma methods of each color included in region each in the second gray-scale map [X, Y], HV_G_L3 [X, Y] and HV_B_L3 [X, Y], the standard of each color included in each region in the first preset gray-scale map Meansigma methods HV_L1_R_STANDARD, HV_L1_G_STANDARD and HV_L1_B_STANDARD, and above-mentioned calculate each Offset value OFFSET_R, OFFSET_G and OFFSET_B, calculate gain component value GAIN_R [m, n] of the R in each region, G Gain component value GAIN_B [m, n] of gain component value GAIN_G [m, n] and B, wherein, 1≤m≤X;1≤n≤Y.
Calculate gain component value GAIN_R [m, the n]=(HV_L1_R_STANDARD-OFFSET_R of the R in each region respectively [m, n]-HV_R_L3 [m, n])/HV_R_L3 [m, n], the GAIN_R [m, n] calculated is carried out with preset gain component value Relatively, if GAIN_R [m, n] is less than preset gain component value, then to GAIN_R [m, n] without modification, otherwise, by GAIN_R [m, n] is entered as preset gain component value again.
Calculate gain component value GAIN_G [m, the n]=(HV_L1_G_STANDARD-OFFSET_G of the G in each region respectively [m, n]-HV_G_L3 [m, n])/HV_G_L3 [m, n], the GAIN_G [m, n] calculated is carried out with preset gain component value Relatively, if GAIN_G [m, n] is less than preset gain component value, then to GAIN_G [m, n] without modification, otherwise, by GAIN_G [m, n] is entered as preset gain component value again.
Calculate gain component value GAIN_B [m, the n]=(HV_L1_B_STANDARD-OFFSET_B of the B in each region respectively [m, n]-HV_B_L3 [m, n])/HV_B_L3 [m, n], the GAIN_B [m, n] calculated is carried out with preset gain component value Relatively, if GAIN_B [m, n] is less than preset gain component value, then to GAIN_B [m, n] without modification, otherwise, by GAIN_B [m, n] is entered as preset gain component value again.
S105, input value according to each color included in gain component value, offset value and each region, to currently The image of projection carries out color correction.
Concrete, according to formula: R_OUTPUT=R_INPUT × GAIN_R [m, n]+OFFSET_R [m, n], calculate each district The corrected value of the R in territory, wherein R_OUTPUT is the corrected value of the R exported, and R_INPUT is the input value of R.
According to formula: G_OUTPUT=G_INPUT × GAIN_G [m, n]+OFFSET_G [m, n], calculate the G's in each region Corrected value, wherein G_OUTPUT is the corrected value of the G exported, and R_INPUT is the input value of G.
According to formula: B_OUTPUT=B_INPUT × GAIN_B [m, n]+OFFSET_B [m, n] calculates the B's in each region Corrected value, wherein B_OUTPUT is the corrected value of the B exported, and B_INPUT is the input value of B.
Further, in an alternative embodiment of the invention, each according to R, G, the B included in each region in the 3rd gray-scale map Monochromatic smoothed average (HV_R_L2_NEW [X, Y], HV_G_L2_NEW [X, Y] and HV_B_L2_NEW [X, Y]), each list Color each self-corresponding standard means (HV_L2_R_STANDARD, HV_L2_G_STANDARD and HV_L2_B_ STANDARD), in the second gray-scale map each monochrome of R, G, B included in each region smoothed average (HV_R_L3_NEW [X, Y], HV_G_L3_NEW [X, Y] and HV_B_L3_NEW [X, Y]) and the first gray-scale map in R, G, B included in each region Each monochrome each self-corresponding standard means (HV_L1_R_STANDARD, HV_L1_G_STANDARD and HV_L1_B_ STANDARD), the color correction that carries out to the image projected, concrete bearing calibration utilizes non-putting down through smoothing processing with above-mentioned The method used when average is corrected is similar, and here is omitted.
In order to better illustrate said method, below in conjunction with Fig. 2, as a example by 80% brightness and 20% brightness, to above-mentioned throwing The correction of shadow color of image illustrates.
Part I, obtains the standard value under 80% brightness and 20% brightness case, specifically includes following steps:
1, in darkroom, the gray-scale map of 80% brightness is made a call to Bai Mushang, to R (red) color, G (green) color, B (blue) color Value adds up, and then takes average brightness HV_80_STANDARD.
2, R, G, the B in the gray-scale map of 80% brightness is individually averaged, respectively obtain: HV_80_R_STANDARD, HV_80_G_STANDARD and HV_80_B_STANDARD.
3, in darkroom, make a call to the gray-scale map of 20% brightness to Bai Mushang, R, G, B are added up, then takes brightness Meansigma methods HV_20_STANDARD.
4, R, G, the B in the gray-scale map of 80% brightness is individually averaged, respectively obtain: HV_20_R_STANDARD, HV_20_G_STANDARD and HV_20_B_STANDARD.
Part II, shooting is projected in the gray-scale map of 80% brightness of view field, according to the ash of 80% brightness of shooting Degree figure, it may be judged whether needing to carry out gamma correction, if needing gamma correction, performing correct operation.Judge process specifically includes Following steps:
1, make a call to the gray-scale map of 80% brightness to screen, then return with photographic head shooting.
2, the image shot above is divided equally image level, vertically all 6.4 parts of the centre rounding an image carry out bright Degree statistics.Such as: for FHD (1920 × 1080), take centre (640 × 360) this partial pixel and carry out brightness statistics.Contrast is originally Brightness value after the sampling regional correction that machine preserves, if error surpasses 5%, it is believed that environment has bigger change, needs Re-calibrate, otherwise skip correction portion.
Part III, gamma correction part, specifically include following steps:
1, because the situation of metope is more complicated, some may have mottle etc., so simple overall situation correction can not be done.This In whole screen is divided into the least unit area, correct respectively, to reach more preferable effect.As, for 100 The projection TV of very little FHD (resolution is 1920 × 1080), viewing area by 20 × 20 such region segmentation of pixel, So view field of this TV is divided into 96 × 54 equal portions.
2, be averaged respectively brightness statistics to 20 × 20 pixels in each district, namely the R+ of each pixel G+B adds up, then is averaged, and saves.The most all of view field segmentation statistical value obtain array HV_80 [96, 54]。
3, being smoothed the statistical value obtained, for 96 × 54 subregions, there are 3 adjacent districts in the surrounding of position, angle Territory, there are 5 adjacent regions in the surrounding of position, limit, and other subregion, around there are 8 adjacent regions.Smooth method is, right In the region of position, angle, as shown in Figure 2: A is position, angle, B is position, limit, and C is other region.
Region for position, angle:
Original numerical value × 10%+ the adjacent area 2 of the original numerical value in region × 70%+ adjacent area 1 of new numerical value=position, A angle is former Carry out original numerical value × 10% of numerical value × 10%+ adjacent area 3.
Region for position, limit:
Original numerical value × 8%+ the adjacent area 2 of the original numerical value in region × 60%+ adjacent area 1 of new numerical value=position, B limit is former Come the original original numerical value of numerical value × 8%+ adjacent area 5 of the original numerical value × 8%+ adjacent area of numerical value × 8%+ adjacent area 34 × 8%.
For other regions:
The original numerical value in new numerical value=C region × 60%+ adjacent area 1 original numerical value of original numerical value × 5%+ adjacent area 2 Original numerical value × 5%+ the adjacent area of × 5%+ adjacent area 34 original numerical value × 5%+ the phase of original numerical value × 5%+ adjacent area 5 Original original numerical value × 5% of numerical value × 5%+ adjacent area 8 of the original numerical value × 5%+ adjacent area in neighbouring region 67.
After above-mentioned smoothing processing, obtain new array HV_80_NEW [96,54].
4, array HV_80_NEW [96,54] is trichromatic cumulative for R, G, B.In like manner, with reference to above-mentioned Part III 2 With the method shown in 3, individually obtaining the meansigma methods area array that R, G, B are monochromatic under 80% brightness case is: HV_R_80_NEW [96,54], HV_G_80_NEW [96,54] and HV_B_80_NEW [96,54].
5, make a call to the gray-scale map of 20% brightness to screen, return with photographic head shooting.Referring next to above-mentioned 3rd Divide the method shown in 1-4, it is thus achieved that array HV_20 [96,54] and HV_20_NEW [96,54].
6, array HV_20_NEW [96,54] is trichromatic cumulative for R, G, B.In like manner, with reference to above-mentioned Part III 2 With the method shown in 3, individually obtaining the meansigma methods area array that R, G, B are monochromatic under 20% brightness case is: HV_R_20_NEW [96,54], HV_G_20_NEW [96,4] and HV_B_20_NEW [96,54].
7, HV_80_NEW [96,54] is compared with HV_80_STANDARD, if HV_80_NEW [96,54] there being value surpass Cross the situation of HV_80_STANDARD10%, then show that metope has reflective, first light-source brightness between 100%~70% progressively Reduce, until when in HV_80_NEW [96,54] void value situation more than HV_80_STANDARD10% or light source the most adjusted To high-high brightness 70%.
If it is to be appreciated that the brightness of light source has adjustment, the most above-mentioned Part II and the dependency number of Part III 1-6 item Value is intended under the basis of new light sources brightness reacquire, and the brightness after then adjusting is as the first brightness.
Part IV, color correcting section, specifically include following steps based on each part mentioned above:
1, respectively HV_20_R_STANDARD is contrasted with regard to each regional value in HV_R_20_NEW [96,54], calculate skew Value OFFSET_R=HV_20_R_STANDARD-HV_R_20_NEW, if OFFSET_R < HV_20_R_STANDARD × 10%, the most do not change the OFFSET_R calculated;If OFFSET_R >=HV_20_R_STANDARD × 10%, then will OFFSET_R is entered as HV_20_R_STANDARD × 10% again.After HV_R_20_NEW [96,54] is compared, can To obtain OFFSET_R [96,54].
2 is identical with 1, contrasts HV_20_G_ with regard to each regional value in HV_G_20_NEW [96,54] respectively STANDARD, calculates offset value OFFSET_G=HV_20_G_STANDARD-HV_G_20_NEW, if OFFSET_G is < HV_ 20_G_STANDARD × 10%, does not the most change the OFFSET_G calculated;If OFFSET_G >=HV_20_G_STANDARD × 10%, then OFFSET_G is entered as again HV_20_G_STANDARD × 10%.By all of HV_G_20_NEW [96, 54], after all comparing, OFFSET_G [96,54] can be obtained.
3 is identical with 1, contrasts HV_20_B_ with regard to each regional value in HV_B_20_NEW [96,54] respectively STANDARD, calculates offset value OFFSET_B=HV_20_B_STANDARD-HV_B_20_NEW, if OFFSET_B is < HV_ 20_B_STANDARD × 10%, does not the most change the OFFSET_B calculated;If OFFSET_B >=HV_20_B_STANDARD × 10%, then OFFSET_B is entered as again HV_20_B_STANDARD × 10%.By all of HV_B_20_NEW [96, 54], after all comparing, OFFSET_B [96,54] can be obtained.
4, the gain component value with regard to R calculates:
Such as region [m, n], wherein 1≤m≤96;1≤n≤54
GAIN_R [m, n]=(HV_80_R_STANDARD-OFF SET_R [m, n]-H V_R_80_N E W [m, n])/H V_R_80_N E W [m, n].
If GAIN_R [m, n] < 15%, then to GAIN_R [m, n] without modification, otherwise, GAIN_R [m, n] is composed again Value is 15%.
5, the gain component value with regard to G calculates:
Such as region [m, n], wherein 1≤m≤96;1≤n≤54
GAIN_G [m, n]=(HV_80_G_STANDARD-OFF SET_G [m, n]-H V_G_80_N E W [m, n])/H V_G_80_N E W [m, n].
If GAIN_G [m, n] < 15%, then to GAIN_G [m, n] without modification, otherwise, GAIN_G [m, n] is composed again Value is 15%.
6, the gain component value with regard to B calculates:
Such as region [m, n], wherein 1≤m≤96;1≤n≤54
GAIN_B [m, n]=(HV_80_B_STANDARD-OFF SET_B [m, n]-H V_B_80_N E W [m, n])/H V_B_80_N E W [m, n].
If GAIN_B [m, n] < 15%, then GAIN_B [m, n] is to without modification, otherwise, is again composed by GAIN_B [m, n] Value is 15%.
7, for the data to be shown of input, the output of correction is:
Each region individually corrects, such as region [m, n], wherein 1≤m≤96,1≤n≤54
For the R value in [m, n] region, the formula of correction is:
R_OUTPUT=R_INPUT × GAIN_R [m, n]+OFFSET_R [m, n].
For the G-value in [m, n] region, the formula of correction is:
G_OUTPUT=G_INPUT × GAIN_G [m, n]+OFFSET_G [m, n].
For the B value in [m, n] region, the formula of correction is:
B_OUTPUT=B_INPUT × GAIN_B [m, n]+OFFSET_B [m, n].
According to above-mentioned formula, the picture color of projection is corrected.
It should be noted that the projection that above-mentioned citing is the FHD with 100 cun illustrates, for other sizes, other As equally applicable in resolution such as 4K, and for the size of subregion, be also suitably to change.
In the embodiment of the present invention, it is projected in the gray scale of the multiple different brightness of view field by utilizing taking module to shoot Figure, and according to preset size, the gray-scale map of shooting is divided into multiple region, then according to the gray-scale map of multiple different brightness In each self-corresponding meansigma methods of each color included in the average brightness value in each region and each region, in conjunction with preset mark Quasi-average brightness value and standard means carry out color correction to the image of projection, compared to prior art, on the one hand due to nothing Need to can carry out color correction by extra particular components, therefore cost is relatively low, and on the other hand the present invention has calibration accuracy Spend high advantage, be particularly well-suited to that curtain is poor or projection environment without curtain, more natural overall display effect can be realized, from And improve Consumer's Experience, increase product viscosity.
See Fig. 3, show a kind of projection of one embodiment of the invention offer as the structural representation of color correction device Figure, it can be the executive agent of a kind of method for correcting colors of projected image that Fig. 1 and embodiment illustrated in fig. 2 provide, such as projection A module in instrument or projector, for convenience of description, illustrate only the part relevant to the embodiment of the present invention.Such as Fig. 3 institute Showing, this device includes:
Taking module 301, for shooting the gray-scale map of the first brightness of projection, obtains the first gray-scale map;
Segmentation module 302, for being divided into several regions according to preset size by this first gray-scale map;
Brightness adjusting section 303, for according to the array of the average brightness value in each region in this first gray-scale map and pre- The standard average brightness value in each region in this first gray-scale map put, the brightness to light source is adjusted so that this light source bright Degree reaches object brightness;
Taking module 301, is additionally operable to the gray-scale map of the object brightness of shooting projection, obtains the second gray-scale map;
Segmentation module 302, is additionally operable to, according to the partitioning scheme identical with this first gray-scale map, be split by this second gray-scale map For several regions;
Computing module 304, for obtaining in this second gray-scale map the meansigma methods of each color included in each region respectively Array;
Taking module 301, is additionally operable to the gray-scale map of the second brightness of shooting projection, obtains the 3rd gray-scale map, wherein this Two brightness are less than this object brightness;
Segmentation module 302, is additionally operable to according to the partitioning scheme identical with this first gray-scale map, by the 3rd gray-scale map segmentation For several regions;
Computing module 304, is additionally operable to obtain in the 3rd gray-scale map the meansigma methods of each color included in each region Array;
Computing module 304, is additionally operable to the mark of each color included according to each region in this preset first gray-scale map In quasi-average value, this second gray-scale map each in the array of meansigma methods of each color included in each region, the 3rd gray-scale map Each included in each region in the array of the meansigma methods of each color included in region and the 3rd preset gray-scale map The standard means of color, determines gain component value and the offset value of each color included in each this region;
Correction module 305, for according to this gain component value, this offset value and each each face included in this region The input value of color, carries out color correction to the image of Current projection.
In another embodiment of the present invention, further, brightness adjusting section 303 specifically for:
By each numerical value in the array of the average brightness value in each region in this first gray-scale map respectively with this first gray scale In figure, the standard average brightness value in each region compares, it is judged that the array of the average brightness value in each region in this first gray-scale map In whether there is desired value, wherein the difference of the standard average brightness value in each region in this desired value and this first gray-scale map, removes It is more than default value with the value obtained after the standard average brightness value in each region in this first gray-scale map;
If this first gray-scale map does not exist in the array of the average brightness value in each region this desired value, then this is first bright Degree is as this object brightness;
If this first gray-scale map exists in the array of the average brightness value in each region this desired value, then bright by this light source Degree gradually reduces, until there is not this mesh in the array of the average brightness value in each region in this first gray-scale map in presetting range Scale value, using this desired value as this object brightness, or, until the brightness of this light source has been adjusted to the minimum of this presetting range Value, using this minima as this object brightness;
Computing module 304, is additionally operable to:
According to the position feature in each region in this first gray-scale map, determine the adjacent region in each region in this first gray-scale map Territory;
According to each region in this first gray-scale map and each self-corresponding weighted value of adjacent area thereof, and this first gray-scale map In the average brightness value in each region, by ranking operation, obtain the smooth average brightness value in each region in this first gray-scale map;
According to the smooth average brightness value in each region in this first gray-scale map, obtain the flat of each region in this first gray-scale map All arrays of brightness value.
Further, computing module 304 specifically for:
Each value in the array of the meansigma methods obtaining in the 3rd gray-scale map each color included in each region, and respectively Difference between the standard means of each color included in each region in self-corresponding 3rd gray-scale map;
If the difference obtained is less than the standard of each color included in each region in the 3rd gray-scale map of specified ratio Meansigma methods, then using this difference as this offset value;
If this difference is more than or equal to each color included in each region in the 3rd gray-scale map of this specified ratio Standard means, then make the standard means of each color included in each region in the 3rd gray-scale map of this specified ratio For this offset value;
According to the standard means of each color included in each region in this preset first gray-scale map, this offset value And the array of the meansigma methods of each color included in each region in this second gray-scale map, obtain respectively included in this region The gain component value of each color;
If the gain component value obtained is more than or equal to preset component value, then this preset component value is replaced this gain component Value is for carrying out color correction to the image of this Current projection.
Further, computing module 304, be additionally operable to respectively by the input value of each color included in respectively this region with right After this gain component value answered is multiplied, then it is added with corresponding this offset value, obtains each color included in each this region Corrected value;
Correction module 305, specifically for according to this corrected value, carries out color correction to the image of this Current projection;
Taking module 301, is additionally operable in darkroom to shoot respectively with this first brightness and this second brightness projection at white curtain On gray-scale map;
Computing module 304, be additionally operable to by shooting with this first brightness projection included in the gray-scale map of Bai Mushang Average after the value of each color is cumulative, obtain the standard average brightness value in each region in this first gray-scale map;To shooting with The value of this first brightness projection each color included in the gray-scale map of Bai Mushang is individually averaged by color, obtains The standard means of each color included in each region in this first gray-scale map;And to shooting with this second brightness projection The value of each color included in the gray-scale map of Bai Mushang is individually averaged by color, obtains in the 3rd gray-scale map The standard means of each color included in each region.
It should be noted that a kind of projection of figure 3 above example is as in the embodiment of color correction device, each function The division of module is merely illustrative of, can as required in actual application, the configuration requirement of such as corresponding hardware or software The convenient consideration of realization, and above-mentioned functions distribution is completed by different functional modules, will the internal structure of this device draw It is divided into different functional modules, to complete all or part of function described above.And, in actual application, the present embodiment In corresponding functional module can be to be realized by corresponding hardware, it is also possible to by corresponding hardware perform corresponding software complete (each embodiment that this specification provides all can apply foregoing description principle, below repeats no more).Before details refers to the greatest extent State the description in Fig. 1 and embodiment illustrated in fig. 2.
Knowable to a kind of projection of above-mentioned Fig. 3 example is as color correction device, by utilizing shooting mould in the present embodiment Block shooting is projected in the gray-scale map of the multiple different brightness of view field, and according to preset size by the gray-scale map segmentation of shooting For multiple regions, then according to the average brightness value in each region in the gray-scale map of multiple different brightness and each region included in The each self-corresponding meansigma methods of each color, in conjunction with preset standard average brightness value and standard means, the image of projection is entered Row color correction, compared to prior art, on the one hand due to without color correction can be carried out by extra particular components, because of This cost is relatively low, and on the other hand the present invention has the advantage that calibration accuracy is high, is particularly well-suited to curtain poor or without curtain Projection environment, can realize more natural overall display effect, thus improve Consumer's Experience, increases product viscosity.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can be passed through it Its mode realizes.Such as, device embodiment described above is only schematically, such as, and the division of described module, only Being only a kind of logic function to divide, actual can have other dividing mode, the most multiple modules or assembly to tie when realizing Close or be desirably integrated into another system, or some features can be ignored, or not performing.Another point, shown or discussed Coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or module or logical Letter connects, and can be electrical, machinery or other form.
The described module illustrated as separating component can be or may not be physically separate, shows as module The parts shown can be or may not be physical module, i.e. may be located at a place, or can also be distributed to multiple On mixed-media network modules mixed-media.Some or all of module therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional module in each embodiment of the present invention can be integrated in a processing module, it is also possible to It is that modules is individually physically present, it is also possible to two or more modules are integrated in a module.Above-mentioned integrated mould Block both can realize to use the form of hardware, it would however also be possible to employ the form of software function module realizes.
If described integrated module realizes and as independent production marketing or use using the form of software function module Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or the network equipment etc.) performs the complete of method described in each embodiment of the present invention Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It should be noted that for aforesaid each method embodiment, in order to simplicity describes, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some step can use other order or carry out simultaneously.Secondly, those skilled in the art also should know Knowing, it might not be all this that embodiment described in this description belongs to preferred embodiment, involved action and module Bright necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiments.
It is more than to a kind of method for correcting colors of projected image provided by the present invention and the description of device, for this area Technical staff, according to the thought of the embodiment of the present invention, the most all will change, combine On, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. a method for correcting colors of projected image, it is characterised in that described method includes:
The gray-scale map of the first brightness of shooting projection, obtains the first gray-scale map, according to preset size by described first gray-scale map It is divided into several regions, according to the array and preset described of the average brightness value in each region in described first gray-scale map The standard average brightness value in each region in one gray-scale map, the brightness to light source is adjusted so that the brightness of described light source reaches Object brightness;
The gray-scale map of the object brightness of shooting projection, obtains the second gray-scale map, according to the segmentation identical with described first gray-scale map Mode, is divided into several regions by described second gray-scale map, and obtains respectively in described second gray-scale map and wrapped in each region The array of the meansigma methods of each color contained;
The gray-scale map of the second brightness of shooting projection, obtains the 3rd gray-scale map, according to the segmentation identical with described first gray-scale map Mode, is divided into several regions by described 3rd gray-scale map, and obtain in described 3rd gray-scale map included in each region is each The array of the meansigma methods of color, wherein said second brightness is less than described object brightness;
Standard means according to each color included in each region in preset described first gray-scale map, described second gray scale Each face included in each region in the array of meansigma methods of each color included in each region, described 3rd gray-scale map in figure In the array of the meansigma methods of color and preset described 3rd gray-scale map, the standard of each color included in each region is average Value, determines gain component value and the offset value of each color included in each described region;
According to the input value of each color included in described gain component value, described offset value and each described region, right The image of Current projection carries out color correction.
Method the most according to claim 1, it is characterised in that described according to each region average in described first gray-scale map The standard average brightness value in each region in the array of brightness value and preset described first gray-scale map, the brightness to light source is carried out Adjust, including:
By each numerical value in the array of the average brightness value in each region in described first gray-scale map respectively with described first gray scale In figure, the standard average brightness value in each region compares, it is judged that the number of the average brightness value in each region in described first gray-scale map Whether group exists desired value, wherein said desired value and the difference of the standard average brightness value in each region in described first gray-scale map Value, divided by the value obtained after the standard average brightness value in each region in described first gray-scale map more than default value;
If described first gray-scale map not existing described desired value, then by described first in the array of the average brightness value in each region Brightness is as described object brightness;
If there is described desired value in the array of the average brightness value in each region in described first gray-scale map, then by described light source Brightness gradually reduces in presetting range, until not existing in the array of the average brightness value in each region in described first gray-scale map Described desired value, using described desired value as described object brightness, or, until the brightness of described light source has been adjusted to described The minima of presetting range, using described minima as described object brightness.
Method the most according to claim 1 and 2, it is characterised in that described according to each region in described first gray-scale map The standard average brightness value in each region, the brightness to light source in the array of average brightness value and preset described first gray-scale map Before being adjusted, including:
According to the position feature in each region in described first gray-scale map, determine the adjacent region in each region in described first gray-scale map Territory;
According to each region in described first gray-scale map and each self-corresponding weighted value of adjacent area thereof, and described first gray-scale map In the average brightness value in each region, by ranking operation, obtain the smooth average brightness value in each region in described first gray-scale map;
According to the smooth average brightness value in each region in described first gray-scale map, obtain the flat of each region in described first gray-scale map All arrays of brightness value.
Method the most according to claim 1, it is characterised in that described according to each region in preset described first gray-scale map Included in the standard means of each color, the meansigma methods of each color included in each region in described second gray-scale map The array and the preset the described 3rd of the meansigma methods of each color included in each region in array, described 3rd gray-scale map The standard means of each color included in each region in gray-scale map, determines the increasing of each color included in each described region Benefit component value and offset value, including:
Each value in the array of the meansigma methods obtaining in described 3rd gray-scale map each color included in each region, and each Difference between the standard means of each color included in each region in corresponding described 3rd gray-scale map;
If the difference obtained is put down less than the standard of each color included in each region in described 3rd gray-scale map of specified ratio Average, then using described difference as described offset value;
If described difference is more than or equal to each color included in each region in described 3rd gray-scale map of described specified ratio Standard means, then the standard of each color included in each region in described 3rd gray-scale map of described specified ratio is put down Average is as described offset value;
According to the standard means of each color included in each region in preset described first gray-scale map, described offset value And the array of the meansigma methods of each color included in each region in described second gray-scale map, obtain each described region is wrapped The gain component value of each color contained;
If the gain component value obtained is more than or equal to preset component value, then described preset component value is replaced described gain component Value is for carrying out color correction to the image of described Current projection.
Method the most according to claim 4, it is characterised in that described according to described gain component value, described offset value And the input value of each color included in each described region, the image of described Current projection carried out color correction bag Include:
After respectively the input value of each color included in each described region being multiplied with corresponding described gain component value, then with Corresponding described offset value is added, and obtains the corrected value of each color included in each described region;
According to described corrected value, the image of described Current projection carried out color correction.
Method the most according to claim 1, it is characterised in that described method also includes:
Darkroom shoots respectively with described first brightness and described second brightness projection at the gray-scale map of Bai Mushang;
Make even after cumulative for the value with described first brightness projection each color included in the gray-scale map of Bai Mushang of shooting Average, obtains the standard average brightness value in each region in described first gray-scale map;
To shooting with the value of described first brightness projection each color included in the gray-scale map of Bai Mushang by color respectively Individually average, obtain in described first gray-scale map the standard means of each color included in each region;
To shooting with the value of described second brightness projection each color included in the gray-scale map of Bai Mushang by color respectively Individually average, obtain in described 3rd gray-scale map the standard means of each color included in each region.
7. a projection is as color correction device, it is characterised in that described device includes:
Taking module, for shooting the gray-scale map of the first brightness of projection, obtains the first gray-scale map;
Segmentation module, for being divided into several regions according to preset size by described first gray-scale map;
Brightness adjusting section, for according to the array of the average brightness value in each region in described first gray-scale map and preset institute Stating the standard average brightness value in each region in the first gray-scale map, the brightness to light source is adjusted so that the brightness of described light source Reach object brightness;
Described taking module, is additionally operable to the gray-scale map of the object brightness of shooting projection, obtains the second gray-scale map;
Described segmentation module, is additionally operable to, according to the partitioning scheme identical with described first gray-scale map, be divided by described second gray-scale map It is segmented into several regions;
Computing module, for obtaining in described second gray-scale map the number of the meansigma methods of each color included in each region respectively Group;
Described taking module, is additionally operable to the gray-scale map of the second brightness of shooting projection, obtains the 3rd gray-scale map, and wherein said second Brightness is less than described object brightness;
Described segmentation module, is additionally operable to, according to the partitioning scheme identical with described first gray-scale map, be divided by described 3rd gray-scale map It is segmented into several regions;
Described computing module, is additionally operable to obtain in described 3rd gray-scale map the number of the meansigma methods of each color included in each region Group;
Described computing module, is additionally operable to the standard of each color included according to each region in preset described first gray-scale map In meansigma methods, described second gray-scale map in the array of meansigma methods of each color included in each region, described 3rd gray-scale map In the array of the meansigma methods of each color included in each region and preset described 3rd gray-scale map included in each region The standard means of each color, determine gain component value and the offset value of each color included in each described region;
Correction module, for according to each face included in described gain component value, described offset value and each described region The input value of color, carries out color correction to the image of Current projection.
Device the most according to claim 7, it is characterised in that
Described brightness adjusting section specifically for:
By each numerical value in the array of the average brightness value in each region in described first gray-scale map respectively with described first gray scale In figure, the standard average brightness value in each region compares, it is judged that the number of the average brightness value in each region in described first gray-scale map Whether group exists desired value, wherein said desired value and the difference of the standard average brightness value in each region in described first gray-scale map Value, divided by the value obtained after the standard average brightness value in each region in described first gray-scale map more than default value;
If described first gray-scale map not existing described desired value, then by described first in the array of the average brightness value in each region Brightness is as described object brightness;
If there is described desired value in the array of the average brightness value in each region in described first gray-scale map, then by described light source Brightness gradually reduces in presetting range, until not existing in the array of the average brightness value in each region in described first gray-scale map Described desired value, using described desired value as described object brightness, or, until the brightness of described light source has been adjusted to described The minima of presetting range, using described minima as described object brightness;
Described computing module, is additionally operable to:
According to the position feature in each region in described first gray-scale map, determine the adjacent region in each region in described first gray-scale map Territory;
According to each region in described first gray-scale map and each self-corresponding weighted value of adjacent area thereof, and described first gray-scale map In the average brightness value in each region, by ranking operation, obtain the smooth average brightness value in each region in described first gray-scale map;
According to the smooth average brightness value in each region in described first gray-scale map, obtain the flat of each region in described first gray-scale map All arrays of brightness value.
Device the most according to claim 7, it is characterised in that
Described computing module specifically for:
Each value in the array of the meansigma methods obtaining in described 3rd gray-scale map each color included in each region, and each Difference between the standard means of each color included in each region in corresponding described 3rd gray-scale map;
If the difference obtained is put down less than the standard of each color included in each region in described 3rd gray-scale map of specified ratio Average, then using described difference as described offset value;
If described difference is more than or equal to each color included in each region in described 3rd gray-scale map of described specified ratio Standard means, then the standard of each color included in each region in described 3rd gray-scale map of described specified ratio is put down Average is as described offset value;
According to the standard means of each color included in each region in preset described first gray-scale map, described offset value And the array of the meansigma methods of each color included in each region in described second gray-scale map, obtain each described region is wrapped The gain component value of each color contained;
If the gain component value obtained is more than or equal to preset component value, then described preset component value is replaced described gain component Value is for carrying out color correction to the image of described Current projection.
Device the most according to claim 9, it is characterised in that
Described computing module, is additionally operable to respectively by input value and the corresponding described increasing of each color included in each described region Benefit is after component value is multiplied, then with corresponding described offset value addition, obtain the school of each color included in each described region On the occasion of;
Described correction module, specifically for according to described corrected value, carries out color correction to the image of described Current projection;
Described taking module, is additionally operable in darkroom to shoot respectively with described first brightness and described second brightness projection at white curtain On gray-scale map;
Described computing module, be additionally operable to by shooting with each included in the gray-scale map of Bai Mushang of described first brightness projection Average after the value of color is cumulative, obtain the standard average brightness value in each region in described first gray-scale map;To shooting with The value of described first brightness projection each color included in the gray-scale map of Bai Mushang is individually averaged by color, The standard means of each color included in each region in described first gray-scale map;And to shooting with described second bright Degree is projected in the value of each color included in the gray-scale map of Bai Mushang and individually averages by color, obtains the described 3rd The standard means of each color included in each region in gray-scale map.
CN201610440033.7A 2016-06-16 2016-06-16 A kind of method for correcting colors of projected image and device Active CN106060491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610440033.7A CN106060491B (en) 2016-06-16 2016-06-16 A kind of method for correcting colors of projected image and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610440033.7A CN106060491B (en) 2016-06-16 2016-06-16 A kind of method for correcting colors of projected image and device

Publications (2)

Publication Number Publication Date
CN106060491A true CN106060491A (en) 2016-10-26
CN106060491B CN106060491B (en) 2019-02-15

Family

ID=57167831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610440033.7A Active CN106060491B (en) 2016-06-16 2016-06-16 A kind of method for correcting colors of projected image and device

Country Status (1)

Country Link
CN (1) CN106060491B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791742A (en) * 2016-12-08 2017-05-31 海信集团有限公司 Projection light source brightness output intent and projected image display methods
CN109680969A (en) * 2018-12-04 2019-04-26 三弦文旅(北京)科技有限公司 Ball curtain method of adjustment and adjustment system
CN110166755A (en) * 2019-06-03 2019-08-23 广州二元科技有限公司 A kind of projected color calibration method based on color detector
CN110166704A (en) * 2019-05-30 2019-08-23 深圳市道创智能创新科技有限公司 The calibration method and device of multispectral camera
CN110177265A (en) * 2019-06-11 2019-08-27 成都极米科技股份有限公司 Method for controlling projection, projection control and optical projection system
CN110766764A (en) * 2018-12-14 2020-02-07 成都极米科技股份有限公司 Method for identifying color of projection surface, projector and storage medium
CN111083458A (en) * 2019-12-31 2020-04-28 成都极米科技股份有限公司 Brightness correction method, system, equipment and computer readable storage medium
CN111107333A (en) * 2019-12-31 2020-05-05 成都极米科技股份有限公司 Brightness correction method, system, equipment and computer readable storage medium
CN113709429A (en) * 2020-05-20 2021-11-26 中强光电股份有限公司 Color correction method and color correction system
CN113724275A (en) * 2021-11-03 2021-11-30 恒林家居股份有限公司 Projection picture segmentation method and device
CN114136888A (en) * 2021-12-09 2022-03-04 四川启睿克科技有限公司 Spectral data calibration method of multi-light-source portable near-infrared spectrometer
CN115499630A (en) * 2021-06-17 2022-12-20 中强光电股份有限公司 Projection system and color correction method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100119150A1 (en) * 2008-11-13 2010-05-13 Seiko Epson Corporation Image processor, image display device, and image processing method
US20100171933A1 (en) * 2009-01-05 2010-07-08 Samsung Electronics Co., Ltd. Method for compensating for color loss of image in image projector and apparatus thereof
CN102300101A (en) * 2010-06-24 2011-12-28 立景光电股份有限公司 Display and real-time automatic white balance method thereof
CN102854724A (en) * 2012-08-30 2013-01-02 深圳市绎立锐光科技开发有限公司 Adjustment method and device of projection light source
CN104601915A (en) * 2014-06-13 2015-05-06 威盛电子股份有限公司 Projection system and brightness adjusting method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100119150A1 (en) * 2008-11-13 2010-05-13 Seiko Epson Corporation Image processor, image display device, and image processing method
US20100171933A1 (en) * 2009-01-05 2010-07-08 Samsung Electronics Co., Ltd. Method for compensating for color loss of image in image projector and apparatus thereof
CN102300101A (en) * 2010-06-24 2011-12-28 立景光电股份有限公司 Display and real-time automatic white balance method thereof
CN102854724A (en) * 2012-08-30 2013-01-02 深圳市绎立锐光科技开发有限公司 Adjustment method and device of projection light source
CN104601915A (en) * 2014-06-13 2015-05-06 威盛电子股份有限公司 Projection system and brightness adjusting method thereof

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791742A (en) * 2016-12-08 2017-05-31 海信集团有限公司 Projection light source brightness output intent and projected image display methods
CN109680969A (en) * 2018-12-04 2019-04-26 三弦文旅(北京)科技有限公司 Ball curtain method of adjustment and adjustment system
CN109680969B (en) * 2018-12-04 2021-12-21 台州市椒江莱凡特眼镜厂 Spherical screen adjusting method and adjusting system
CN110766764A (en) * 2018-12-14 2020-02-07 成都极米科技股份有限公司 Method for identifying color of projection surface, projector and storage medium
CN110766764B (en) * 2018-12-14 2023-03-24 成都极米科技股份有限公司 Method for identifying color of projection surface, projector and storage medium
CN110166704B (en) * 2019-05-30 2021-07-13 深圳市道创智能创新科技有限公司 Calibration method and device of multispectral camera
CN110166704A (en) * 2019-05-30 2019-08-23 深圳市道创智能创新科技有限公司 The calibration method and device of multispectral camera
CN110166755A (en) * 2019-06-03 2019-08-23 广州二元科技有限公司 A kind of projected color calibration method based on color detector
CN110177265A (en) * 2019-06-11 2019-08-27 成都极米科技股份有限公司 Method for controlling projection, projection control and optical projection system
CN111083458A (en) * 2019-12-31 2020-04-28 成都极米科技股份有限公司 Brightness correction method, system, equipment and computer readable storage medium
CN111107333A (en) * 2019-12-31 2020-05-05 成都极米科技股份有限公司 Brightness correction method, system, equipment and computer readable storage medium
CN111083458B (en) * 2019-12-31 2021-12-14 成都极米科技股份有限公司 Brightness correction method, system, equipment and computer readable storage medium
CN111107333B (en) * 2019-12-31 2021-12-24 成都极米科技股份有限公司 Brightness correction method, system, equipment and computer readable storage medium
CN113709429A (en) * 2020-05-20 2021-11-26 中强光电股份有限公司 Color correction method and color correction system
CN115499630A (en) * 2021-06-17 2022-12-20 中强光电股份有限公司 Projection system and color correction method thereof
CN113724275A (en) * 2021-11-03 2021-11-30 恒林家居股份有限公司 Projection picture segmentation method and device
CN113724275B (en) * 2021-11-03 2022-03-01 恒林家居股份有限公司 Projection picture segmentation method and device
CN114136888A (en) * 2021-12-09 2022-03-04 四川启睿克科技有限公司 Spectral data calibration method of multi-light-source portable near-infrared spectrometer

Also Published As

Publication number Publication date
CN106060491B (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN106060491A (en) Projected image color correction method and apparatus
US9137504B2 (en) System and method for projecting multiple image streams
US20240064419A1 (en) Systems and methods for digital photography
US7907792B2 (en) Blend maps for rendering an image frame
US7800628B2 (en) System and method for generating scale maps
US7854518B2 (en) Mesh for rendering an image frame
JP5611337B2 (en) Zone-based tone mapping
US9406147B2 (en) Color balance in digital photography
RU2450476C2 (en) Device and method to determine optimal backlighting
US6983082B2 (en) Reality-based light environment for digital imaging in motion pictures
CN103891294B (en) The apparatus and method coded and decoded for HDR image
US20070291184A1 (en) System and method for displaying images
US8605106B2 (en) Projector and color improvement method of the projector
CN110447051A (en) The contrast and coloration of reference scene are kept perceptually
CN104702928B (en) Method of correcting image overlap area, recording medium, and execution apparatus
US8440955B2 (en) Method for spatial smoothing in a shader pipeline for a multi-projector display
CN105450939A (en) High dynamic range image display method and mobile terminal
CN106657947A (en) Image generation method and photographing device
CN114187880B (en) Image display method, image display device and display system
US20160225342A1 (en) Chromatic Calibration of an HDR Display Using 3D Octree Forests
CN109831629B (en) Terminal photographing mode adjusting method and device, terminal and storage medium
WO2016071566A1 (en) Variable resolution image capture
CN106847149B (en) Tone mapping and displaying method for high dynamic contrast image
JP2023035928A (en) Neural network training based on consistency loss
CN114679575A (en) Multimedia space real-time broadcast control fusion debugging method and integrated system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171129

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Xili liuxiandong Zhongshan Road No. 1001 TCL Science Park Research Building D4 Building 8 layer B1 unit 802-1.

Applicant after: SHENZHEN TCL HIGH-TECH DEVELOPMENT CO., LTD.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL Group Co., Ltd.

GR01 Patent grant
GR01 Patent grant