CN106780396B - Method for eliminating image seam - Google Patents

Method for eliminating image seam Download PDF

Info

Publication number
CN106780396B
CN106780396B CN201611269994.2A CN201611269994A CN106780396B CN 106780396 B CN106780396 B CN 106780396B CN 201611269994 A CN201611269994 A CN 201611269994A CN 106780396 B CN106780396 B CN 106780396B
Authority
CN
China
Prior art keywords
average
seam
image
joint
average brightness
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
Application number
CN201611269994.2A
Other languages
Chinese (zh)
Other versions
CN106780396A (en
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.)
Shanghai IC R&D Center Co Ltd
Chengdu Image Design Technology Co Ltd
Original Assignee
Shanghai Integrated Circuit Research and Development Center Co Ltd
Chengdu Image Design Technology Co Ltd
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 Shanghai Integrated Circuit Research and Development Center Co Ltd, Chengdu Image Design Technology Co Ltd filed Critical Shanghai Integrated Circuit Research and Development Center Co Ltd
Priority to CN201611269994.2A priority Critical patent/CN106780396B/en
Publication of CN106780396A publication Critical patent/CN106780396A/en
Application granted granted Critical
Publication of CN106780396B publication Critical patent/CN106780396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T5/77
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction

Abstract

The invention discloses a method for eliminating image seams, which comprises the steps of correcting an original image by collecting a completely black image to obtain a new image, selecting certain widths on the left side and the right side of each seam as the average seam area on the left side or the right side of the new image at the seam position of the new image, respectively calculating the average brightness value of the average seam areas on the left side and the right side of each seam, finally calculating the average brightness difference of the average seam areas on the left side and the right side of each seam and compensating the average brightness difference to all pixels on one side of each seam, so as to achieve the effect of optimizing the image and achieve the purpose of eliminating the image seams.

Description

