CN105608686A - Long and short exposure wide dynamic feather blending method based on mean filtering - Google Patents
Long and short exposure wide dynamic feather blending method based on mean filtering Download PDFInfo
- Publication number
- CN105608686A CN105608686A CN201510961537.9A CN201510961537A CN105608686A CN 105608686 A CN105608686 A CN 105608686A CN 201510961537 A CN201510961537 A CN 201510961537A CN 105608686 A CN105608686 A CN 105608686A
- Authority
- CN
- China
- Prior art keywords
- image
- exposure
- emergence
- long
- plate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 210000003746 feather Anatomy 0.000 title claims abstract description 10
- 238000002156 mixing Methods 0.000 title abstract description 4
- 238000001914 filtration Methods 0.000 title abstract 3
- 230000000694 effects Effects 0.000 claims abstract description 11
- 238000007500 overflow downdraw method Methods 0.000 claims description 12
- 238000000605 extraction Methods 0.000 claims description 5
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 230000010354 integration Effects 0.000 abstract 1
- 230000004927 fusion Effects 0.000 description 9
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- 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/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a long and short exposure wide dynamic feather blending method based on mean filtering, and the method comprises the steps: adjusting an operator through a brightness region, and enabling a brightness region in a long exposure image to be extracted; solving the mean value of a result obtained at step S1, carrying out the binarization processing of the mean value, and obtaining a binary mask composed of 0 and 1; carrying out the mean filtering of the binary mask, enabling the binary mask to generate a feather effect, and obtaining a feather mask; extracting short exposure information and long exposure information: (1) carrying out the multiply operation of the feather mask obtained at step S3 and a short exposure image; (2), solving the negation of a feather mask image obtained at step S3, and carrying out the multiply operation of the negation result and the long exposure image; carrying out the adding operation of the result obtained at step S4; carrying out the data correction of the result obtained step S5, and outputting the data correction result. The method is suitable for FPGA implementation, is simple in implementation, occupies fewer hardware resources, directly achieves the integration of original pixels, and is very high in instantaneity.
Description
Technical field
The present invention relates to a kind of wide dynamic fusion algorithm, particularly relate to the wide dynamic emergence of a kind of exposure of the length based on mean filterFusion method.
Background technology
In various wide dynamic techniques, the wide dynamic technique merging based on multiframe is comparatively general one, and blending algorithm is also manyKind is various, and as the method such as fusion, segment fusion of pyramid, comparatively speaking, these algorithms are realized complicated, take hardwareResource is more, and real-time is poor, is unfavorable for Realization of Product.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of prerequisite do not change original image pixels value is as far as possible providedUnder, length exposure image is directly merged, is applicable to the hard-wired exposure of the length based on mean filter wide dynamic emergence fusion sideMethod.
The object of the invention is to be achieved through the following technical solutions: the wide dynamic emergence of a kind of exposure of the length based on mean filterFusion method, comprises the following steps:
S1: extract highlight regions, adjust operator by luminance area the highlight regions in long exposure image is extracted;
S2: set up binaryzation and cover plate, the result that step S1 is obtained is averaged, and utilizes average to carry out binary conversion treatment, obtains oneIndividual by the 0 and 1 binaryzation illiteracy plate forming;
S3: cover plate and sprout wings, binaryzation is covered to plate and carry out mean filter, make it produce feather effect, obtain emergence and cover plate L " (x, y);
S4: extract short exposure information and long exposure information:
(1) plate is covered in emergence step S3 being obtained and short exposure image does multiply operation;
(2) negate of plate image is covered in emergence step S3 being obtained, and does multiply operation with long exposure image;
S5: length exposure information merges, and the result that step S4 is obtained is done add operation;
S6: the result of step S5 is carried out to data correction, then output.
Described extraction highlight regions method is: first each pixel F (x, y) of long exposure image F is normalized, soAfter bring formula L (x, y)=1/ (1+F (x, y) into-10) obtain high luminance area area image L.
The described method of setting up binaryzation illiteracy plate is: first ask for the average M of area image L in high luminance area in step S1, average M'sAcquiring method is that all pixels are added, and divided by the total pixel number of image;
Traversal high luminance area area image L, proceeds as follows each pixel L (x, y): when L (x, y) value is more than or equal to MTime, L ' (x, y)=1, in the time that L (x, y) value is less than M, L ' (x, y)=0, that is:
Wherein, M is the average of high luminance area area image L, the binaryzation illiteracy plate of L ' for obtaining.
The method of described extraction short exposure information and long exposure information is:
(1) plate L is covered in emergence step S3 being obtained, and " (x, y) does multiply operation with short exposure image B, obtains a short exposure letterBreath image B ', that is:
B′(x,y)=L″(x,y)·B(x,y)
Wherein, B ' is short exposure frame, and B is short exposure image;
(2) negate of plate image is covered in emergence step S3 being obtained, and does multiply operation with long exposure image F, obtains long exposing to the sunOptical information image F ', that is:
F′(x,y)=F(x,y)·[1-L″(x,y)]
Wherein, F ' is long exposure information image, and F is long exposure image.
The method that described length exposure information merges is: the long exposure information image F ' that S4 is obtained and short exposure frame B ' enterRow is added and merges, and obtains the image O after merging, and in order to regulate syncretizing effect, is multiplied by a factor sigma and does effect adjusting, that is:
O(x,y)=σ·B′(x,y)+(1-σ)·F′(x,y)
Wherein, σ span is [0,1], and O is the image after merging.
The method of described data correction is: traversing graph, as each pixel O (x, y) of O, judges the value size of O (x, y), whenO (x, y) is greater than at 255 o'clock, and the value of data is made as to 255; In the time that the value of O (x, y) is less than 0, the value of data is made as to 0, that is:
The invention has the beneficial effects as follows: compare the blending algorithm such as fusion, segment fusion of traditional pyramid, this fusion is calculatedMethod realizes simple, takies hardware resource less, and this fusion method directly merges image pixel, and real-time is very high.
(1) this fusion method need to adopt convolution realization except covering plate emergence, and other steps are all the operations based on pixel,Be applicable to FPGA and realize, realize simple;
(2) this fusion method is the fusion based on pixel, length exposure information is directly merged to the image maximum after therefore mergingThe maintenance of degree former figure information, can not produce unpredictable problem.
Brief description of the drawings
Fig. 1 is fusion method flow chart of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail, but protection scope of the present invention is not limited to following instituteState.
As shown in Figure 1, the wide dynamic emergence fusion method of a kind of exposure of the length based on mean filter, comprises the following steps:
S1: extract highlight regions, adjust operator by luminance area the highlight regions in long exposure image is extracted;
Described extraction highlight regions method is: first each pixel F (x, y) of long exposure image F is normalized, soAfter bring formula L (x, y)=1/ (1+F (x, y) into-10) obtain high luminance area area image L.
S2: set up binaryzation and cover plate, the result that step S1 is obtained is averaged, and utilizes average to carry out binary conversion treatment, obtains oneIndividual by the 0 and 1 binaryzation illiteracy plate forming;
The described method of setting up binaryzation illiteracy plate is: first ask for the average M of area image L in high luminance area in step S1, average M'sAcquiring method is that all pixels are added, and divided by the total pixel number of image;
Traversal high luminance area area image L, proceeds as follows each pixel L (x, y): when L (x, y) value is more than or equal to MTime, L ' (x, y)=1, in the time that L (x, y) value is less than M, L ' (x, y)=0, that is:
Wherein, M is the average of high luminance area area image L, the binaryzation illiteracy plate of L ' for obtaining.
S3: cover plate and sprout wings, binaryzation is covered to plate and carry out mean filter, make it produce feather effect, obtain emergence and cover plate L " (x, y);
The described method of setting up the emergence of binaryzation illiteracy plate is: the binaryzation obtaining in S2 is covered to plate and adopt known mean filter sideMethod, makes it produce feather effect, and obtains the illiteracy plate L " (x, y) that sprouts wings.
S4: extract short exposure information and long exposure information:
(1) plate L is covered in emergence step S3 being obtained, and " (x, y) does multiply operation with short exposure image B, obtains a short exposure letterBreath image B ', that is:
B′(x,y)=L″(x,y)·B(x,y)
Wherein, B ' is short exposure frame, and B is short exposure image;
(2) negate of plate image is covered in emergence step S3 being obtained, and does multiply operation with long exposure image F, obtains long exposing to the sunOptical information image F ', that is:
F′(x,y)=F(x,y)·[1-L″(x,y)]
Wherein, F ' is long exposure information image, and F is long exposure image.
S5: length exposure information merges, and the result that step S4 is obtained is done add operation;
The method that described length exposure information merges is: the long exposure information image F ' that S4 is obtained and short exposure frame B 'Be added fusion, obtain the image O after merging, in order to regulate syncretizing effect, be multiplied by a factor sigma and do effect adjusting, that is:
O(x,y)=σ·B′(x,y)+(1-σ)·F′(x,y)
Wherein, σ span is [0,1], and O is the image after merging.
S6: the result of step S5 is carried out to data correction, then output;
The method of described data correction is: traversing graph, as each pixel O (x, y) of O, judges the value size of O (x, y), whenO (x, y) is greater than at 255 o'clock, and the value of data is made as to 255; In the time that the value of O (x, y) is less than 0, the value of data is made as to 0, that is:
The technical issues that need to address of the present invention have:
(1) by long exposure image and short exposure image separately useful information split;
(2) how to set up the illiteracy plate (employing average) of sprouting wings;
(3) how to utilize the illiteracy plate of sprouting wings that two width image corresponding regions are split;
(4) how by a synthetic two parts useful information image without splicing vestige.
The above is only the preferred embodiment of the present invention, is to be understood that the present invention is not limited to disclosed form herein,Should not regard the eliminating to other embodiment as, and can be used for various other combinations, amendment and environment, and can be described hereinIn contemplated scope, change by technology or the knowledge of above-mentioned instruction or association area. And the change that those skilled in the art carry outDo not depart from the spirit and scope of the present invention with changing, all should be in the protection domain of claims of the present invention.
Claims (6)
1. the wide dynamic emergence fusion method of the exposure of the length based on mean filter, is characterized in that, comprises the following steps:
S1: extract highlight regions, adjust operator by luminance area the highlight regions in long exposure image is extracted;
S2: set up binaryzation and cover plate, the result that step S1 is obtained is averaged, and utilizes average to carry out binary conversion treatment, obtains oneIndividual by the 0 and 1 binaryzation illiteracy plate forming;
S3: cover plate and sprout wings, binaryzation is covered to plate and carry out mean filter, make it produce feather effect, obtain emergence and cover plate;
S4: extract short exposure information and long exposure information:
(1) plate is covered in emergence step S3 being obtained and short exposure image does multiply operation;
(2) negate of plate image is covered in emergence step S3 being obtained, and does multiply operation with long exposure image;
S5: length exposure information merges, and the result that step S4 is obtained is done add operation;
S6: the result of step S5 is carried out to data correction, then output.
2. the wide dynamic emergence fusion method of a kind of exposure of the length based on mean filter according to claim 1, its feature existsIn: described extraction highlight regions method is: first each pixel F (x, y) of long exposure image F is normalized, soAfter bring formula L (x, y)=1/ (1+F (x, y) into-10) obtain high luminance area area image L.
3. the wide dynamic emergence fusion method of a kind of exposure of the length based on mean filter according to claim 1, its feature existsIn: the described method of setting up binaryzation illiteracy plate is: first ask for the average M of area image L in high luminance area in step S1, average M'sAcquiring method is that all pixels are added, and divided by the total pixel number of image;
Traversal high luminance area area image L, proceeds as follows each pixel L (x, y): when L (x, y) value is more than or equal to MTime, L ' (x, y)=1, in the time that L (x, y) value is less than M, L ' (x, y)=0, that is:
Wherein, M is the average of high luminance area area image L, the binaryzation illiteracy plate of L ' for obtaining.
4. the wide dynamic emergence fusion method of a kind of exposure of the length based on mean filter according to claim 1, its feature existsIn: the method for described extraction short exposure information and long exposure information is:
(1) plate L is covered in emergence step S3 being obtained, and " (x, y) does multiply operation with short exposure image B, obtains a short exposure letterBreath image B ', that is:
B′(x,y)=L″(x,y)·B(x,y)
Wherein, B ' is short exposure frame, and B is short exposure image;
(2) negate of plate image is covered in emergence step S3 being obtained, and does multiply operation with long exposure image F, obtains long exposing to the sunOptical information image F ', that is:
F′(x,y)=F(x,y)·[1-L″(x,y)]
Wherein, F ' is long exposure information image, and F is long exposure image.
5. the wide dynamic emergence fusion method of a kind of exposure of the length based on mean filter according to claim 1, its feature existsIn: the method that described length exposure information merges is: the long exposure information image F ' that S4 is obtained and short exposure frame B ' enterRow is added and merges, and obtains the image O after merging, and in order to regulate syncretizing effect, is multiplied by a factor sigma and does effect adjusting, that is:
O(x,y)=σ·B′(x,y)+(1-σ)·F′(x,y)
Wherein, σ span is [0,1], and O is the image after merging.
6. the wide dynamic emergence fusion method of a kind of exposure of the length based on mean filter according to claim 1, its feature existsIn: the method for described data correction is: traversing graph, as each pixel O (x, y) of O, judges the value size of O (x, y), whenO (x, y) is greater than at 255 o'clock, and the value of data is made as to 255; In the time that the value of O (x, y) is less than 0, the value of data is made as to 0, that is:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510961537.9A CN105608686A (en) | 2015-12-18 | 2015-12-18 | Long and short exposure wide dynamic feather blending method based on mean filtering |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510961537.9A CN105608686A (en) | 2015-12-18 | 2015-12-18 | Long and short exposure wide dynamic feather blending method based on mean filtering |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105608686A true CN105608686A (en) | 2016-05-25 |
Family
ID=55988602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510961537.9A Pending CN105608686A (en) | 2015-12-18 | 2015-12-18 | Long and short exposure wide dynamic feather blending method based on mean filtering |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105608686A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045609A (en) * | 2018-10-13 | 2020-04-21 | 森大(深圳)技术有限公司 | Ink jet printing method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104899845A (en) * | 2015-05-10 | 2015-09-09 | 北京工业大学 | Method for fusing multiple exposure images based on 1 alphabeta space scene migration |
WO2015184408A1 (en) * | 2014-05-30 | 2015-12-03 | Apple Inc. | Scene motion correction in fused image systems |
-
2015
- 2015-12-18 CN CN201510961537.9A patent/CN105608686A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015184408A1 (en) * | 2014-05-30 | 2015-12-03 | Apple Inc. | Scene motion correction in fused image systems |
CN104899845A (en) * | 2015-05-10 | 2015-09-09 | 北京工业大学 | Method for fusing multiple exposure images based on 1 alphabeta space scene migration |
Non-Patent Citations (3)
Title |
---|
吴黎: "人像照片背景替换方法研究", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 * |
胡燕翔 等: "大动态范围多曝光图像融合方法", 《计算机工程与应用》 * |
顾桓: "用双扫拼合技术扩大图像的动态范围", 《印刷杂志》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111045609A (en) * | 2018-10-13 | 2020-04-21 | 森大(深圳)技术有限公司 | Ink jet printing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104408752B (en) | A kind of high dynamic range images compression method based on mixed shades mapping algorithm | |
JP5864817B2 (en) | Method and apparatus for enhancing color | |
DE102016011877B4 (en) | De-hazing photos and videos using visual artifact suppression | |
WO2018154092A8 (en) | Iterative multiscale image generation using neural networks | |
US11783459B2 (en) | Method and device of inverse tone mapping and electronic device | |
CN110163808A (en) | A kind of single frames high dynamic imaging method based on convolutional neural networks | |
CN104240194A (en) | Low-light-level image enhancement algorithm based on parabolic function | |
CN102063712B (en) | Multi-exposure image fusion method based on subband structure | |
CN102044070A (en) | Retinex based nonlinear color image enhancement method | |
CN108305232B (en) | A single-frame high dynamic range image generation method | |
CN103295206B (en) | A kind of twilight image Enhancement Method and device based on Retinex | |
CN105427270A (en) | Length exposure wide dynamic eclosion fusion method based on gauss filtering | |
CN105184748A (en) | Image bit depth enhancing method | |
CN103268587B (en) | Imitative building site index is utilized to obtain the method for urban built-up land information | |
CN104282004A (en) | Self-adaptation equalization method based on extensible segmentation histogram | |
CN104952089B (en) | A kind of image processing method and system | |
CN104732495B (en) | A kind of image processing method and system based on fuzzy auto tone | |
CN106709888B (en) | A kind of high dynamic range images production method based on human vision model | |
CN111951171A (en) | HDR image generation method, device, readable storage medium and terminal device | |
CN105574826A (en) | Thin cloud removing method of remote sensing image | |
CN105608686A (en) | Long and short exposure wide dynamic feather blending method based on mean filtering | |
CN105704349B (en) | A kind of wide dynamic Enhancement Method of single frames adjusted separately based on clear zone and dark space | |
CN102663782B (en) | Painting rendering method based on stroke texture analysis | |
CN104394302A (en) | Real-time video defogging system based on FPGA | |
CN105205485A (en) | Large scale image segmentation algorithm based on multi-inter-class maximum variance algorithm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160525 |