CN103942807A - Real-time processing fast image block fusion system and fusion method - Google Patents

Real-time processing fast image block fusion system and fusion method Download PDF

Info

Publication number
CN103942807A
CN103942807A CN201410196025.3A CN201410196025A CN103942807A CN 103942807 A CN103942807 A CN 103942807A CN 201410196025 A CN201410196025 A CN 201410196025A CN 103942807 A CN103942807 A CN 103942807A
Authority
CN
China
Prior art keywords
image
piece
sigma
fusion
cpr
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
Application number
CN201410196025.3A
Other languages
Chinese (zh)
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.)
Beijing Jiaotong University
Original Assignee
Beijing Jiaotong University
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 Beijing Jiaotong University filed Critical Beijing Jiaotong University
Priority to CN201410196025.3A priority Critical patent/CN103942807A/en
Publication of CN103942807A publication Critical patent/CN103942807A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

The invention discloses a real-time processing fast image block fusion system and fusion method. The real-time processing fast image block fusion system comprises an exposure control module, a camera and other similar gathering tools, an image buffer module, and an image fusion module and so on. The exposure control module controls the camera to output a plurality of exposed images in sequence according to the exposure time through interacting with the camera. The image buffer module is used for storing images shot by the camera, and several images with different exposure values are stored for a scene at each time. The image fusion module is responsible for reading exposed images from a cache and integrating the exposed images. The fusion method mainly optimizes the image through optimizing an image sequence, optimizing entropy calculation and optimizing gaussian weighted fusion, the memory use is greatly reduced, the calculation steps are simplified, the calculation time is shortened, and the algorithm running efficiency is improved.

Description

A kind of rapid image segment fusion system and fusion method of real-time processing
Technical field
The present invention relates to image processing field, relate to more specifically a kind of rapid image segment fusion system and fusion method of real-time processing.
Background technology
Very broad brightness range has been contained in the real world, such as, noon, the brightness of daylight can reach a thousands of times of the moon in late into the night luminance brightness.The brightness range of actual natural scene can be up to 14 orders of magnitude, and ordinary camera can only collect very narrow brightness range, be about 4 orders of magnitude, this is a very large challenge for image acquisition, even if be equipped with automatic exposure module accurately, also inevitably there will be overexposure and under-exposed phenomenon, especially for the dynamic scene of height (HDR).
In order to solve overexposure and under-exposed problem, image co-registration (Image Fusion) technology is introduced into, and obtains all information of high dynamic scene.Image fusion technology refers to, first collects the one group of image that carries out different exposures for Same Scene, then this group image is processed by blending algorithm, is finally combined into the image that a pair almost comprises all information in scene, as shown in Figure 1.
In current image fusion technology, some method can be by obtaining a secondary high dynamic image after one group of image sequence is merged, but such high-dynamics image can not normally show in display, need to carry out height dynamically to low dynamic mapping, can see effect, this process is too complicated, and the effect merging is closely bound up with the mapping in later stage processing.
T.Mertens has been used image pyramid to carry out layering to image; and use the parameter of picture quality as weight, successively merge, because this method has been used image pyramid; so calculated amount is very large, and often there will be the vestige of some artificial treatment.
A.Goshtasby has described a kind of method of segment fusion.In this method, first need image block, and block-by-block calculating weight, again each pixel is weighted and obtains final fused images afterwards.This method can obtain good syncretizing effect, but same calculated amount is larger.
Above two kinds of methods have important using value in the fusion of still image, still, because himself many disadvantages is with not enough, all cannot meet the requirement of the real-time processing that we will realize.Therefore, need to provide a kind of better image processing method.
Summary of the invention
For above the deficiencies in the prior art, the invention provides a kind of rapid image segment fusion system and fusion method of real-time processing.By the optimization to image block blending algorithm, can be intended to significantly shorten the used time of this algorithm, to improve its execution efficiency, can be applied to well real time image processing system.
For solving the problems of the technologies described above, the present invention adopts following technical proposals.
A kind of rapid image segment fusion method of real-time processing comprises the steps:
1. obtain the image I (x, y) for one group of different exposure value of Same Scene.Use very few image, cannot obtain enough dynamic ranges, and use too much image can reduce treatment effeciency.Therefore the present invention is optimized for 3 width left and right by the picture number obtaining.Fig. 2, Fig. 3 illustrate this situation.
2. every image is carried out to piecemeal, every is d x d pixel, and every image is divided into n r* n cpiece, wherein, n r, n crepresent respectively laterally, block count longitudinally.
3. calculate the entropy of each piece.The entropy computing formula of using in the present invention is:
E = Σ i = 0 255 - p i log ( p i ) = log 2 ( N ) - 1 N · Cpr
Wherein, Cpr operator representation is:
Cpr = Σ i n i · log 2 ( n i )
Visible, Cpr operator is larger, and entropy E is just less.
In the optimized algorithm proposing in the present invention, by using Cpr operator rather than original entropy E to be used as judgment criteria, can reduce the division outside the computing of Cpr operator, subtraction, logarithm operation, effectively improve operation efficiency.
4. select the piece of entropy maximum in corresponding a certain region in different images as optimum piece.Because previous step has been calculated the Cpr operator of each piece, in this step, only need compare the Cpr operator of the piece on the same position of multiple former figure, choose minimum piece corresponding to Cpr operator wherein, as optimum piece.
5. use and using Rational Gaussian that the center of each image block being selected is axis of symmetry as weighted value, image sequence is carried out to linear weighted function.Fusion function is:
O ( x , y ) = Σ j = 1 n r Σ k = 1 n c W jk ( x , y ) I jk ( x , y )
In this calculating process, need to carry out (n r* n c) inferior multiplication and (n r* n c-1) sub-addition.
The present invention improves its computing flow process, rewrites fusion function to be:
O ( x , y ) = Σ i = 2 n r Σ j = 2 n c w ij ( x , y ) · I ij ( x , y ) = Σ k = 2 M I k w k , w k = Σ Opt ij ∈ I k w ij
Wherein M represents the picture number merging, and refers to the optimum piece in (i, j) piece position, if represent that optimum piece belongs to k width image, so just this weight is added up.
By this conversion, by first taking advantage of to add afterwards, become the calculating of taking advantage of after now adding, first merge the weighted value that belongs to same sub-picture, do again afterwards multiplication, final calculated amount becomes (n r* n c-1) sub-addition and M multiplication, efficiency of algorithm rises suddenly.
6. the image O (x, y) after being merged.
In the process being optimized at the algorithm flow to above, mainly contain the optimization of image sequence, the optimization that entropy calculates, the optimization of Gauss's Weighted Fusion.By the optimization of these three aspects, can significantly reduce the use of internal memory, the step of simplified operation, significantly reduces operation time, significantly improves the efficiency of algorithm operation, make it more appropriate to real-time system.
A rapid image segment fusion system for real-time processing, this system comprises:
Exposure control module, exports many group exposure images for controlling camera successively according to the difference of time shutter;
Image buffers module, gets off for the Image Saving that camera is taken, and stores the image of the different exposure values of several width of a scene at every turn;
Image co-registration module, for image buffers module being read to many group exposure images, and carries out fusion treatment to this exposure image.
Beneficial effect of the present invention is as follows:
The efficiency that piece merges is about 2.5 times of left and right in the past.Higher efficiency can make the real-time system based on this algorithm receive the image data stream of higher frame per second, is applied in the occasion of higher demand, and the effect that image is processed is outstanding.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.
Fig. 1. (A) (B) is (C) image sequence collecting under different exposure values.
Fig. 1. (D) be the image after the fusion finally obtaining.
Fig. 2. (A) (B) (C) (D) (E) (F) from http://www.imagefusion.org/ website, obtain " an office room " image sequence, 6 width figure altogether, size is 1024x768.Wherein the time shutter from (A) to (F) increases successively.
Fig. 3. be (A) to use Fig. 2. (A) (B) (C) (D) result that (E) (F) this 6 width picture merges.
Fig. 3. be (B) to use Fig. 2. (A) (D) result that (F) this 3 width picture merges.
Fig. 3. be (C) to use Fig. 2. the result that (A) (F) this 2 width picture merges.
Fig. 3. be (D) to use Fig. 2. the result that (B) (E) this 2 width picture merges.
Fig. 4. 3 former figure that (A) (B) (C) selects while being concrete implementation algorithm flow process.
Fig. 4. the optimum piece while (D) being concrete implementation algorithm flow process is chosen result.
Fig. 4. the final fusion results while (E) being concrete implementation algorithm flow process.
Fig. 5 is real time integrating method process flow diagram.
Fig. 6 is the design sketch of real-time image fusion system.
Fig. 7 is the design sketch of real-time image fusion system.
Embodiment
In order to be illustrated more clearly in the present invention, below in conjunction with preferred embodiments and drawings, the present invention is described further.
An object of the present invention is to provide a kind of rapid image segment fusion system of real-time processing.Based on this system, the image interfusion method of above-mentioned optimization has obtained application.
Described image block emerging system comprises exposure control module, the first-class sampling instrument of making a video recording, image buffers module, image co-registration module etc.
Described exposure control module is exported many exposure images for controlling camera successively according to the difference of time shutter.First, by automatic exposure module, obtain optimum exposure parameter, and real-time update.Suppose that the optimum time shutter is Tn (n is frame number), reducing afterwards the time shutter is the image that Tn-t obtains low exposure, again be increased to the image that Tn+t obtains overexposure the time shutter, so just obtained 3 width and merged needed image, three width images are merged and obtain required result.The image after but processing in real time need to constantly be merged, so the present invention completes by the structure of frame iteration.
Described image buffers module is for adopting the mode of " go here and there and change ", and the Image Saving that camera is taken gets off, and stores the image of the different exposure values of several width of a scene at every turn.Mutual by with camera of exposure control module, controls camera successively according to time shutter T0, T0-t, T0+t, T1, T1-t, T1+t ... Tn, Tn-t, the Sequential output of Tn+t, T1 wherein, T2 ... Tn represents respectively the automatic exposure time of constantly updating.Owing to only need to preserving 3 width images, therefore, the time shutter is T0, T1, T2 ... the image of Tn deposits image buffer 1 in, and the time shutter is T0-t, T1-t, T2-t ... the image of Tn-t deposits buffer zone 2 in, T0+t, T1+t, T2+t ... the image of Tn+t deposits buffer zone 3 in, and whenever new collection one sub-picture just covers the image in respective image impact damper, make only to preserve in buffer zone up-to-date image sequence.
More described image co-registration module is for reading image buffers module to organize exposure images, and this exposure image is carried out to fusion treatment.In this real-time system, first image co-registration needs to obtain the image of different exposures, then exposure control module is combined with image co-registration module.Use exposure control module to control exposure parameter, obtain the image under different exposure values.
In real-time image fusion system, every renewal piece image just merges once, so the image sequence merging not is under same automatic exposure value, may there is the combination of three kinds of different automatic exposure values: (Tn, Tn-t, Tn+t), or (Tn+1, Tn-t, Tn+t), (Tn+1, Tn+1-t, Tn+t), Tn represents n automatic exposure value constantly, and Tn+1 is n+1 exposure value constantly.First group of three width image for unified automatic exposure value, latter two is the combination of different automatic exposure values, but because the gap of scene brightness between twice automatic exposure test is very little, so can not bring to system unstable.
In test practice, adopt the camera of 30 frames per second to carry out data acquisition, resolution is 640X480, because fusion ratio is more consuming time, per secondly can only carry out 30 times and merge, so image acquisition and image co-registration are divided in two threads and carried out, image acquisition is only responsible for providing endlessly the images of different exposures, and image co-registration part is only responsible for 3 width images to merge, can guarantee like this frame frequency of real time fusion system.
The operational effect of real-time system proposed by the invention as shown in Figure 6, Figure 7.
As shown in Figure 5, another object of the present invention is to provide a kind of optimization method based on image block blending algorithm, has effectively improved the efficiency of algorithm of image co-registration, and its method flow comprises:
1. obtain the image for the different exposure values of 3 width of Same Scene.As Fig. 4. (A) (B) 3 former figure as shown in (C).
2. these 3 images are carried out to piecemeal.For example, every is 160x160 pixel, is divided into 4x3 piece.
3. calculate 3 images totally 36 pieces entropy separately.In concrete computation process, only calculate Cpr operator:
Cpr = Σ i n i · log 2 ( n i )
N wherein iin a gray level for gray level image, the number of times that the pixel that gray scale is i occurs.According to the relation of Cpr operator and entropy E, can obtain, when the value of Cpr operator is less, entropy E is just larger.
The Cpr operator of 4. calculating according to previous step, image block on the same position of 3 images is contrasted, select the piece of Cpr operator minimum in 3 image blocks as optimum piece, this selects piece process to carry out 12 times, and optimum is chosen result soon as Fig. 4. (D).
5. use and using Rational Gaussian that the center of each image block being selected is axis of symmetry as weighted value, image sequence is carried out to linear weighted function.In optimized algorithm, weighting formula is:
O ( x , y ) = Σ k = 1 M I k w k , w k = Σ Opt ij ∈ I k w ij
In concrete operation process, first merge the weighted value that belongs to same sub-picture, do afterwards multiplication again, final calculated amount becomes (4x3 – 1=11) sub-addition and 3 multiplication.
6. the image O (x, y) after being merged.As Fig. 4. (E).
On the basis of above optimized algorithm, the present invention proposes a kind of real-time system of image co-registration, its system chart is as shown in Figure 5.
By the optimization to blending algorithm, obtained Fast Block fusion method.Several groups of image sequences are tested, compared the processing speed between Fast Block blending algorithm and former algorithm, data are relatively in Table 1.
Table 1 Fast Block blending algorithm and former algorithm speed comparison
From test data, can find out, through optimizing, the efficiency that piece merges is about 2.5 times of left and right in the past.Higher efficiency can make the real-time system based on this algorithm receive the image data stream of higher frame per second, is applied in the occasion of higher demand, and the effect that image is processed is outstanding.
Obviously; the above embodiment of the present invention is only for example of the present invention is clearly described; and be not the restriction to embodiments of the present invention; for those of ordinary skill in the field; can also make other changes in different forms on the basis of the above description; here cannot give all embodiments exhaustive, every still row in protection scope of the present invention of apparent variation that technical scheme of the present invention extends out or change that belong to.

Claims (4)

1. a rapid image segment fusion method of processing in real time, is characterized in that, this fusion method comprises the steps:
1) obtain the image I (x, y) for one group of different exposure value of Same Scene;
2) every image is carried out to piecemeal, every is d x d pixel, and every image is divided into n r* n cpiece, wherein, n r, n crepresent respectively laterally, block count longitudinally;
3) calculate respectively entropy and the Cpr value of each piece, described entropy is:
E = Σ i = 0 255 - p i log ( p i ) = log 2 ( N ) - 1 N · Cpr
Wherein, p irefer to that pixel value is the number n of the pixel of i iaccount for the ratio of total pixel N, and Cpr operator representation is:
Cpr = Σ i n i · log 2 ( n i ) ;
4) piece of selecting entropy maximum is as optimum piece;
5) use and to using Rational Gaussian that each optimum image Kuai center being selected is axis of symmetry as weighted value, image sequence is carried out to linear weighted function, merge, the image O (x, y) after being merged,
O ( x , y ) = Σ i = 2 n r Σ j = 2 n c w ij ( x , y ) · I ij ( x , y ) = Σ k = 2 M I k w k , w k = Σ Opt ij ∈ I k w ij
Wherein M represents the picture number merging, and refers to the optimum piece in (i, j) piece position, if optimum piece belongs to k width image, so just this weight is added up.
2. a rapid image segment fusion system of processing in real time, is characterized in that, this system comprises:
Exposure control module, exports many group exposure images for controlling camera successively according to the difference of time shutter;
Image buffers module, gets off for the Image Saving that camera is taken, and stores the image of the different exposure values of several width of a scene at every turn;
Image co-registration module, for image buffers module being read to many group exposure images, and carries out fusion treatment to this exposure image.
3. the rapid image segment fusion system of a kind of real-time processing according to claim 2, is characterized in that, described many group exposure images are Tn frame, Tn-t frame, Tn+t frame, wherein: the group number that n is image, t is that the time shutter is poor, and Tn+t, Tn, Tn-t are 3 different time shutter.
4. the rapid image segment fusion system of a kind of real-time processing according to claim 2, is characterized in that, the method that described image co-registration is processed is:
1) obtain the image I (x, y) for one group of different exposure value of Same Scene;
2) every image is carried out to piecemeal, every is d x d pixel, and every image is divided into n r* n cpiece, wherein, n r, n crepresent respectively laterally, block count longitudinally;
3) calculate respectively entropy and the Cpr value of each piece, described entropy is:
E = Σ i = 0 255 - p i log ( p i ) = log 2 ( N ) - 1 N · Cpr
Wherein Cpr operator representation is:
Cpr = Σ i n i · log 2 ( n i ) ;
4) piece of entropy maximum of selecting corresponding a certain region in different images is as optimum piece;
5) use and to using Rational Gaussian that the center of each image block being selected is axis of symmetry as weighted value, image sequence is carried out to linear weighted function, merge, the image O (x, y) after being merged,
O ( x , y ) = Σ i = 2 n r Σ j = 2 n c w ij ( x , y ) · I ij ( x , y ) = Σ k = 1 M I k w k , w k = Σ Opt ij ∈ I k w ij
Wherein M represents the picture number merging, and refers to the optimum piece in (i, j) piece position, if optimum piece belongs to k width image, so just this weight is added up.
CN201410196025.3A 2014-05-09 2014-05-09 Real-time processing fast image block fusion system and fusion method Pending CN103942807A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410196025.3A CN103942807A (en) 2014-05-09 2014-05-09 Real-time processing fast image block fusion system and fusion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410196025.3A CN103942807A (en) 2014-05-09 2014-05-09 Real-time processing fast image block fusion system and fusion method

Publications (1)

Publication Number Publication Date
CN103942807A true CN103942807A (en) 2014-07-23

Family

ID=51190458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410196025.3A Pending CN103942807A (en) 2014-05-09 2014-05-09 Real-time processing fast image block fusion system and fusion method

Country Status (1)

Country Link
CN (1) CN103942807A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578042A (en) * 2015-12-18 2016-05-11 深圳市金立通信设备有限公司 Image data transmission method and terminal
CN105791664A (en) * 2014-12-23 2016-07-20 中国移动通信集团公司 Terminal photographing processing method, device and terminal
CN106157305A (en) * 2016-06-30 2016-11-23 北京大学 High-dynamics image rapid generation based on local characteristics
CN106294681A (en) * 2016-08-05 2017-01-04 腾讯科技(深圳)有限公司 The methods, devices and systems of multiple-exposure
CN106485689A (en) * 2016-10-10 2017-03-08 努比亚技术有限公司 A kind of image processing method and device
CN108174114A (en) * 2017-12-08 2018-06-15 上海集成电路研发中心有限公司 Entropy computing device and entropy computational methods
CN109584193A (en) * 2018-10-24 2019-04-05 航天时代飞鸿技术有限公司 A kind of unmanned plane based on target preextraction is infrared and visible light image fusion method
CN110398289A (en) * 2019-07-30 2019-11-01 清华大学 A kind of image-pickup method and image collecting device
CN107203985B (en) * 2017-05-18 2019-11-08 北京联合大学 A kind of more exposure image fusion methods under end-to-end deep learning frame
WO2020211334A1 (en) * 2019-04-15 2020-10-22 Zhejiang Dahua Technology Co., Ltd. Methods and systems for image combination

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791664A (en) * 2014-12-23 2016-07-20 中国移动通信集团公司 Terminal photographing processing method, device and terminal
CN105578042A (en) * 2015-12-18 2016-05-11 深圳市金立通信设备有限公司 Image data transmission method and terminal
CN105578042B (en) * 2015-12-18 2019-04-30 深圳市金立通信设备有限公司 A kind of transmission method and terminal of image data
CN106157305B (en) * 2016-06-30 2019-02-15 北京大学 High-dynamics image rapid generation based on local characteristics
CN106157305A (en) * 2016-06-30 2016-11-23 北京大学 High-dynamics image rapid generation based on local characteristics
CN106294681A (en) * 2016-08-05 2017-01-04 腾讯科技(深圳)有限公司 The methods, devices and systems of multiple-exposure
US10839496B2 (en) 2016-08-05 2020-11-17 Tencent Technology (Shenzhen) Company Limited Multiple exposure method, terminal, system, and computer readable storage medium
CN106485689A (en) * 2016-10-10 2017-03-08 努比亚技术有限公司 A kind of image processing method and device
CN106485689B (en) * 2016-10-10 2019-08-30 努比亚技术有限公司 A kind of image processing method and device
CN107203985B (en) * 2017-05-18 2019-11-08 北京联合大学 A kind of more exposure image fusion methods under end-to-end deep learning frame
CN108174114A (en) * 2017-12-08 2018-06-15 上海集成电路研发中心有限公司 Entropy computing device and entropy computational methods
CN109584193A (en) * 2018-10-24 2019-04-05 航天时代飞鸿技术有限公司 A kind of unmanned plane based on target preextraction is infrared and visible light image fusion method
WO2020211334A1 (en) * 2019-04-15 2020-10-22 Zhejiang Dahua Technology Co., Ltd. Methods and systems for image combination
US11887284B2 (en) 2019-04-15 2024-01-30 Zhejiang Dahua Technology Co., Ltd. Methods and systems for image combination
CN110398289A (en) * 2019-07-30 2019-11-01 清华大学 A kind of image-pickup method and image collecting device

