CN105303515B - A kind of color misregistration correction method under special illumination condition in closed experimental box - Google Patents
A kind of color misregistration correction method under special illumination condition in closed experimental box Download PDFInfo
- Publication number
- CN105303515B CN105303515B CN201510606556.XA CN201510606556A CN105303515B CN 105303515 B CN105303515 B CN 105303515B CN 201510606556 A CN201510606556 A CN 201510606556A CN 105303515 B CN105303515 B CN 105303515B
- Authority
- CN
- China
- Prior art keywords
- image
- pixel
- gray value
- channels
- channel
- 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
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000012937 correction Methods 0.000 title claims abstract description 14
- 238000005286 illumination Methods 0.000 title claims abstract description 9
- 238000012545 processing Methods 0.000 claims abstract description 9
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000002708 enhancing effect Effects 0.000 abstract description 3
- 210000001525 retina Anatomy 0.000 abstract description 2
- 210000003710 cerebral cortex Anatomy 0.000 abstract 1
- 238000011084 recovery Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003702 image correction Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30181—Earth observation
- G06T2207/30188—Vegetation; Agriculture
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a kind of methods for color cast correction under special illumination condition in closed experimental box,First to pixel R each in a width coloured image,G,The gray value of B triple channels is compared,To R,G,The pixel of channel B gray value maximum or G channels gray value maximum is not dealt in B triple channels,Rest of pixels R,G,The gray value of B triple channels is equal to the gray value of pixel G channels,Then treated, image is added with original image respective pixel averages,Obtain the image after a width preliminary corrections,Image after correction is transformed into hsv color space,Histogram equalization enhancing processing is carried out to V component,Then multiple dimensioned retina cerebral cortex theory is recycled to further enhance processing,Finally convert back RGB color,And entire image is slightly adjusted with Garmma curves,The final image obtained after a width color cast correction.The present invention is solved in closed experimental box due to the limitation image color cast phenomenon of light source, makes image more true, natural.
Description
Technical field
The present invention relates to a kind of method in partially red inclined half-light source hypograph color cast correction, suitable for Computer Image Processing
Field, especially suitable for space life science image processing field.
Background technology
To meet the normal growth and development of plant in airtight space experimental box, white and red light source are needed, special
Under illumination condition, specially treated only is carried out to the picture of shooting, can be only achieved good visual effect, space life science is ground
Study carefully just smooth.
The technology for being presently used for color cast correction is quite ripe, wherein there is histogram equalization method, Garmma corrections are calculated
Method, Retinex methods etc..But these methods respectively have limitation, and histogram equalization method can integrally improve the contrast of image, right
Preferable effect can be played in black white image, but for coloured image, histogram equalization is distinguished to R, G, B triple channel, due to
The correlation of each Color Channel is had ignored, the result finally handled will appear serious color offset phenomenon;Garmma correcting algorithms
The contrast of entire image can be non-linearly adjusted, but for coloured image, adjustment by a small margin can only be done, otherwise can gone out
Existing color offset phenomenon;Rgb color space is transformed at other color spaces (HSV color spaces) by color space transformation approach
Reason, wherein, H component representative image tones, S component representative image saturation degrees, V component representative image brightness, only pair with coloration without
The luminance component of pass is corrected, and therefore, it is possible to improve the brightness of image, while retains preferable colour information;Retina is big
Cortex (Retinex) method is mainly to decomposite the high frequency section of image, due to the details of high frequency section main representative image
Part, therefore this method keeps very effectively details, which extends three kinds of different types of algorithms, single scale
Retinex algorithm, multi-Scale Retinex Algorithm, the Retinex algorithm with color recovery.Due to single scale algorithm dynamic range
Compress it is poor, details holding on it is not good enough, therefore, improved on the basis of single scale Retinex, it is proposed that more rulers
Retinex enhancing algorithms are spent, multiple dimensioned Retinex detail sections enhancing is preferable, but cross-color, in order to solve this problem,
The multi-Scale Retinex Algorithm with color recovery is introduced on the basis of multiple dimensioned Retinex, with the multiple dimensioned of color recovery
Retinex algorithm can protect to a certain extent due to introducing the proportionate relationship in original image between three Color Channels
Image color is held, still, the algorithm is more complicated, and the parameter in algorithm is not easy to determine.Therefore, other color spaces are transformed into
It is handled, only a pair component unrelated with coloration is corrected, and could retain the color information of image, required for being color cast correction
One step of key.
Invention content
It is an object of the invention to solve the partially red inclined dim phenomenon of the image in airtight space plant incubator under special light sources,
The processing method can make image it is truer, naturally, with good visual effect.
A kind of processing step of color misregistration correction method under special illumination condition in closed experimental box is:
(1), piece image is read in the closed plant incubator with special illumination condition;
(2), R, G, B triple channel gray value size in each pixel of movement images, it is maximum for G channels gray value in pixel
Or the pixel of channel B gray value maximum is not dealt with, the gray value of each channel of rest of pixels is set as the G channels at the pixel
Gray value;
(3), step (2), treated that image is added with the image respective pixel in (1) averages;
(4), the image in step (3) is transformed into hsv color spatial manipulation;
(5), to the V component in step (4), i.e. luminance component carries out histogram equalization operation;
(6), multi-Scale Retinex Algorithm processing, i.e. three single scales are carried out to step (5) treated V component
Retinex algorithm weighted sum obtains W (x, y):
In formula:(x, y) be V component pixel position, i be single scale sequence number, ωiFor the weighting coefficient of i-th of scale,
Take ω1=ω2=ω3=1/3;Ri(x, y) calculation formula is:
In formula:I (x, y) is V component value at (x, y), σiFor the Gauss scale parameter of i-th of scale, i=1,2,3;Take σ1
=90, σ2=160, σ3=10;
(7), to step (6), treated, and image converts back RGB color;
(8), to step (7), treated that tri- channels of image R, G, B carry out respectively that identical Garmma is bent
Line corrects, and formula is:
Wherein, I2i(u, v) represents i-th of channel gray value in the pixel exported at image (u, v), I1i(u, v) represents defeated
Enter the gray value of i-th of channel in pixel at image (u, v).
Advantages of the present invention:
(1), the present invention reduces the partially red phenomenon of image, and can reduce red light source influences caused by picture quality.
(2), the present invention efficiently solves the inclined dim phenomenon of image, and even if in closed camera bellows can show good
Visual effect.
Description of the drawings
Fig. 1 is disposed of in its entirety method flow diagram.
Fig. 2 is confirmatory experiment result flow chart.
Specific embodiment
The present invention has carried out the plant in airtight space experimental box imaging experiment, and has carried out colour cast to formed image
Correction process, while a blank sheet of paper is put beside plant, with as a control group, handling result shows that picture quality has very big change
It is kind.The specific implementation step that image procossing is verified with handling result is:
(1), piece image is read in the closed plant incubator with special illumination condition;
(2), R, G, B triple channel gray value size in each pixel of movement images, it is maximum for G channels gray value in pixel
Or the pixel of channel B gray value maximum is not dealt with, the gray value of each channel of rest of pixels is set as the G channels at the pixel
Gray value;
(3), step (2), treated that image is added with the image respective pixel in (1) averages;
(4), the image in step (3) is transformed into hsv color spatial manipulation;
(5), to the V component in step (4), i.e. luminance component carries out histogram equalization operation;
(6), multi-Scale Retinex Algorithm processing, i.e. three single scales are carried out to step (5) treated V component
Retinex algorithm weighted sum obtains W (x, y):
In formula:(x, y) be V component pixel position, i be single scale sequence number, ωiFor the weighting coefficient of i-th of scale,
Take ω1=ω2=ω3=1/3;Ri(x, y) calculation formula is:
In formula:I (x, y) is V component value at coordinate (x, y), σiFor the Gauss scale parameter of i-th of scale, i=1,2,3;
Take σ1=90, σ2=160, σ3=10;
(7), to step (6), treated, and image converts back RGB color;
(8), to step (7), treated that tri- channels of image R, G, B carry out identical Garmma curvature corrections respectively, public
Formula is:
Wherein, I2i(u, v) represents i-th of channel gray value in the pixel exported at image (u, v), I1i(u, v) represents defeated
Enter the gray value of i-th of channel in pixel at image (u, v).
(9), the blank sheet of paper part of image and the blank sheet of paper part of original image not dealt with after interception step (8) is handled respectively;
(10), two blank sheet of paper images in step (9) are handled, to verify the color cast correction side proposed in this patent
The validity of method, processing step are:
(a), absolute value is sought after subtracting each other two-by-two to R, G, B triple channel gray value of pixel in two blank sheet of paper images respectively, is obtained
To three groups of channel gray value absolute differences;
(b), compare the mean value and variance of the same channels gray value absolute difference of this two blank sheet of paper images.
Claims (1)
- A kind of 1. method for color cast correction under special illumination condition in closed experimental box, it is characterised in that including following step Suddenly:(1), piece image is read in the closed plant incubator with special illumination condition;(2), R, G, B triple channel gray value size in each pixel of movement images, for G channels gray value in pixel it is maximum or The pixel of channel B gray value maximum is not dealt with, and the gray value of each channel of rest of pixels is set as the ash of the G channels at the pixel Angle value;(3), step (2), treated that image is added with the image respective pixel in (1) averages;(4), the image in step (3) is transformed into hsv color spatial manipulation;(5), to the V component in step (4), i.e. luminance component carries out histogram equalization operation;(6), multi-Scale Retinex Algorithm processing is carried out to step (5) treated V component, i.e. three single scale Retinex are calculated Method weighted sum obtains W (x, y):In formula:(x, y) be V component pixel position, i be single scale sequence number, ωiFor the weighting coefficient of i-th of scale, ω is taken1 =ω2=ω3=1/3;Ri(x, y) calculation formula is:In formula:V component values of the I (x, y) for (x, y) position, σiFor the Gauss scale parameter of i-th of scale, i=1,2,3;Take σ1 =90, σ2=160, σ3=10;(7), to step (6), treated, and image converts back RGB color;(8), to step (7), treated that tri- channels of image R, G, B carry out respectively that identical gamma curve corrects, and formula is:Wherein, I2i(u, v) represents i-th of channel gray value in the pixel exported at image (u, v), I1i(u, v) represents input figure As the gray value of i-th of channel in pixel at (u, v).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510606556.XA CN105303515B (en) | 2015-09-22 | 2015-09-22 | A kind of color misregistration correction method under special illumination condition in closed experimental box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510606556.XA CN105303515B (en) | 2015-09-22 | 2015-09-22 | A kind of color misregistration correction method under special illumination condition in closed experimental box |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105303515A CN105303515A (en) | 2016-02-03 |
CN105303515B true CN105303515B (en) | 2018-06-26 |
Family
ID=55200742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510606556.XA Active CN105303515B (en) | 2015-09-22 | 2015-09-22 | A kind of color misregistration correction method under special illumination condition in closed experimental box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105303515B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109274950B (en) * | 2018-11-09 | 2021-05-07 | 北京旷视科技有限公司 | Image processing method and device and electronic equipment |
CN114359150A (en) * | 2021-12-03 | 2022-04-15 | 深圳市宏电技术股份有限公司 | Work clothes detection method based on edge detection and histogram threshold setting |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103295206A (en) * | 2013-06-25 | 2013-09-11 | 安科智慧城市技术(中国)有限公司 | low-light-level image enhancement method and device based on Retinex |
CN103578084A (en) * | 2013-12-09 | 2014-02-12 | 西安电子科技大学 | Color image enhancement method based on bright channel filtering |
CN103886565A (en) * | 2014-03-13 | 2014-06-25 | 北京工业大学 | Nighttime color image enhancement method based on purpose optimization and histogram equalization |
CN104537615A (en) * | 2014-12-04 | 2015-04-22 | 大连理工大学 | Local Retinex enhancement algorithm based on HSV color spaces |
CN104867115A (en) * | 2015-04-09 | 2015-08-26 | 南京邮电大学 | Color cast detection and image enhancement method for images after defogging |
-
2015
- 2015-09-22 CN CN201510606556.XA patent/CN105303515B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103295206A (en) * | 2013-06-25 | 2013-09-11 | 安科智慧城市技术(中国)有限公司 | low-light-level image enhancement method and device based on Retinex |
CN103578084A (en) * | 2013-12-09 | 2014-02-12 | 西安电子科技大学 | Color image enhancement method based on bright channel filtering |
CN103886565A (en) * | 2014-03-13 | 2014-06-25 | 北京工业大学 | Nighttime color image enhancement method based on purpose optimization and histogram equalization |
CN104537615A (en) * | 2014-12-04 | 2015-04-22 | 大连理工大学 | Local Retinex enhancement algorithm based on HSV color spaces |
CN104867115A (en) * | 2015-04-09 | 2015-08-26 | 南京邮电大学 | Color cast detection and image enhancement method for images after defogging |
Non-Patent Citations (3)
Title |
---|
一种新的基于多尺度retinex的高动态范围图像增强方法;赵志华等;《电子技术》;20101125;第19-21页 * |
低照度环境下视频增强技术;朴燕等;《红外与激光工程》;20140630;第43卷(第6期);第2021-2026页 * |
改进的多尺度Retinex医学X射线图像增强算法;陈琛等;《计算机工程与应用》;20131029;第191-195页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105303515A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107767354B (en) | Image defogging algorithm based on dark channel prior | |
CN105046663B (en) | A kind of adaptive enhancement method of low-illumination image for simulating human visual perception | |
CN103593830B (en) | A kind of low illumination level video image enhancement | |
CN108230407B (en) | Image processing method and device | |
WO2017049703A1 (en) | Image contrast enhancement method | |
CN103491357A (en) | Auto white balance treatment method of image sensor | |
CN103065334A (en) | Color cast detection and correction method and device based on HSV (Hue, Saturation, Value) color space | |
Kwok et al. | Gray world based color correction and intensity preservation for image enhancement | |
CN110175969B (en) | Image processing method and image processing apparatus | |
JP5847341B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
CN111161683B (en) | Image processing method, image processor and display device | |
CN109544467B (en) | Method for enhancing contrast of color image based on LAB model | |
CN105303515B (en) | A kind of color misregistration correction method under special illumination condition in closed experimental box | |
CN111107330B (en) | Color cast correction method for Lab space | |
CN102158714B (en) | Method and device for enhancing image edge based on RGB (Red, Green and Blue) format of Bayer domain | |
CN104766276A (en) | Off-color correction method based on color space | |
WO2022120799A9 (en) | Image processing method and apparatus, electronic device, and storage medium | |
CN102542526A (en) | Image decolorizing method | |
CN107358592B (en) | Iterative global adaptive image enhancement method | |
CN113850738A (en) | Device and method for correcting purple border of image | |
CN108171646B (en) | Image tone adjusting method and device based on brightness maintenance | |
CN111010557B (en) | White point range determining method, white balance correcting method and device, and storage medium | |
CN105208362B (en) | Image colour cast auto-correction method based on gray balance principle | |
US9530223B2 (en) | Image correction method and image correction device | |
US8774554B1 (en) | Bias and plateau limited advanced contrast enhancement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |