CN106937102B - A kind of panorama backing system color balance adjusting method - Google Patents
A kind of panorama backing system color balance adjusting method Download PDFInfo
- Publication number
- CN106937102B CN106937102B CN201611212914.XA CN201611212914A CN106937102B CN 106937102 B CN106937102 B CN 106937102B CN 201611212914 A CN201611212914 A CN 201611212914A CN 106937102 B CN106937102 B CN 106937102B
- Authority
- CN
- China
- Prior art keywords
- image data
- component
- splicing regions
- splicing
- image
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/73—Colour balance circuits, e.g. white balance circuits or colour temperature control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
Abstract
The invention discloses a kind of panorama backing system color balance adjusting methods, for the image data and stitching image data for acquiring the road N video respectively by camera;Splicing module determines the gain of image R, G, B, and gain is judged whether the three primary colors for needing to adjust image compared with preset adjusting threshold values according to three primary colors R, G, B accounting of stitching image data and image data;When being judged as the trichromatic R or G or B that do not need to adjust image, then further reduce stitching image data area, it recalculates gain and judges whether to need to adjust the three primary colors of image, or stitching image data area is narrowed down to until splicing regions are not present.Panorama backing system of the present invention is after collecting multiway images, it is analyzed by the comparison to abnormal chromatism data, calibrate the transitional region of the abnormal color difference in panoramic mosaic region, the transitional region of abnormal color difference is adjusted in the yield value for reusing statistical precipitation, ultimately forms the uniform image data of color transition.
Description
Technical field
The present invention relates to the method for image mosaic fusion more particularly to a kind of panorama backing system colour-balance adjustment sides
Method.
Background technique
The four-way CCD camera of panorama backing system is under the changeable light in garage parking, or different vehicles are being received around night
When the light-illuminating of lamp, the color white balance of four-way CCD camera can be different, cause splicing regions transition portion image to occur obvious
Color difference, display effect is poor, if color transition cannot be adjusted before presentation to a user, make splicing regions transition from
So, the experience effect of user will be reduced, and user is easy to ignore the abnormal object occurred in image, reversing is caused to be asked
Topic.
Summary of the invention
The main purpose of the present invention is to provide a kind of panorama backing system color balance adjusting methods, it is intended to take the photograph to multichannel
As the splicing regions progress over-colored processing of head, balance over-colored.
To achieve the above object, the present invention provides a kind of panorama backing system color balance adjusting method, including following step
It is rapid:
S01, the image data and stitching image data for acquiring the road N video respectively by camera, the N are more than or equal to 2
Natural number;
S02, splicing module determine image R, G, B according to three primary colors R, G, B accounting of stitching image data and image data
Gain judge whether the three primary colors for needing to adjust image and by gain and preset adjusting threshold value comparison;
S03, when be judged as do not need adjust image trichromatic R or G or B when, then further reduce stitching image number
According to range, recalculates gain and judge whether to need to adjust the three primary colors of image, or stitching image data area is reduced
Until splicing regions are not present.
Preferably, in step S01, the stitching image data of the acquisition road the N video specifically:
After the image data of the acquisition road N video, according to preset spelling corresponding to the image data of acquisition and the road N video
Region is connect, the stitching image data of the road N video are obtained.
Preferably, described image data include R component, G component and the B component of all pixels point of the image, the spelling
Map interlinking is as R component, G component and the B component that data include all pixels point in the image mosaic region.
Preferably, in step S02, three primary colors R, G, B accounting of the stitching image data and image data is specifically obtained
The mode of obtaining are as follows:
Respectively the R component of statistical picture data and G component and B component and and the road video-splicing image data R
Ingredient amount and G ingredient amount and B ingredient amount and;
By calculate R ingredient amount and and R component and ratio, G ingredient amount and and G component and ratio, B ingredient amount and with B point
The ratio of sum is measured, that is, obtains three primary colors R, G, B accounting of stitching image data and image data.
Preferably, when the splicing regions of image are greater than 1, it is also necessary to former to the three of each stitching image data and image data
Color R, G, B accounting is weighted and averaged, and obtains R, G, B weight in the road video-splicing region.
Preferably, by R, G, B weight, R, G of each splicing regions, B component and and each splicing regions range, obtain
R, G, B gain of each splicing regions of road video.
Preferably, in step S02, gain and preset adjusting threshold value comparison judge whether to need to adjust image
Trichromatic specific steps are as follows:
The yield value of comparison R, G, B and preset adjusting threshold value adjust threshold value when the yield value of one of component is less than
When, then the color difference of splicing regions is normal, and otherwise the color difference of splicing regions is abnormal;
When the color difference exception of splicing regions, then according to the color of each R, G, B gain adjustment splicing regions;
When the color difference of splicing regions is normal, then splicing regions range is reduced by preset stepping, according to the above method again
The color difference of splicing regions is judged, until the color of the adjusting splicing regions or the splicing regions are reduced into zero.
Panorama backing system of the present invention is analyzed after collecting multiway images by the comparison to abnormal chromatism data, mark
The transitional region for making the abnormal color difference in panoramic mosaic region reuses mistake of the yield value to abnormal color difference of statistical precipitation
It crosses region to be adjusted, ultimately forms the uniform image data of color transition.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of panorama backing system color balance adjusting method, in the first embodiment, panorama reversing
System color balance adjusting method the following steps are included:
S01, the image data and stitching image data for acquiring the road N video respectively by N number of camera, the N be greater than etc.
In 2 natural number;
S02, splicing module according to the accounting of three primary colors R, G, B of stitching image data and image data, determine image R,
G, the gain of B, and by gain and preset adjusting threshold value comparison, judge whether the three primary colors for needing to adjust image;
S03, when be judged as do not need adjust image trichromatic R or G or B when, then further reduce stitching image number
According to range, recalculates gain and judge whether to need to adjust the three primary colors of image, or stitching image data area is reduced
Until splicing regions are not present.
Panorama backing system of the present invention is analyzed after collecting multiway images by the comparison to abnormal chromatism data, mark
The transitional region for making the abnormal color difference in panoramic mosaic region reuses mistake of the yield value to abnormal color difference of statistical precipitation
It crosses region to be adjusted, ultimately forms the uniform image data of color transition.Described image data include all pictures of the image
R component, G component and the B component of vegetarian refreshments, the stitching image data include R minutes of all pixels point in the image mosaic region
Amount, G component and B component.
In a second embodiment, the panorama backing system color balance adjusting method the following steps are included:
S01, the image data for acquiring the road N video respectively adjust the splice region of each road video according to the image data of acquisition
Domain color, comprising the following steps:
S02, according to the image data of acquisition and the preset splicing regions of road video, obtain the stitching image of the road video
Data;Preset splicing regions are the letter in the picture splicing region about each road camera being stored in advance in memory
Breath, splicing module screen stitching image data according to the information from image data.
S03, the respectively R component of statistical picture data and G component and B component and and the road video-splicing image data
R ingredient amount and G ingredient amount and B ingredient amount and;
S04, by each component of image data and and the component and corresponding ingredient amount and, obtain the road video respectively
R, G, B weight of splicing regions;
S05, pass through R, G, B weight, obtain R, G, B gain in the road video-splicing region;
S06, the yield value for comparing R, G, B and preset adjusting threshold value are adjusted when the yield value of one of component is less than
When threshold value, then the color difference of splicing regions is normal, and otherwise the color difference of splicing regions is abnormal;
S07, when the color difference exception of splicing regions, then according to the color of each R, G, B gain adjustment splicing regions;
S08, when the color difference of splicing regions is normal, then by preset stepping reduce splicing regions range, according to the above method
The color difference of splicing regions is rejudged, until the color of the adjusting splicing regions or the splicing regions are reduced into zero.
Based on second embodiment, in the third embodiment, when splicing regions only have 1, to the red of the splicing regions
Adjustment process is illustrated:
The R component of statistical picture data and:
Count stitching image data R ingredient amount and:
The R weight of stitching image data and image data:
By the range m and n of R weight and splicing regions, the yield value of R is obtained;
Compare KrWith preset adjusting threshold kT, work as Kr< KT, then reduce the range of splicing regions, i.e. change m and n, again
Spr, K, K are calculated according to the above methodT, and judge KrAnd KTSize;Work as Kr≥KTWhen, to the abnormal each picture of color difference transitional region
Element value C adjustment is as follows:
C (R')=C (R) * Kr
Based on second embodiment, in the fourth embodiment, when splicing regions are greater than 1, step S03 to the S05 is specific
Are as follows:
The R component of statistical picture data and G component and B component and and to the R ingredient amounts of each splicing regions respectively
With G ingredient amount and B ingredient amount and;
Calculate separately each splicing regions R ingredient amount and and R component and ratio, G ingredient amount and and G component and ratio, B spell
Component and and B component and ratio, obtain R, G, B accounting of each splicing regions;
R, G, B weight of each splicing regions are weighted and averaged, R, G, B weight in the road video-splicing region are obtained;
By R, G, B weight, R, G of each splicing regions, B component and and each splicing regions range, obtain the road video
R, G, B gain of each splicing regions, gain be accounting or weight divided by splicing regions component average value (in the third embodiment
As weight with accounting is).
By taking red is adjusted as an example, a splicing regions, the adjustment process of b splicing regions to the present embodiment are as follows:
The R component of statistical picture data and:
Count a splicing regions, the R ingredient amount of b splicing regions and:
The R accounting of a splicing regions, b splicing regions and image data:
By existing weighted average method, to KaAnd KbIt is weighted and averaged, obtains the weight K of a, b splicing regions;
Then the gain of a splicing regions is Kar=K/ (Spar/m+n), the gain of b splicing regions are Kbr=K/(Spbr/x+
y)。
K is compared respectivelyar、KbrWith preset adjusting threshold kT:
Work as Kar< KT, then reduce the range of a splicing regions, i.e. change m and n, calculate Spar, K according to the above method againa、
K、Kar, and judge KarAnd KTSize;Work as Kar≥KTWhen, it is as follows to each pixel value C adjustment of a splicing regions:
C (R')=C (R) * Kar
Work as Kbr< KT, then reduce the range of b splicing regions, i.e. change x and y, calculate Spbr, K according to the above method againb、
K、Kbr, and judge KbrAnd KTSize;Work as Kbr≥KTWhen, it is as follows to each pixel value C adjustment of b splicing regions:
C (R')=C (R) * Kbr
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright description is applied directly or indirectly in other relevant technology necks
Domain is included within the scope of the present invention.
Claims (6)
1. a kind of panorama backing system color balance adjusting method, which comprises the following steps:
S01, the image data and stitching image data for acquiring the road N video respectively by camera, the N are more than or equal to oneself of 2
So number;
S02, splicing module determine the increasing of image R, G, B according to three primary colors R, G, B accounting of stitching image data and image data
Benefit, and by gain and preset adjusting threshold value comparison, judge whether the three primary colors for needing to adjust image;
S03, when be judged as do not need adjust image trichromatic R or G or B when, then further reduce stitching image data model
It encloses, recalculate gain and judges whether to need to adjust the three primary colors of image, or stitching image data area is narrowed down into spelling
It connects until region is not present;
In step S02, gain and preset adjusting threshold value comparison judge whether to need to adjust the trichromatic specific of image
Step are as follows:
The yield value of comparison R, G, B and preset adjusting threshold value, when the yield value of one of component, which is less than, adjusts threshold value, then
The color difference of splicing regions is normal, and otherwise the color difference of splicing regions is abnormal;
When the color difference exception of splicing regions, then according to the color of each R, G, B gain adjustment splicing regions;
When the color difference of splicing regions is normal, then splicing regions range is reduced by preset stepping, rejudged according to the above method
The color difference of splicing regions, until the color of the adjusting splicing regions or the splicing regions are reduced into zero.
2. panorama backing system color balance adjusting method as described in claim 1, which is characterized in that in step S01, institute
State the stitching image data of the acquisition road N video specifically:
After the image data of the acquisition road N video, according to preset splice region corresponding to the image data of acquisition and the road N video
Domain obtains the stitching image data of the road N video.
3. panorama backing system color balance adjusting method as claimed in claim 2, which is characterized in that described image data packet
R component, G component and the B component of all pixels point of the image are included, the stitching image data include the image mosaic region
R component, G component and the B component of all pixels point.
4. panorama backing system color balance adjusting method as described in claim 1, which is characterized in that in step S02, institute
State the specific acquisition pattern of three primary colors R, G, B accounting of stitching image data and image data are as follows:
Respectively the R component of statistical picture data and G component and B component and and the road video-splicing image data R ingredient
Amount and G ingredient amount and B ingredient amount and;
By calculate R ingredient amount and and R component and ratio, G ingredient amount and and G component and ratio, B ingredient amount and with B component and
Ratio, that is, obtain stitching image data and image data three primary colors R, G, B accounting.
5. panorama backing system color balance adjusting method as claimed in claim 4, which is characterized in that when the splice region of image
When domain is greater than 1, it is also necessary to be weighted and averaged, obtain to three primary colors R, G, B accounting of each stitching image data and image data
R, G, B weight in the road video-splicing region.
6. panorama backing system color balance adjusting method as claimed in claim 5, which is characterized in that
By R, G, B weight, R, G of each splicing regions, B component and and each splicing regions range, it is each to obtain the road video
R, G, B gain of splicing regions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611212914.XA CN106937102B (en) | 2016-12-25 | 2016-12-25 | A kind of panorama backing system color balance adjusting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611212914.XA CN106937102B (en) | 2016-12-25 | 2016-12-25 | A kind of panorama backing system color balance adjusting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106937102A CN106937102A (en) | 2017-07-07 |
CN106937102B true CN106937102B (en) | 2019-01-22 |
Family
ID=59444051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611212914.XA Active CN106937102B (en) | 2016-12-25 | 2016-12-25 | A kind of panorama backing system color balance adjusting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106937102B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360418B (en) * | 2017-09-21 | 2019-12-27 | 长沙全度影像科技有限公司 | Panoramic camera color consistency judging system and method |
CN112312108B (en) * | 2019-08-02 | 2022-09-13 | 浙江宇视科技有限公司 | White balance abnormity determining method and device, storage medium and electronic equipment |
CN111405132A (en) * | 2020-03-03 | 2020-07-10 | Tcl移动通信科技(宁波)有限公司 | Picture transmission method, picture analysis device and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140071228A1 (en) * | 2012-09-12 | 2014-03-13 | National University of Sciences & Technology(NUST) | Color correction apparatus for panorama video stitching and method for selecting reference image using the same |
CN104143182A (en) * | 2014-08-05 | 2014-11-12 | 乐视致新电子科技(天津)有限公司 | Panoramic image splicing method and terminal device |
CN105321151B (en) * | 2015-10-27 | 2019-09-10 | Tcl集团股份有限公司 | A kind of Panoramagram montage luminance proportion method and system |
CN105894449B (en) * | 2015-11-11 | 2019-11-08 | 法法汽车(中国)有限公司 | Overcome the method and system of color change in image co-registration |
CN105915757B (en) * | 2016-06-06 | 2018-06-01 | 北京时代拓灵科技有限公司 | A kind of color calibration method based on RGB color channel error function |
-
2016
- 2016-12-25 CN CN201611212914.XA patent/CN106937102B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106937102A (en) | 2017-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105931186B (en) | Panoramic video splicing system and method based on automatic camera calibration and color correction | |
CN105141920B (en) | A kind of 360 degree of panoramic video splicing systems | |
US7024053B2 (en) | Method of image processing and electronic camera | |
CN106937102B (en) | A kind of panorama backing system color balance adjusting method | |
CN106600644B (en) | Parameter correction method and device for panoramic camera | |
DE112010006012B4 (en) | display system | |
CN104021527B (en) | Rain and snow removal method in image | |
JP2016096487A (en) | Imaging system | |
CN105979238A (en) | Method for controlling global imaging consistency of multiple cameras | |
CN109690628A (en) | Image producing method and device | |
WO2021004322A1 (en) | Head special effect processing method and apparatus, and storage medium | |
CN106534820B (en) | A kind of multihead display color calibrating method and system | |
CN109035193A (en) | A kind of image processing method and imaging processing system based on binocular solid camera | |
CN105827975B (en) | A kind of color on-line correction method for panoramic video splicing | |
CN111770326B (en) | Indoor three-dimensional monitoring method for panoramic video projection | |
CN108022223B (en) | Tone mapping method based on logarithm mapping function blocking processing fusion | |
CN106454118A (en) | Picture blurring method and mobile terminal | |
JP2014107852A (en) | Imaging apparatus | |
US9723221B2 (en) | Imaging device shooting a common subject in synchronization with other imaging devices | |
TWI634792B (en) | Projection image adjustment method and a projector | |
CN107403408A (en) | A kind of double fish eye images spliced panoramic image seam fusion methods | |
Saad et al. | Impact of camera pixel count and monitor resolution perceptual image quality | |
CN106550227A (en) | A kind of image saturation method of adjustment and device | |
US20110267365A1 (en) | Methods and systems for correcting the appearance of images displayed on an electronic visual display | |
CN102903091B (en) | Method for stitching image in digital image processing apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |