CN112017117A - Panoramic image acquisition method and system based on thermal infrared imager - Google Patents
Panoramic image acquisition method and system based on thermal infrared imager Download PDFInfo
- Publication number
- CN112017117A CN112017117A CN202010797974.2A CN202010797974A CN112017117A CN 112017117 A CN112017117 A CN 112017117A CN 202010797974 A CN202010797974 A CN 202010797974A CN 112017117 A CN112017117 A CN 112017117A
- Authority
- CN
- China
- Prior art keywords
- image
- images
- infrared thermal
- matrix
- thermal imager
- 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
Images
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/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
-
- 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/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4038—Image mosaicing, e.g. composing plane images from plane sub-images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2200/00—Indexing scheme for image data processing or generation, in general
- G06T2200/32—Indexing scheme for image data processing or generation, in general involving image mosaicing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明属于红外成像技术领域,更具体地,涉及一种基于红外热像仪的全景图像获取方法及系统。The invention belongs to the technical field of infrared imaging, and more particularly, relates to a panoramic image acquisition method and system based on an infrared thermal imager.
背景技术Background technique
受红外器件尺寸限制,红外热像仪视场角一般较小,对于正常大小的物体,红外可以方便地对目标进行拍照和测温,但是对于大型建筑目标,则难以通过单次拍照获取建筑全貌。Limited by the size of the infrared device, the field of view of the infrared thermal imager is generally small. For objects of normal size, infrared can easily take pictures and measure the temperature of the target, but for large building targets, it is difficult to obtain the whole picture of the building through a single photo. .
在拍摄大型建筑物时,可见光相机可直接采用广角镜头进行拍摄,并能取得较好的拍摄效果。而对于红外热像仪,因其一般需具备测温功能,而测温曲线能准确标定的前提,是整个探测器面阵的所有像元对于外界红外辐射的接受能力相同或接近,但很明显广角镜头不具备此特性。因此,额外配备广角镜头来辅助普通热像仪产品进行大建筑目标的全景拍照,不但成本高,且难以保证测温精度。When shooting large buildings, visible light cameras can directly use wide-angle lenses to shoot, and can achieve better shooting results. For the infrared thermal imager, it generally needs to have the temperature measurement function, and the premise that the temperature measurement curve can be accurately calibrated is that all the pixels of the entire detector area array have the same or similar ability to accept external infrared radiation, but it is obvious Wide angle lenses do not have this feature. Therefore, additionally equipped with a wide-angle lens to assist ordinary thermal imager products to take panoramic photos of large architectural targets, not only is expensive, but also difficult to ensure temperature measurement accuracy.
发明内容SUMMARY OF THE INVENTION
针对现有技术的至少一个缺陷或改进需求,本发明提供了一种基于红外热像仪的全景图像获取方法及系统,在普通热像仪上实现对大画幅目标建筑的整体观察、测温功能。In view of at least one defect or improvement requirement of the prior art, the present invention provides a panoramic image acquisition method and system based on an infrared thermal imager, which realizes the overall observation and temperature measurement functions of a large-format target building on a common thermal imager. .
为实现上述目的,按照本发明的第一方面,提供了一种基于红外热像仪的全景图像获取方法,包括:对目标进行多次红外热成像,获取N幅图像,N为预设值,且该N幅图像互相之间存在重叠区域,对该N幅图像进行拼接,得到全景图像;In order to achieve the above object, according to the first aspect of the present invention, there is provided a panoramic image acquisition method based on an infrared thermal imager, comprising: performing infrared thermal imaging on a target for multiple times, and acquiring N images, where N is a preset value, And there is an overlapping area between the N images, and the N images are spliced to obtain a panoramic image;
其中拼接包括步骤:The splicing includes steps:
将待拼接的两幅图像记为第一图像和第二图像,运用FAST算法分别提取第一图像的第一特征点和第二图像的第二特征点;The two images to be spliced are recorded as the first image and the second image, and the FAST algorithm is used to extract the first feature point of the first image and the second feature point of the second image respectively;
分别对获取的第一特征点和第二特征点进行非极大值抑制处理,分别得到第一局部最大点和第二局部最大点;Perform non-maximum suppression processing on the acquired first feature point and the second feature point, respectively, to obtain the first local maximum point and the second local maximum point;
利用ORB描述算法分别对第一局部最大点和第二局部最大点进行特征描述,分别生成第一特征点的第一描述子和第二特征点的第二描述子;The ORB description algorithm is used to describe the first local maximum point and the second local maximum point respectively, and the first descriptor of the first feature point and the second descriptor of the second feature point are respectively generated;
对第一特征点和第二特征点进行Hamming距离双向匹配;Perform Hamming distance bidirectional matching on the first feature point and the second feature point;
利用RANSAC准则对匹配结果进行进一步匹配,在此进一步匹配过程中求取透视变换模型T以及T的逆矩阵Tinv;The matching results are further matched using the RANSAC criterion, and the perspective transformation model T and the inverse matrix Tinv of T are obtained in this further matching process;
对第一图像进行扩边得到第一图像矩阵,并且初始化一个与第一图像矩阵等大的第二图像矩阵,根据逆矩阵Tinv对初始化的第二图像矩阵进行反向双线性插值运算,完成第二图像的坐标变换,将坐标变换后的第二图像存储在第二图像矩阵中;Expand the edges of the first image to obtain the first image matrix, initialize a second image matrix that is the same size as the first image matrix, and perform an inverse bilinear interpolation operation on the initialized second image matrix according to the inverse matrix Tinv, and complete The coordinate transformation of the second image, the second image after the coordinate transformation is stored in the second image matrix;
根据第一图像矩阵与第二图像矩阵的重合区域灰度均值的差值,对第二图像矩阵进行亮度值补偿;Perform luminance value compensation on the second image matrix according to the difference between the mean gray values of the overlapping regions of the first image matrix and the second image matrix;
统计第一图像矩阵与第二图像矩阵的拼接缝,根据拼接缝的位置初始化第一融合权重和第二融合权重,并且第一融合权重和第二融合权重与第一图像矩阵等大;Count the seams of the first image matrix and the second image matrix, initialize the first fusion weight and the second fusion weight according to the position of the seam, and the first fusion weight and the second fusion weight are equal to the first image matrix;
对第一融合权重和第二融合权重进行高斯平滑,并利用公式IM=IM1*W1+IM2*W2完成两幅图像的融合,得到融合图像IM,其中IM1为第一图像矩阵,IM2为第二图像矩阵,W1为第一融合权重,IM2为第二融合权重;Perform Gaussian smoothing on the first fusion weight and the second fusion weight, and use the formula IM=IM1*W1+IM2*W2 to complete the fusion of the two images to obtain a fusion image IM, where IM1 is the first image matrix, and IM2 is the second image matrix. Image matrix, W1 is the first fusion weight, IM2 is the second fusion weight;
以最小外接矩形对融合图像IM进行裁边处理得到拼接图像。The fused image IM is trimmed with the smallest circumscribed rectangle to obtain a stitched image.
优选的,步骤S1的成像过程中,获取红外热像仪的当前视野,在红外热像仪的操作界面的第一区域显示红外热像仪的当前视野,在红外热像仪的操作界面的第二区域以缩略图形式显示已经成像的图像,在红外热像仪的操作界面的第三区域显示用户操作提示。Preferably, in the imaging process of step S1, the current field of view of the infrared thermal imager is obtained, the current field of view of the infrared thermal imager is displayed in the first area of the operation interface of the infrared thermal imager, and the current field of view of the infrared thermal imager is displayed in the first area of the operation interface of the infrared thermal imager. The second area displays the image that has been imaged in the form of thumbnails, and the user operation prompt is displayed in the third area of the operation interface of the infrared thermal imager.
按照本发明的第二方面,提供了一种基于红外热像仪的全景图像获取系统,包括:According to a second aspect of the present invention, a panoramic image acquisition system based on an infrared thermal imager is provided, comprising:
红外热像仪,用于对目标进行多次红外热成像,获取N幅图像,N为预设值,且该N幅图像互相之间存在重叠区域;全景拼接模块,用于对N幅图像进行拼接,得到全景图像;The infrared thermal imager is used to perform multiple infrared thermal imaging on the target, and obtain N images, where N is a preset value, and the N images have overlapping areas with each other; the panoramic stitching module is used to perform the N images. Stitching to get a panoramic image;
该全景拼接模块包括:The panoramic stitching module includes:
特征点提取模块,用于将待拼接的两幅图像记为第一图像和第二图像,运用FAST算法分别提取第一图像的第一特征点和第二图像的第二特征点;The feature point extraction module is used to record the two images to be spliced as the first image and the second image, and uses the FAST algorithm to extract the first feature point of the first image and the second feature point of the second image respectively;
非极大值抑制处理模块,用于分别对获取的第一特征点和第二特征点进行非极大值抑制处理,分别得到第一局部最大点和第二局部最大点;The non-maximum value suppression processing module is used to perform non-maximum value suppression processing on the acquired first feature point and the second feature point respectively, and obtain the first local maximum point and the second local maximum point respectively;
描述子生成模块,用于利用ORB描述算法分别对第一局部最大点和第二局部最大点进行特征描述,分别生成第一特征点的第一描述子和第二特征点的第二描述子;A descriptor generating module is used to describe the first local maximum point and the second local maximum point respectively by using the ORB description algorithm, and respectively generate the first descriptor of the first feature point and the second descriptor of the second feature point;
粗匹配模块,用于对第一特征点和第二特征点进行Hamming距离双向匹配;The rough matching module is used to perform Hamming distance bidirectional matching on the first feature point and the second feature point;
精匹配模块,用于利用RANSAC准则对匹配结果进行进一步匹配,在此进一步匹配过程中求取透视变换模型T以及T的逆矩阵Tinv;The precise matching module is used to further match the matching results by using the RANSAC criterion, and in this further matching process, the perspective transformation model T and the inverse matrix Tinv of T are obtained;
坐标变化模块,用于对第一图像进行扩边得到第一图像矩阵,并且初始化一个与第一图像矩阵等大的第二图像矩阵,根据逆矩阵Tinv对初始化的第二图像矩阵进行反向双线性插值运算,完成第二图像的坐标变换,将坐标变换后的第二图像存储在第二图像矩阵中;The coordinate change module is used to expand the edge of the first image to obtain the first image matrix, and initialize a second image matrix that is the same size as the first image matrix, and perform reverse double on the initialized second image matrix according to the inverse matrix Tinv Linear interpolation operation, complete the coordinate transformation of the second image, and store the second image after the coordinate transformation in the second image matrix;
亮度补偿模块,用于根据第一图像矩阵与第二图像矩阵的重合区域灰度均值的差值,对第二图像矩阵进行亮度值补偿;a brightness compensation module, configured to perform brightness value compensation on the second image matrix according to the difference between the mean gray values of the overlapping regions of the first image matrix and the second image matrix;
融合权重初始化模块,用于统计第一图像矩阵与第二图像矩阵的拼接缝,根据拼接缝的位置初始化第一融合权重和第二融合权重,并且第一融合权重和第二融合权重与第一图像矩阵等大;The fusion weight initialization module is used to count the seams of the first image matrix and the second image matrix, initialize the first fusion weight and the second fusion weight according to the position of the seam, and the first fusion weight and the second fusion weight are the same as The first image matrix is the same size;
融合模块,对第一融合权重和第二融合权重进行高斯平滑,并利用公式IM=IM1*W1+IM2*W2完成两幅图像的融合,得到融合图像IM,其中IM1为第一图像矩阵,IM2为第二图像矩阵,W1为第一融合权重,IM2为第二融合权重;The fusion module performs Gaussian smoothing on the first fusion weight and the second fusion weight, and uses the formula IM=IM1*W1+IM2*W2 to complete the fusion of the two images to obtain a fusion image IM, where IM1 is the first image matrix, IM2 is the second image matrix, W1 is the first fusion weight, and IM2 is the second fusion weight;
拼接模块,用于以最小外接矩形对融合图像IM进行裁边处理得到拼接图像。The stitching module is used for trimming the fused image IM with the smallest circumscribed rectangle to obtain a stitched image.
优选的,所述红外热像仪还用于成像过程中,获取红外热像仪的当前视野,在红外热像仪的操作界面的第一区域显示红外热像仪的当前视野,在红外热像仪的操作界面的第二区域以缩略图形式显示已经成像的图像,在红外热像仪的操作界面的第三区域显示用户操作提示。Preferably, the infrared thermal imager is also used to obtain the current field of view of the infrared thermal imager during the imaging process, and displays the current field of view of the infrared thermal imager in the first area of the operation interface of the infrared thermal imager. The second area of the operation interface of the thermal imager displays the image that has been imaged in the form of thumbnails, and the user operation prompt is displayed in the third area of the operation interface of the infrared thermal imager.
总体而言,本发明与现有技术相比,在不增加硬件成本、基本不增加操作复杂度的基础上,实现用户对大型建筑物的全局观察和测温。通过本方案,用户能在保证图像质量、测温精度的基础上,获取更宽画幅的图像,有效提升了产品竞争力。具体来说,包括以下有益效果:In general, compared with the prior art, the present invention realizes the user's global observation and temperature measurement of large buildings on the basis of not increasing the hardware cost and basically not increasing the operational complexity. Through this solution, users can obtain wider-format images on the basis of ensuring image quality and temperature measurement accuracy, which effectively improves product competitiveness. Specifically, the following beneficial effects are included:
(1)系统成本低。本方案整个处理过程由软件算法完成,只需用户额外进行少量操作,无需添置任何外围硬件设备,即可在普通热像仪上实现对大画幅目标建筑的整体观察、测温功能。(1) The system cost is low. The entire processing process of this solution is completed by a software algorithm. Only a small amount of additional operation is required by the user, and no additional peripheral hardware equipment is required to realize the overall observation and temperature measurement of the large-format target building on an ordinary thermal imager.
(2)图像畸变小。相对于使用广角镜头获取超大画幅图像时的严重图像畸变,本方案通过全景拼接算法将原本拍摄到的多张子图像无缝合成一张大画幅图像,可保证图像无明显畸变。(2) The image distortion is small. Compared with the severe image distortion when using a wide-angle lens to obtain a large-format image, this solution seamlessly combines multiple sub-images originally captured into a large-format image through the panoramic stitching algorithm, which can ensure that the image has no obvious distortion.
(3)测温准确可靠。相对于广角镜头的测温曲线难以精确标定,本方案直接对普通镜头拍摄的子图像原始数据进行全景拼接,可生成16bit大画幅图像,理论上不影响测温结果的准确性。(3) The temperature measurement is accurate and reliable. Compared with the temperature measurement curve of the wide-angle lens, it is difficult to accurately calibrate the temperature measurement curve. This solution directly performs panoramic stitching on the raw data of the sub-image captured by the ordinary lens, and can generate a 16-bit large-format image, which theoretically does not affect the accuracy of the temperature measurement result.
附图说明Description of drawings
图1是本发明实施例的全景图像获取示意图;1 is a schematic diagram of a panoramic image acquisition according to an embodiment of the present invention;
图2是本发明实施例的成像操作界面示意图;2 is a schematic diagram of an imaging operation interface according to an embodiment of the present invention;
图3是本发明实施例的成像操作示意图;3 is a schematic diagram of an imaging operation according to an embodiment of the present invention;
图4是本发明实施例的拼接方法示意图;4 is a schematic diagram of a splicing method according to an embodiment of the present invention;
图5是本发明实施例的最小外接矩形裁边处理的示意图。FIG. 5 is a schematic diagram of a minimum circumscribed rectangle trimming process according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
本发明实施例的一种基于红外热像仪的全景图像获取方法,包括成像步骤和全景拼接步骤。成像步骤实现对目标进行多次红外热成像,获取N幅图像,N为任意大于或等于2的预设值,且该N幅图像互相之间存在重叠区域。全景拼接步骤实现对该N幅图像进行拼接,得到全景图像。全景拼接步骤可基于计算机软件实现。A panoramic image acquisition method based on an infrared thermal imager according to an embodiment of the present invention includes an imaging step and a panoramic stitching step. The imaging step realizes multiple infrared thermal imaging of the target, and obtains N images, where N is any preset value greater than or equal to 2, and the N images have overlapping areas with each other. The panorama stitching step realizes stitching the N images to obtain a panorama image. The panorama stitching step can be realized based on computer software.
以N为9,即3×3型全景拼接为例,其主要流程如图1所示:用户在使用带有全景拍照功能的红外热像仪时,通过菜单选项进入全景拍照模式,按操作提示控制红外热像仪在水平、垂直方向的不同视角位置,拍摄3×3共9幅互相之间存在30%左右重叠区域的子图像;通过WIFI或者数据线将子图像导入到计算机后,在红外分析软件上选择全景拼接,模块即可自动对所拍摄的子图像进行无缝拼接,生成1张大画幅的目标建筑全景图像。通过上述方案,用户可直接对目标建筑全景图像进行观察、测温等后续处理,从而能有效提升用户在使用热像仪拍摄大型建筑物时的用户体验。Taking N as 9, that is, 3×3 type panoramic stitching as an example, the main process is shown in Figure 1: when the user uses the infrared thermal imager with the panoramic photo function, he enters the panoramic photo mode through the menu option, and presses the operation prompts. Control the infrared thermal imager at different viewing angles in the horizontal and vertical directions, and shoot 3 × 3 sub-images with an overlap area of about 30% with each other; Select panorama stitching on the analysis software, and the module can automatically stitch the captured sub-images seamlessly to generate a large-format panoramic image of the target building. Through the above solution, the user can directly observe, measure the temperature and other subsequent processing of the panoramic image of the target building, thereby effectively improving the user experience when using the thermal imager to photograph large buildings.
优选的,红外热像仪的操作界面分为3个区域。成像过程中,获取红外热像仪的当前视野,在红外热像仪的操作界面的第一区域显示红外热像仪的当前视野,在红外热像仪的操作界面的第二区域以缩略图形式显示已经成像的图像,在红外热像仪的操作界面的第三区域显示用户操作提示。以对3×3共9幅子图拼接为例,用户通过菜单选项进入全景拍照模式,拍照过程中,红外热像仪的显示屏的操作界面如图2所示,然后用户按图3所示流程进行全景拍照。Preferably, the operation interface of the infrared thermal imager is divided into three areas. During the imaging process, the current field of view of the infrared thermal imager is obtained, the current field of view of the infrared thermal imager is displayed in the first area of the operation interface of the infrared thermal imager, and the second area of the operation interface of the infrared thermal imager is displayed in the form of a thumbnail The image that has been imaged is displayed, and a user operation prompt is displayed in the third area of the operation interface of the infrared thermal imager. Taking the stitching of 9 sub-images of 3×3 as an example, the user enters the panoramic photo mode through the menu option. During the photo-taking process, the operation interface of the display screen of the infrared thermal imager is shown in Figure 2, and then the user presses Figure 3. Process to take a panoramic photo.
获取N幅图像后,对N幅图像进行拼接的流程包括:After acquiring N images, the process of stitching N images includes:
优选的,对该N幅图像进行拼接包括步骤:Preferably, stitching the N images includes the steps:
S1,读取该N幅图像中的2幅图像进行拼接,获得拼接图像。S1, read two images in the N images for splicing to obtain a spliced image.
S2,若N>2,则继续读取该N幅图像中的未完成拼接的图像,将未完成拼接的图像与前次得到的拼接图像进行拼接。即将未完成拼接的图像与步骤S1得到的拼接图像进行拼接。S2, if N>2, continue to read the unstitched images in the N images, and stitch the unstitched images with the stitched images obtained last time. That is, the image that has not been stitched is stitched with the stitched image obtained in step S1.
S3,若N>3,则重复执行步骤S2,直至完成N幅图像的拼接,得到全景图像。即将未完成拼接的图像与上次步骤S2得到的拼接图像进行拼接,如此循环执行拼接,直至完成N幅图像的拼接。S3, if N>3, repeat step S2 until the stitching of N images is completed, and a panoramic image is obtained. That is, the image that has not been stitched is stitched with the stitched image obtained in the previous step S2, and the stitching is performed cyclically in this way until the stitching of N images is completed.
优选的,上述步骤S1、S2和S3中,拼接方法如图4所示,包括步骤:Preferably, in the above steps S1, S2 and S3, the splicing method is shown in Figure 4, including the steps:
(1)将待拼接的2幅图像记为Image1和Image2,运用FAST算法分别提取图像Image1的特征点points1和图像Image2的特征点points2;若特征点数量不满足预设要求,则调整FAST算法特征点提取阈值重新进行提取。(1) Denote the two images to be spliced as Image1 and Image2, and use the FAST algorithm to extract the feature points points1 of the image Image1 and the feature points2 of the image Image2 respectively; if the number of feature points does not meet the preset requirements, adjust the FAST algorithm features Click the extraction threshold to re-extract.
(2)对获取的特征点points1、points2进行非极大值抑制处理,得到局部最大点loc1、loc2。(2) Perform non-maximum suppression processing on the acquired feature points points1 and points2 to obtain local maximum points loc1 and loc2.
(3)利用ORB描述算法分别对局部最大点loc1、loc2进行特征描述,分别生成特征点points1的描述子Des1和特征点points2的描述子Des2。(3) The ORB description algorithm is used to describe the local maximum points loc1 and loc2 respectively, and the descriptor Des1 of the feature point points1 and the descriptor Des2 of the feature point points2 are generated respectively.
(4)对特征点points1和points2进行Hamming(汉明距离)双向匹配,若匹配点对数目过少,则调整汉明匹配阈值重新匹配。(4) Perform Hamming (Hamming distance) two-way matching on the feature points points1 and points2. If the number of matching point pairs is too small, adjust the Hamming matching threshold to re-match.
(5)利用RANSAC(随机采样一致性)准则对Hamming匹配结果进行进一步的精匹配,在精匹配过程中求取透视变换模型T,以及T的逆矩阵Tinv。(5) Use RANSAC (Random Sampling Consistency) criterion to perform further precise matching on the Hamming matching results, and obtain the perspective transformation model T and the inverse matrix Tinv of T in the precise matching process.
(6)对Image1进行Padding(扩边)得到图像矩阵IM1,同时初始化一个与图像矩阵IM1等大的图像矩阵IM2,根据逆矩阵Tinv对初始化的图像IM2进行反向双线性插值运算,完成图像Image2的坐标变换,将坐标变换后的图像Image2存储在图像矩阵IM2中。(6) Perform Padding (edge expansion) on Image1 to obtain the image matrix IM1, and initialize an image matrix IM2 that is the same size as the image matrix IM1, and perform reverse bilinear interpolation on the initialized image IM2 according to the inverse matrix Tinv to complete the image. For the coordinate transformation of Image2, the image Image2 after the coordinate transformation is stored in the image matrix IM2.
(7)根据图像矩阵IM1与图像矩阵IM2的重合区域灰度均值的差值,对图像矩阵IM2进行亮度值补偿。(7) Perform luminance value compensation on the image matrix IM2 according to the difference between the mean gray values of the overlapping regions of the image matrix IM1 and the image matrix IM2.
(8)统计图像矩阵IM1与图像矩阵IM2的拼接缝,根据拼接缝的位置初始化融合权重W1、W2,并且权重W1、W2与图像矩阵IM1等大。(8) Count the seams of the image matrix IM1 and the image matrix IM2, initialize the fusion weights W1 and W2 according to the positions of the seams, and the weights W1 and W2 are equal to the image matrix IM1.
(9)对权重W1、W2进行高斯平滑,并利用公式IM=IM1*W1+IM2*W2完成两幅图像的融合,得到融合图像IM。(9) Perform Gaussian smoothing on the weights W1 and W2, and use the formula IM=IM1*W1+IM2*W2 to complete the fusion of the two images to obtain a fusion image IM.
(10)如图5所示,以最小外接矩形对融合图像IM进行裁边处理得到拼接图像PIC。(10) As shown in Fig. 5, the fused image IM is trimmed with the minimum circumscribed rectangle to obtain the stitched image PIC.
本发明实施例的一种基于红外热像仪的全景图像获取系统,包括全景拍照模块和全景拼接模块。全景拍照模块即红外热像仪。全景拍照模块用于对目标进行多次红外热成像,获取N幅图像,N为预设值,且该N幅图像互相之间存在重叠区域。全景拼接模块,用于对N幅图像进行拼接,得到全景图像。A panoramic image acquisition system based on an infrared thermal imager according to an embodiment of the present invention includes a panoramic photographing module and a panoramic stitching module. The panoramic camera module is an infrared thermal imager. The panoramic camera module is used to perform multiple infrared thermal imaging on the target to obtain N images, where N is a preset value, and the N images have overlapping areas with each other. The panoramic stitching module is used to stitch N images to obtain a panoramic image.
该全景拼接模块包括:The panoramic stitching module includes:
特征点提取模块,用于将待拼接的2幅图像记为Image1和Image2,分别提取图像Image1的特征点points1和图像Image2的特征点points2;The feature point extraction module is used to record the two images to be spliced as Image1 and Image2, and extract the feature points points1 of the image Image1 and the feature points2 of the image Image2 respectively;
非极大值抑制处理模块,用于分别对获取的特征点points1、points2进行非极大值抑制处理,分别得到局部最大点loc1和loc2;The non-maximum suppression processing module is used to perform non-maximum suppression processing on the acquired feature points points1 and points2 respectively, and obtain the local maximum points loc1 and loc2 respectively;
描述子生成模块,用于利用ORB描述算法分别对局部最大点loc1、loc2进行特征描述,分别生成特征点points1的描述子Des1和特征点points2的描述子Des2;The descriptor generation module is used to describe the local maximum points loc1 and loc2 respectively by using the ORB description algorithm, and respectively generate the descriptor Des1 of the feature point points1 and the descriptor Des2 of the feature point points2;
粗匹配模块,用于对特征点points1和points2进行Hamming距离双向匹配;Coarse matching module, used for bidirectional matching of Hamming distance between feature points points1 and points2;
精匹配模块,用于利用RANSAC准则对匹配结果进行进一步的进一步匹配,在进一步匹配过程中求取透视变换模型T以及T的逆矩阵Tinv;The precise matching module is used to further match the matching results by using the RANSAC criterion, and obtain the perspective transformation model T and the inverse matrix Tinv of T in the further matching process;
坐标变化模块,用于对图像Image1进行扩边得到图像矩阵IM1,并且初始化一个与图像矩阵IM1等大的图像矩阵IM2,根据逆矩阵Tinv对初始化的图像IM2进行反向双线性插值运算,完成图像Image2的坐标变换,将坐标变换后的图像Image2存储在图像矩阵IM2中;The coordinate change module is used to expand the image Image1 to obtain the image matrix IM1, and initialize an image matrix IM2 that is the same size as the image matrix IM1, and perform the reverse bilinear interpolation operation on the initialized image IM2 according to the inverse matrix Tinv, and complete The coordinate transformation of the image Image2, and the image Image2 after the coordinate transformation is stored in the image matrix IM2;
亮度补偿模块,用于根据图像矩阵IM1与图像矩阵IM2的重合区域灰度均值的差值,对图像矩阵IM2进行亮度值补偿;a brightness compensation module, configured to compensate the brightness value of the image matrix IM2 according to the difference between the average gray values of the overlapping regions of the image matrix IM1 and the image matrix IM2;
融合权重初始化模块,用于统计图像矩阵IM1与图像矩阵IM2的拼接缝,根据拼接缝的位置初始化融合权重W1、W2,并且权重W1、W2与图像矩阵IM1等大;The fusion weight initialization module is used to count the seam between the image matrix IM1 and the image matrix IM2, and initialize the fusion weights W1 and W2 according to the position of the seam, and the weights W1 and W2 are equal to the image matrix IM1;
融合模块,用于对权重W1、W2进行高斯平滑,并利用公式IM=IM1*W1+IM2*W2完成两幅图像的融合,得到融合图像IM;The fusion module is used to perform Gaussian smoothing on the weights W1 and W2, and use the formula IM=IM1*W1+IM2*W2 to complete the fusion of the two images to obtain the fusion image IM;
拼接模块,用于以最小外接矩形对融合图像IM进行裁边处理得到拼接图像。The stitching module is used for trimming the fused image IM with the smallest circumscribed rectangle to obtain a stitched image.
优选的,红外热像仪还用于成像过程中,获取红外热像仪的当前视野,在红外热像仪的操作界面的第一区域显示红外热像仪的当前视野,在红外热像仪的操作界面的第二区域以缩略图形式显示已经成像的图像,在红外热像仪的操作界面的第三区域显示用户操作提示。Preferably, the infrared thermal imager is also used to obtain the current field of view of the infrared thermal imager during the imaging process, and the current field of view of the infrared thermal imager is displayed in the first area of the operation interface of the infrared thermal imager. The second area of the operation interface displays the image that has been imaged in the form of thumbnails, and the user operation prompt is displayed in the third area of the operation interface of the infrared thermal imager.
全景图像获取系统的实现原理、技术效果与上述方法类似,此处不再赘述。The realization principle and technical effect of the panoramic image acquisition system are similar to those of the above-mentioned method, which will not be repeated here.
必须说明的是,上述任一实施例中,方法并不必然按照序号顺序依次执行,只要从执行逻辑中不能推定必然按某一顺序执行,则意味着可以以其他任何可能的顺序执行。It must be noted that, in any of the above embodiments, the methods are not necessarily executed in sequence, and as long as it cannot be inferred from the execution logic that the methods must be executed in a certain sequence, it means that the methods can be executed in any other possible sequence.
本领域的技术人员容易理解,以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。Those skilled in the art can easily understand that the above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention, etc., All should be included within the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010797974.2A CN112017117A (en) | 2020-08-10 | 2020-08-10 | Panoramic image acquisition method and system based on thermal infrared imager |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010797974.2A CN112017117A (en) | 2020-08-10 | 2020-08-10 | Panoramic image acquisition method and system based on thermal infrared imager |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112017117A true CN112017117A (en) | 2020-12-01 |
Family
ID=73499577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010797974.2A Pending CN112017117A (en) | 2020-08-10 | 2020-08-10 | Panoramic image acquisition method and system based on thermal infrared imager |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112017117A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106204440A (en) * | 2016-06-29 | 2016-12-07 | 北京互信互通信息技术有限公司 | A kind of multiframe super resolution image reconstruction method and system |
CN107784632A (en) * | 2016-08-26 | 2018-03-09 | 南京理工大学 | A kind of infrared panorama map generalization method based on infra-red thermal imaging system |
CN107945113A (en) * | 2017-11-17 | 2018-04-20 | 北京天睿空间科技股份有限公司 | The antidote of topography's splicing dislocation |
CN109859137A (en) * | 2019-02-14 | 2019-06-07 | 重庆邮电大学 | A kind of irregular distortion universe bearing calibration of wide angle camera |
-
2020
- 2020-08-10 CN CN202010797974.2A patent/CN112017117A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106204440A (en) * | 2016-06-29 | 2016-12-07 | 北京互信互通信息技术有限公司 | A kind of multiframe super resolution image reconstruction method and system |
CN107784632A (en) * | 2016-08-26 | 2018-03-09 | 南京理工大学 | A kind of infrared panorama map generalization method based on infra-red thermal imaging system |
CN107945113A (en) * | 2017-11-17 | 2018-04-20 | 北京天睿空间科技股份有限公司 | The antidote of topography's splicing dislocation |
CN109859137A (en) * | 2019-02-14 | 2019-06-07 | 重庆邮电大学 | A kind of irregular distortion universe bearing calibration of wide angle camera |
Non-Patent Citations (3)
Title |
---|
柳运波: "全景图像拼接关键技术研究", 《中国优秀硕士学位论文全文数据库》, no. 1, 15 January 2014 (2014-01-15), pages 138 - 1914 * |
牛卫: "红外全向告警系统图像拼接算法研究与实现技术", 《中国优秀硕士学位论文全文数据库》, no. 4, 15 April 2018 (2018-04-15), pages 138 - 2824 * |
鲜秦毅: "红外全向图像拼接算法研究与实现技术", 《中国优秀硕士学位论文全文数据库》, no. 2, 15 February 2019 (2019-02-15), pages 138 - 2105 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6721065B2 (en) | Imaging device, image processing device and method | |
JP6263623B2 (en) | Image generation method and dual lens apparatus | |
US9986158B2 (en) | Method and apparatus for photographing a panoramic image | |
JP5969992B2 (en) | Stereoscopic (3D) panorama generation on portable devices | |
WO2017088678A1 (en) | Long-exposure panoramic image shooting apparatus and method | |
EP2328125A1 (en) | Image splicing method and device | |
JP2017112602A (en) | Image calibrating, stitching and depth rebuilding method of panoramic fish-eye camera and system thereof | |
JP4010754B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium | |
CN108377341A (en) | photographing method, device, terminal and storage medium | |
WO2014023231A1 (en) | Wide-view-field ultrahigh-resolution optical imaging system and method | |
WO2017113504A1 (en) | Image displaying method and device | |
WO2018076460A1 (en) | Photographing method for terminal, and terminal | |
JP5846172B2 (en) | Image processing apparatus, image processing method, program, and imaging system | |
WO2020134123A1 (en) | Panoramic photographing method and device, camera and mobile terminal | |
JP2014150466A (en) | Imaging apparatus and control method of the same | |
CN110278366B (en) | A panoramic image blurring method, terminal and computer-readable storage medium | |
CN108270959A (en) | Method, terminal device and the panoramic imaging device of panoramic imagery | |
CN111654624B (en) | Shooting prompting method and device and electronic equipment | |
US20090059018A1 (en) | Navigation assisted mosaic photography | |
CN110572576A (en) | A method, system and electronic device for photographing visible light and thermal imaging overlapping images | |
JP2019053758A (en) | Image processing apparatus | |
CN110796690B (en) | Image matching method and image matching device | |
CN104935815B (en) | Method, device and the camera and mobile terminal taken pictures | |
CN112017117A (en) | Panoramic image acquisition method and system based on thermal infrared imager | |
JP4266736B2 (en) | Image processing method and apparatus |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201201 |