Method for eliminating image seam
Technical Field
The invention belongs to the technical field of image processing, and particularly relates to a method for eliminating image seams.
Background
In the image imaging and splicing process, the problem of inconsistent brightness among channels is caused by inconsistent circuit bias and gain of each channel, so that the image looks like an obvious splicing gap. The prior art improves the method by adjusting the AD gains (numerical analog gain) at the left and right sides of the seam to achieve the effect of consistent brightness at the two sides of the seam. However, in the actual process, since no definite adjustment value exists, the adjustment is performed for a plurality of times only by experience and vision, which is not only time-consuming, but also difficult to be adjusted to be consistent in operation.
Disclosure of Invention
The invention aims to overcome the defects and provides a method for eliminating image splicing seams, which can automatically compensate the brightness difference between channels and optimize the image effect.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a method for eliminating image seams specifically comprises the following steps:
step S01: collecting a complete black image to correct the original image to obtain a new image;
step S02: selecting certain widths at the left and right sides of the joint as the average joint area on the left side or the right side of the joint at the joint of the new image, and respectively calculating the average brightness value of the average joint area on the left side of the joint and the average brightness value of the average joint area on the right side of the joint;
step S03: calculating the average brightness difference of the left side and the right side of the edge joint according to the average brightness value of the average area of the edge joint on the left side or the right side of the edge joint;
step S04: and making up the average brightness difference of the left side and the right side of the seam to all pixels on one side of the seam.
Preferably, in step S01, the full black image is acquired by closing an aperture.
Preferably, in step S01, the new image is obtained by subtracting the brightness of each pixel corresponding to the black image from the brightness of each pixel of the original image.
Preferably, in step S02, the average brightness value of the average region of the left or right edge of the seam is equal to the sum of the brightness of the pixels in the average region of the left or right edge of the seam divided by the number of pixels in the average region of the left or right edge of the seam.
According to the technical scheme, the original image is corrected by collecting the all-black image to obtain a new image, certain widths of the left side and the right side of the joint are selected as the average joint areas on the left side or the right side of the joint at the joint of the new image, the average brightness values of the average joint areas on the left side and the right side of the joint are calculated respectively, and finally the average brightness difference of the average joint areas on the left side and the right side of the joint is calculated and compensated to all pixels on one side of the joint, so that the image optimization effect is achieved, and the purpose of eliminating the image joint is achieved.
Drawings
FIG. 1 is a flow chart of a method for eliminating image seams according to the present invention;
FIG. 2 is a schematic diagram of the structure of pixel differences on the left and right sides of an image seam.
Detailed Description
The present invention will be described in further detail with reference to specific examples.
In the following detailed description of the embodiments of the present invention, in order to clearly illustrate the structure of the present invention and to facilitate explanation, the structure shown in the drawings is not drawn to a general scale and is partially enlarged, deformed and simplified, so that the present invention should not be construed as limited thereto.
Referring to fig. 1, fig. 1 is a flowchart of a method for eliminating an image seam according to the present invention, and fig. 2 is a schematic structural diagram of pixel differences between left and right sides of the image seam, which further describes in detail an embodiment of the present invention. The invention discloses a method for eliminating image seams, which comprises the following steps:
step S01: and collecting a complete black image to correct the original image to obtain a new image.
Because the brightness difference of the original image at the seam is larger, even if the method of average brightness is adopted in the area with a certain width at the left and the right of the seam, the error is larger, and the satisfactory effect cannot be achieved, therefore, the invention firstly corrects the original image, weakens the brightness difference at two sides of the seam to the greatest extent, and improves the precision of eliminating the seam. In this embodiment, when acquiring an image, the aperture is closed first, and an all-black image under an opaque condition is acquired, and then the brightness of each pixel corresponding to the all-black image is subtracted from the brightness of each pixel of the original image to obtain a new image. The new image has the same pixel resolution as the original image. The new image shown in fig. 2 has a height h, i.e. h rows of pixels.
Step S02: selecting certain widths at the left and right sides of the joint as the average joint area on the left side or the right side of the joint at the joint of the new image, and respectively calculating the average brightness value of the average joint area on the left side of the joint and the average brightness value of the average joint area on the right side of the joint;
please refer to fig. 2. As shown, on the left side of the splice 01, the width w is selectedLThe strip with height h is used as the average region of the left edge of the seam, and similarly, the strip with width w is selected on the right side of the seam 01RAnd the strip with the height h is used as the average region of the left edge seam. The width of the seam average region should be small, and if the width is too large, the calculation error is increased. And then respectively calculating the average brightness value of the average area of the left edge of the seam and the average brightness value of the average area of the right edge of the seam.
The average brightness value of the seam left side or right side average area is equal to the sum of the brightness of the pixels in the seam left side or right side average area divided by the number of the pixels in the seam left side or right side average area. The algorithm for realizing the average brightness value by using the program can adopt the following specific steps:
step S021: and calculating the line average brightness value in the average region of the left or right edge joint of the ith line of the joint by using the brightness of each pixel in the average region of the left or right edge joint of the ith line. Specifically, the average brightness value of the line in the average region of the left or right seam of the ith line is obtained by summing the brightness of each pixel in the average region of the left or right seam of the ith line and dividing the sum by the width (column number) of the average region of the left or right seam, as shown in the following formula
Figure BDA0001199082940000031
Figure BDA0001199082940000032
Where I (I, k) is the luminance value of the ith row and kth column of pixels, and it is assumed that the unit adjacent to the left side of the seam is the jth column, the unit adjacent to the right side of the seam is the j +1 th column, and j is a constant value, as shown in FIG. 2, ML(i) And MR(i) The average brightness values of the lines in the average region of the seam on the left side and the right side of the ith line of the seam are respectively.
Step S022: and repeating the step S011 to respectively obtain the average brightness value of the lines in the average region of the left or right edges of all the lines.
Step S023: and calculating the average brightness value of the average region of the left or right edges of the seams by using the average brightness value of the lines in the average region of the left or right edges of the seams. Specifically, the average brightness values of the lines in the average region of the left or right edge joint of each line are summed and then divided by the number of lines to obtain the average brightness value of the average region of the left or right edge joint of the edge joint, which is shown in the following formula.
Figure BDA0001199082940000041
Wherein M isLTAnd MRTIs the average luminance value of the average region of the left and right edges of the seam, and h is the pixel height of the image, i.e., the number of lines.
Similarly, the average brightness value of the columns of the left or right seam average area of the seam is calculated, then the average brightness values of all the columns of the left or right seam average area of the seam are calculated, then the average brightness values of the columns in the left or right seam average area of each column are summed and divided by the number of the columns, and the average brightness value of the left or right seam average area of the seam can also be calculated. Of course, there may be other specific procedures for calculating the average brightness value, and the method and the device are within the scope of the present invention as long as the method and the device do not depart from the spirit of the present invention.
On the basis of the step S01, the step S02 is performed, so that not only all image features of the original image can be retained, but also the accuracy of eliminating the seam can be improved, and a better effect can be achieved, so as to achieve the purpose of eliminating the seam.
Step S03: and calculating the average brightness difference of the left side and the right side of the edge joint according to the average brightness value of the average area of the edge joint on the left side or the right side of the edge joint.
Calculating the average brightness difference of the left and right sides of the seam by using the average brightness value of the average area of the left or right side of the seam, which is shown in the following formula
m=MLT-MRT
Wherein m is the average brightness difference of the average regions of the left and right edges of the seam.
Step S04: and making up the average brightness difference of the average regions of the left and right edges of the seam to all pixels on one side of the seam.
Specifically, the average brightness value can be subtracted from all pixels on the edge joint side with high pixels, or the average brightness value can be added to all pixels on the edge joint side with low pixels, so that the brightness of the two sides of the edge joint is adjusted, the brightness of the two sides of the edge joint is the same, and the purpose of eliminating the edge joint is achieved.
In summary, the invention can automatically identify the brightness difference and adjust the brightness near the seam by weakening the seam, then calculating the average brightness difference of the seam average areas at the left and right sides of the seam and making up the average brightness difference to all pixels at one side of the seam, namely automatically completing the making up of the brightness difference between channels, thereby achieving the purpose of eliminating image seams and optimizing the image effect.
The above description is only an embodiment of the present invention, and the embodiment is not intended to limit the scope of the present invention, so that all equivalent structural changes made by using the contents of the specification and the drawings of the present invention should be included in the scope of the present invention.

Claims (4)

1. A method for eliminating image seams is characterized by comprising the following steps:
step S01: collecting a complete black image to correct the original image to obtain a new image;
step S02: selecting certain widths at the left and right sides of the joint as the average joint area on the left side or the right side of the joint at the joint of the new image, and respectively calculating the average brightness value of the average joint area on the left side of the joint and the average brightness value of the average joint area on the right side of the joint;
step S03: calculating the average brightness difference of the left side and the right side of the edge joint according to the average brightness value of the average area of the edge joint on the left side or the right side of the edge joint;
step S04: and making up the average brightness difference of the left side and the right side of the seam to all pixels on one side of the seam.
2. The method for eliminating image seams according to claim 1, wherein in step S01, the all black image is acquired by closing an aperture.
3. The method according to claim 2, wherein in step S01, the new image is obtained by subtracting the brightness of each pixel corresponding to the black image from the brightness of each pixel of the original image.
4. The method according to claim 1, wherein in step S02, the average brightness value of the average region of the left or right edge of the seam is equal to the sum of the brightness of the pixels in the average region of the left or right edge of the seam divided by the number of pixels in the average region of the left or right edge of the seam.
CN201611269994.2A 2016-12-30 2016-12-30 Method for eliminating image seam Active CN106780396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611269994.2A CN106780396B (en) 2016-12-30 2016-12-30 Method for eliminating image seam

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611269994.2A CN106780396B (en) 2016-12-30 2016-12-30 Method for eliminating image seam

Publications (2)

Publication Number Publication Date
CN106780396A CN106780396A (en) 2017-05-31
CN106780396B true CN106780396B (en) 2020-01-10

Family

ID=58952604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611269994.2A Active CN106780396B (en) 2016-12-30 2016-12-30 Method for eliminating image seam

Country Status (1)

Country Link
CN (1) CN106780396B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279857B (en) * 2017-12-29 2021-09-10 广东创捷智能科技有限公司 Zero-splicing-seam liquid crystal splicing screen with integrated pixel filling based on HDbaseT signal transmission
CN112289209B (en) * 2020-10-20 2022-08-23 长春希达电子技术有限公司 LED display box body and display screen abutted pixel interval brightness correction method
CN112700382B (en) * 2020-12-23 2024-03-26 杭州海康微影传感科技有限公司 Image seam elimination method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004069673A (en) * 2002-06-11 2004-03-04 Nec Corp Visual inspection apparatus and method thereof
CN1601559A (en) * 2004-10-21 2005-03-30 武汉大学 Correspond rediation correction method for push-scanning satellite images CCD
CN101640038A (en) * 2009-08-26 2010-02-03 广东威创视讯科技股份有限公司 Display device colour luminance compensation method, device and system
CN102708558A (en) * 2012-06-01 2012-10-03 惠州华阳通用电子有限公司 Video image mosaic device, mosaic method and video surveillance system
CN103647911A (en) * 2013-11-15 2014-03-19 天津天地伟业数码科技有限公司 Image seamless splicing method based on black-level adjustment
CN104376531A (en) * 2014-12-11 2015-02-25 重庆地质仪器厂 Image splicing method and system
CN104966493A (en) * 2015-07-31 2015-10-07 西安诺瓦电子科技有限公司 Method for compensating spliced bright and dark lines
CN106127690A (en) * 2016-07-06 2016-11-16 李长春 A kind of quick joining method of unmanned aerial vehicle remote sensing image

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7324704B2 (en) * 2003-09-11 2008-01-29 Primax Electronics Ltd. Method of repairing scratches in digital images

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004069673A (en) * 2002-06-11 2004-03-04 Nec Corp Visual inspection apparatus and method thereof
CN1601559A (en) * 2004-10-21 2005-03-30 武汉大学 Correspond rediation correction method for push-scanning satellite images CCD
CN101640038A (en) * 2009-08-26 2010-02-03 广东威创视讯科技股份有限公司 Display device colour luminance compensation method, device and system
CN102708558A (en) * 2012-06-01 2012-10-03 惠州华阳通用电子有限公司 Video image mosaic device, mosaic method and video surveillance system
CN103647911A (en) * 2013-11-15 2014-03-19 天津天地伟业数码科技有限公司 Image seamless splicing method based on black-level adjustment
CN104376531A (en) * 2014-12-11 2015-02-25 重庆地质仪器厂 Image splicing method and system
CN104966493A (en) * 2015-07-31 2015-10-07 西安诺瓦电子科技有限公司 Method for compensating spliced bright and dark lines
CN106127690A (en) * 2016-07-06 2016-11-16 李长春 A kind of quick joining method of unmanned aerial vehicle remote sensing image

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"Algorithm of edge blending based on the nonlinear function";Li Feng et al.;《2009 IEEE International Conference on Intelligent Computing and Intelligent Systems》;20091228;全文 *
"一种消除图像拼接痕迹的新方法";宋宝森 等;《计算机科学》;20110228;全文 *
"图像拼接融合技术中去鬼影及裂缝方法研究";宋振兴;《中国优秀硕士学位论文全文数据库信息科技辑》;20130415;全文 *
"基于亮度统一的加权融合图像拼接算法";王帅 等;《山东科学》;20140630;全文 *

Also Published As

Publication number Publication date
CN106780396A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106780396B (en) Method for eliminating image seam
US9530194B2 (en) Method for processing highlights and saturated regions in a digital image
US8165419B2 (en) Histogram stretching apparatus and histogram stretching method for enhancing contrast of image
US20150172620A1 (en) Optimal dynamic seam adjustment system and method for image stitching
CN111161172B (en) Infrared image column direction stripe eliminating method, system and computer storage medium
CN111369660B (en) Seamless texture mapping method of three-dimensional model
CN103475828A (en) Method for rectifying missing pixels and image sensor
US20140071228A1 (en) Color correction apparatus for panorama video stitching and method for selecting reference image using the same
CN110033414B (en) Infrared image non-uniformity correction method and system based on averaging processing
US8823841B2 (en) Method and apparatus for correcting for vignetting in an imaging system
DE112016001871T5 (en) Image processing apparatus, image processing method and program
US20170195520A1 (en) Image processing method, apparatus, and image forming device
CN107025641A (en) Image interfusion method based on Analysis of Contrast
CN104794680A (en) Multi-camera image mosaicking method and multi-camera image mosaicking device based on same satellite platform
US11024015B2 (en) Image processing apparatus and distortion correction coefficient calculation method
CN103985089B (en) With reference to weight edge analysis and the image streak correction method of frame inner iteration
US20220207661A1 (en) Image Descattering Method Based on Iterative Optimization of Atmospheric Transmission Matrix
CN108520499B (en) Image offset correction method based on white-band microscopic imaging
CN107945196B (en) Image edge detection method for aerial photography correction image splicing
CN114079735B (en) Image compensation system for fixed image noise
CN113487516B (en) Defogging processing method for image data
US20220051369A1 (en) Method and system for compensating image having fixed pattern noise
CN111998961B (en) Infrared focal plane non-uniformity correction method based on pixel point temperature drift estimation
CN115100078A (en) Method for correcting and filling dot matrix coordinates in curved screen image and related device
CN115720299A (en) Black level correction method and device, computer readable storage medium and terminal

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