CN101588439B - Method for correcting multi-anaglyph color cast - Google Patents
Method for correcting multi-anaglyph color cast Download PDFInfo
- Publication number
- CN101588439B CN101588439B CN2009100599515A CN200910059951A CN101588439B CN 101588439 B CN101588439 B CN 101588439B CN 2009100599515 A CN2009100599515 A CN 2009100599515A CN 200910059951 A CN200910059951 A CN 200910059951A CN 101588439 B CN101588439 B CN 101588439B
- Authority
- CN
- China
- Prior art keywords
- color
- yuv
- color cast
- cast
- correction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Processing Of Color Television Signals (AREA)
Abstract
本发明涉及一种多视差图偏色校正的方法,其特征在于先在多幅视差图中选取一幅颜色真实的图像作为标准图,然后分别将标准视差图和偏色视差图进行从RGB到YUV的颜色空间转换,通过偏色视差图在YUV颜色空间下所有像素三个颜色校正系数KY,KU,KV,得到YUV颜色空间下待校正偏色图像的真实颜色灰度值,最后将得到的真实颜色灰度值从YUV转换到RGB颜色空间,从而实现任意多幅偏色视差图的校正。本发明可以实现任意多路视差图在合成立体图像之前的偏色校正,能改善自由立体显示器的效果,方法简单可行。
The invention relates to a method for color cast correction of multiple parallax maps, which is characterized in that an image with true color is selected as a standard map in multiple parallax maps, and then the standard parallax map and the color cast parallax map are respectively converted from RGB to YUV color space conversion, through the three color correction coefficients K Y , K U , K V of all pixels in the YUV color space through the color cast disparity map, the real color gray value of the color cast image to be corrected in the YUV color space is obtained, and finally Convert the obtained real color gray value from YUV to RGB color space, so as to realize the correction of any number of color cast parallax images. The invention can realize the color cast correction of arbitrary multi-path parallax images before synthesizing stereoscopic images, can improve the effect of autostereoscopic displays, and the method is simple and feasible.
Description
一、技术领域1. Technical field
本发明涉及立体拍摄技术以及数字图像处理技术,特别是用于阵列式相机拍摄得到的多视差图的颜色校正。The invention relates to stereo shooting technology and digital image processing technology, especially for color correction of multi-parallax images captured by array cameras.
二、技术背景2. Technical background
三维立体显示一直是人类的梦想,其中基于双目视差的多视点自由立体显示器是一种重要的三维立体显示器,它由二维平面显示器加装狭缝光栅或者柱面光栅而成,能使观看者感受到真实的三维效果。它的显示内容来自于多个角度拍摄到的场景图像,这些场景图像可以由3D建模软件生成,也可以是摄像机阵列从不同角度拍摄得到的多幅视差图。为了增加立体可视区域,需要设置的相机数量通常都比较多,一般会多达8个,甚至十几个以上。然而相机差异是必然存在的,即使它们是来至于同一品牌,如CCD滤色片、相机镜头光圈设置等都不可能完全一致,将对拍摄得到的视差图的颜色产生影响。同时,因相机在拍摄时摆放于不同的位置,拍摄环境也将对每个镜头产生不同的影响。受所有上述因素的影响,摄像机阵列中每个相机拍摄得到的图像将会存在颜色差异,有时这种颜色上的差异会很大,当多幅视差图进行合成之后,它会影响合成图的质量,这不仅使显示器的立体效果受到影响,严重时将使观看者产生视疲劳。因此,为了充分发挥多视点自由立体显示器的性能,在合成立体图像之前,对视差图预先进行颜色校正是十分必要的。Three-dimensional stereoscopic display has always been the dream of human beings. Among them, the multi-view autostereoscopic display based on binocular parallax is an important three-dimensional stereoscopic display. The viewer feels the real three-dimensional effect. Its display content comes from scene images captured from multiple angles, which can be generated by 3D modeling software, or multiple disparity maps captured by camera arrays from different angles. In order to increase the stereoscopic viewing area, the number of cameras that need to be installed is usually relatively large, generally as many as 8, or even more than a dozen. However, camera differences are inevitable, even if they are from the same brand, such as CCD color filters, camera lens aperture settings, etc., cannot be completely consistent, which will affect the color of the disparity map obtained by shooting. At the same time, because the camera is placed in different positions when shooting, the shooting environment will also have different effects on each lens. Affected by all the above factors, there will be color differences in the images captured by each camera in the camera array, and sometimes the color differences will be large. When multiple disparity maps are synthesized, it will affect the quality of the composite image. , which not only affects the three-dimensional effect of the display, but also causes visual fatigue to the viewer in severe cases. Therefore, in order to give full play to the performance of the multi-view autostereoscopic display, it is very necessary to perform color correction on the disparity map before synthesizing the stereoscopic images.
三、发明内容3. Contents of the invention
为此,本发明的目的正是要解决相机阵列拍摄得到的多视差图之间的颜色差异问题,从而使立体显示器具有更加完美的立体显示效果。本发明是在多幅视差图中,选取其中一幅无偏色的标准视差图作为基准,来对其它偏色视差图依次进行颜色校正的。Therefore, the purpose of the present invention is to solve the problem of color difference between the multi-disparity images captured by the camera array, so that the stereoscopic display has a more perfect stereoscopic display effect. The present invention selects one of the standard parallax maps without color cast as a reference among multiple disparity maps, and sequentially performs color correction on other color cast parallax maps.
首先,将标准视差图与偏色视差图进行RGB颜色空间到YUV颜色空间的转换,RGB颜色空间到YUV颜色空间的转换公式表示为:First, convert the standard disparity map and the color cast disparity map from the RGB color space to the YUV color space, and the conversion formula from the RGB color space to the YUV color space is expressed as:
y=0.299×r+0.587×g+0.114×by=0.299×r+0.587×g+0.114×b
u=(-0.169)×r+(-0.332)×g+0.500×b+128 (1)u=(-0.169)×r+(-0.332)×g+0.500×b+128 (1)
v=0.500×r+(-0.419)×g+(-0.0813)×b+128v=0.500×r+(-0.419)×g+(-0.0813)×b+128
公式(1)中,r、g、b分别代表一幅视差图中某一像素在RGB颜色空间的灰度值,y、u、v分别代表经过转换后该像素的在YUV颜色空间的灰度值。In formula (1), r, g, and b respectively represent the gray value of a certain pixel in the RGB color space in a disparity map, and y, u, and v respectively represent the gray value of the pixel in the YUV color space after conversion value.
其次,分别计算Y、U、V通道的校正系数KY,KU,KV。Secondly, the correction coefficients K Y , K U , and K V of the Y, U , and V channels are calculated respectively.
设标准视差图与偏色视差图大小是m×n。将标准视差图所有像素的Y通道灰度值的总和记为Y1,任意像素的Y通道的灰度值记作y1mn。偏色视差图所有像素Y通道的值的总和记作Y2,任意像素的Y通道的值记作y2mn。则:It is assumed that the size of the standard disparity map and the color cast disparity map is m×n. The sum of the Y-channel grayscale values of all pixels in the standard disparity map is denoted as Y 1 , and the Y-channel grayscale value of any pixel is denoted as y 1mn . The sum of the values of the Y channels of all pixels in the color cast disparity map is denoted as Y 2 , and the value of the Y channel of any pixel is denoted as y 2mn . but:
设Y1与Y2的比值记为KY,下标y表示为偏色视差图的Y通道校正系数,则:Suppose the ratio of Y 1 to Y 2 is denoted as K Y , and the subscript y is expressed as the Y channel correction coefficient of the color cast parallax map, then:
将Y通道校正系数KY与偏色视差图中各像素Y通道的值y2mn相乘,可得到校正后个各像素Y通道值y′2mn,即:Multiply the correction coefficient K Y of the Y channel with the value y 2mn of each pixel Y channel in the color cast disparity map to obtain the corrected Y channel value y′ 2mn of each pixel, namely:
y′2mn=KY×y2mn (5)y′ 2mn =K Y ×y 2mn (5)
公式(5)中,y2mn代表校正前偏色视差图某一像素Y通道的值,y′2mn代表校正后该像素Y通道的值。In the formula (5), y 2mn represents the value of the Y channel of a certain pixel in the color cast disparity map before correction, and y′ 2mn represents the value of the Y channel of the pixel after correction.
参照上述相同的过程,相应偏色视差图的U、V通道校正系数分别为KU,KV,这样可实现偏色视差图的U,V通道校正。Referring to the same process as above, the correction coefficients of the U and V channels of the corresponding color cast parallax map are K U and K V respectively, so that the U and V channel correction of the color cast parallax map can be realized.
然后,在偏色视差图的颜色校正完成后,将校正后的视差图进行YUV到RGB的颜色空间转换。转换公式如下:Then, after the color correction of the color cast disparity map is completed, the color space conversion from YUV to RGB is performed on the corrected disparity map. The conversion formula is as follows:
r=y+1.4075×(v-128)r=y+1.4075×(v-128)
g=y+(-0.3445)×(u-128)+(-0.7169)×(v-128) (6)g=y+(-0.3445)×(u-128)+(-0.7169)×(v-128) (6)
b=y+1.7790×(u-128)b=y+1.7790×(u-128)
公式(6)中的y、u、v分别代表校正后视差图的某一像素在YUV颜色空间的灰度值,r、g、b代表颜色空间转换后该像素在RGB颜色空间的灰度值。完成了校正后视差图YUV颜色空间到RGB颜色空间的转换,也就完成了对一幅偏色视差图的颜色校正。In formula (6), y, u, and v respectively represent the gray value of a certain pixel in the corrected disparity map in the YUV color space, and r, g, and b represent the gray value of the pixel in the RGB color space after color space conversion . The conversion from the YUV color space of the corrected disparity map to the RGB color space is completed, and the color correction of a color cast disparity map is completed.
重复上述过程,从而可以实现对其它所有偏色视差图的颜色校正。By repeating the above process, color correction for all other color cast disparity maps can be realized.
四、附图说明4. Description of drawings
图1为本发明一种多视差图偏色校正方法流程示意图。FIG. 1 is a schematic flowchart of a color cast correction method for multiple parallax images according to the present invention.
五、具体实施方式5. Specific implementation
下面对本发明进行进一步说明,具体涉及一个8相机阵列多摄像机系统,所有相机均排列在一条直线上,每个相机的分辨率为m×n=640×480,颜色为彩色,位深为8位,拍摄速度为视频速度。有必要在此指出的是,该实施例只用于本发明做进一步的说明,不能理解为对本发明保护范围的限制,该领域技术熟练人员根据上述本发明内容对本发明做出一些非本质的改进和调整,仍属于本发明的保护范围。本发明一种多视差图偏色校正方法的具体实施过程是:The present invention is further described below, specifically related to an 8-camera array multi-camera system, all cameras are arranged in a straight line, the resolution of each camera is m×n=640×480, the color is color, and the bit depth is 8 bits , the shooting speed is the video speed. It is necessary to point out that this embodiment is only used for further description of the present invention, and cannot be interpreted as limiting the protection scope of the present invention, and those skilled in the art make some non-essential improvements to the present invention according to the above-mentioned content of the present invention And adjustments still belong to the protection scope of the present invention. The specific implementation process of a multi-parallax map color cast correction method of the present invention is:
1、利用8相机系统对任一场景进行拍摄,然后从拍摄得到的8幅视差图中选取一幅颜色真实的视差图作为标准视差图;1. Use the 8-camera system to shoot any scene, and then select a disparity map with true color from the 8 disparity maps obtained from the shooting as the standard disparity map;
2、从余下的7幅视差图中任选一幅有偏色现象的视差图;2. Choose a disparity map with color cast from the remaining 7 disparity maps;
3、利用公式(1)分别将标准视差图和该偏色视差图进行RGB颜色空间到YUV颜色空间的转换,得到它们的y、u、v值;3. Convert the standard disparity map and the color cast disparity map from the RGB color space to the YUV color space using formula (1) to obtain their y, u, and v values;
4、利用公式(2)和(3)对标准视差图和该偏色视差图各像素Y、U、V三通道的值分别求和;4. Use formulas (2) and (3) to sum the values of the three channels of Y, U, and V in each pixel of the standard parallax map and the color cast parallax map;
5、利用公式(4)分别求出标准视差图和该偏色视差图Y、U、V三通道各自的总值的比值,得到颜色校正系数KY,KU,KV;5. Use the formula (4) to obtain the ratio of the total values of the standard parallax map and the three channels of the color cast parallax map Y, U, and V respectively, and obtain the color correction coefficients K Y , K U , and K V ;
6、利用求得的Y、U、V三通道校正系数KY,KU,KV,分别与该偏色视差图每个像素的Y、U、V的值相乘,得到YUV颜色空间下校正后的偏色视差图;6. Use the obtained Y, U, V three-channel correction coefficients K Y , K U , K V to multiply the values of Y, U, and V of each pixel of the color cast parallax map respectively to obtain the YUV color space Corrected color cast disparity map;
7、利用公式(6)将校正后的这幅偏色视差图进行YUV颜色空间到RGB颜色空间的转换,得到校正后图像的r、g、b值。7. Convert the corrected color cast disparity map from YUV color space to RGB color space by using the formula (6), and obtain the r, g, b values of the corrected image.
8、重复上述过程,依次完成其它视差图的颜色校正。8. Repeat the above process to complete the color correction of other disparity maps in sequence.
至此,一种多视差图偏色校正方法已经介绍完毕,这样就得到消除了颜色偏色的多视点视差图像,它们就可用于多视点自由立体显示。So far, a color cast correction method for multi-disparity images has been introduced. In this way, multi-viewpoint parallax images with color cast eliminated can be obtained, which can be used for multi-viewpoint autostereoscopic display.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100599515A CN101588439B (en) | 2009-07-10 | 2009-07-10 | Method for correcting multi-anaglyph color cast |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100599515A CN101588439B (en) | 2009-07-10 | 2009-07-10 | Method for correcting multi-anaglyph color cast |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101588439A CN101588439A (en) | 2009-11-25 |
CN101588439B true CN101588439B (en) | 2011-05-11 |
Family
ID=41372484
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100599515A Expired - Fee Related CN101588439B (en) | 2009-07-10 | 2009-07-10 | Method for correcting multi-anaglyph color cast |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101588439B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572456B (en) * | 2010-12-22 | 2014-11-26 | 深圳Tcl新技术有限公司 | Color correction method for glass-type stereo display device |
US9307227B2 (en) | 2011-02-24 | 2016-04-05 | Tektronix, Inc. | Stereoscopic image registration and color balance evaluation display |
GB2489929A (en) * | 2011-04-08 | 2012-10-17 | Sony Corp | Generation of a Colour Difference Amount Between Pairs of Images |
CN102984537B (en) * | 2011-09-02 | 2015-07-15 | 深圳市掌网立体时代视讯技术有限公司 | Device and method of white balance compensation for stereo imaging |
EP2741502A1 (en) * | 2012-12-07 | 2014-06-11 | Thomson Licensing | Method and apparatus for color transfer between images |
CN103165094B (en) * | 2013-03-07 | 2015-01-21 | 京东方科技集团股份有限公司 | Method and device of liquid crystal display |
CN104766276B (en) * | 2014-01-07 | 2017-12-19 | 厦门美图网科技有限公司 | A kind of color cast correction based on color space |
CN103854261B (en) * | 2014-02-25 | 2017-01-04 | 上海理工大学 | The bearing calibration of colour cast image |
CN104333673B (en) * | 2014-07-17 | 2018-09-11 | 凯迈(洛阳)测控有限公司 | A kind of real time video image color cast correction based on FPGA and DSP |
CN107689031B (en) * | 2016-08-03 | 2021-05-28 | 天津慧医谷科技有限公司 | Color restoration method based on illumination compensation in tongue picture analysis |
CN109151431B (en) | 2017-06-27 | 2020-07-28 | 京东方科技集团股份有限公司 | Image color cast compensation method and device and display equipment |
CN109672874B (en) * | 2018-10-24 | 2020-08-11 | 福州大学 | A Space-Time Consistent Stereoscopic Video Color Correction Method |
CN114422765A (en) * | 2021-12-29 | 2022-04-29 | 北京瞰瞰智能科技有限公司 | Image effect display method and device, electronic device and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11250239A (en) | 1998-02-27 | 1999-09-17 | Kyocera Corp | Digital imaging device that performs distortion correction using YUV data |
JP2001306054A (en) * | 2000-04-24 | 2001-11-02 | Mitsubishi Electric Corp | Display device |
KR20090007839A (en) * | 2007-07-16 | 2009-01-21 | 엘지전자 주식회사 | Color temperature controller and method of image indicator |
-
2009
- 2009-07-10 CN CN2009100599515A patent/CN101588439B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11250239A (en) | 1998-02-27 | 1999-09-17 | Kyocera Corp | Digital imaging device that performs distortion correction using YUV data |
JP2001306054A (en) * | 2000-04-24 | 2001-11-02 | Mitsubishi Electric Corp | Display device |
KR20090007839A (en) * | 2007-07-16 | 2009-01-21 | 엘지전자 주식회사 | Color temperature controller and method of image indicator |
Non-Patent Citations (1)
Title |
---|
郑建铧等.利用色彩直方图特征进行偏色图象的自动检测和校正.《中国图象图形学报》.万方,2003,第8卷(第7期),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN101588439A (en) | 2009-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101588439B (en) | Method for correcting multi-anaglyph color cast | |
US9544576B2 (en) | 3D photo creation system and method | |
US9118904B2 (en) | Image processing apparatus, image processing method, and program for generating a three dimensional image to be stereoscopically viewed | |
JP5831024B2 (en) | Image processing apparatus, image processing method, and program | |
CN105122793B (en) | Image processing device, image capture device, and image processing program | |
KR20110124473A (en) | 3D image generating device and method for multi-view image | |
CA2627999A1 (en) | Generation of a depth map from a monoscopic color image for rendering stereoscopic still and video images | |
WO2004071102A1 (en) | Three-dimensional video providing method and three-dimensional video display device | |
JP2010078768A (en) | Stereoscopic image capturing apparatus and stereoscopic image capturing system | |
WO2012077420A1 (en) | Image processing device, image processing method, and program | |
WO2008061490A3 (en) | Arrangement and method for capturing and displaying images of a scene and/or an object | |
CN101902657A (en) | A method for generating virtual multi-viewpoint images based on depth map layering | |
TW201125355A (en) | Method and system for displaying 2D and 3D images simultaneously | |
KR20150084807A (en) | Method and device for capturing and constructing a stream of panoramic or stereoscopic images | |
CN102098528A (en) | Method and device for converting planar image into stereoscopic image | |
CN101662695B (en) | Method and device for acquiring virtual viewport | |
KR20110071854A (en) | Apparatus and method for color correction of image data in stereoscopic imaging system | |
JP2015012429A (en) | Image processing apparatus, image processing method, and image processing program | |
WO2012133286A1 (en) | Three-dimensional image generating apparatus and three-dimensional image generating method | |
CN109345444A (en) | Super-resolution Stereo Image Construction with Depth Perception Enhancement | |
JP5871113B2 (en) | Stereo image generation apparatus, stereo image generation method, and stereo image generation program | |
CN102404583A (en) | System and method for depth enhancement of 3D image | |
JP5928280B2 (en) | Multi-viewpoint image generation apparatus and method | |
JP2013074585A (en) | Stereoscopic image generation device and stereoscopic image generation method | |
JP2012150614A (en) | Free viewpoint image generation device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110511 Termination date: 20120710 |