Similar Documents

Publication Publication Date Title
CN103942807A (en) Real-time processing fast image block fusion system and fusion method
CN102158653B (en) Device and method for acquiring digital image with high dynamic range in real time
CN101739672B (en) A kind of histogram equalizing method based on sub-regional interpolation and device
CN103413286A (en) United reestablishing method of high dynamic range and high-definition pictures based on learning
CN111292264A (en) Image high dynamic range reconstruction method based on deep learning
CN109389569B (en) Monitoring video real-time defogging method based on improved DehazeNet
WO2018113502A1 (en) Method for automatically generating grid and multi-level of detail of shader
CN109255758A (en) Image enchancing method based on full 1*1 convolutional neural networks
Wang et al. Interactive level-of-detail selection using image-based quality metric for large volume visualization
CN113870124B (en) Weak supervision-based double-network mutual excitation learning shadow removing method
CN106952304A (en) A kind of depth image computational methods of utilization video sequence interframe correlation
CN112417752A (en) Cloud layer track prediction method and system based on convolution LSTM neural network
CN115658776A (en) Method for generating national 1km carbon emission spatial distribution map by combining multi-source data
CN108520347A (en) Panoptic visualization grid voltage quality methods of exhibiting, system and computer equipment
CN109300083B (en) Wallis color homogenizing method and device through block processing
CN117197627B (en) Multi-mode image fusion method based on high-order degradation model
CN107369138B (en) Image optimization display method based on high-order statistical model
Ma et al. A fast video haze removal algorithm via dark channel prior
CN111047654A (en) High-definition high-speed video background modeling method based on color information
CN103177420B (en) Based on image magnification method and the device of local features correlativity
CN114565537B (en) Infrared imaging device based on local information entropy
US20230022715A1 (en) Dynamic histogram builder
CN115589455A (en) Night video image enhancement system based on FPGA + ARM
CN113947643A (en) Method, device and equipment for reconstructing RGB image into hyperspectral image and storage medium
Bu Graphic design elements based on image processing in interior landscape design

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

Application publication date: 20140723

RJ01 Rejection of invention patent application after publication