CN118279397A - Infrared dim target rapid detection method based on first-order directional derivative - Google Patents
Infrared dim target rapid detection method based on first-order directional derivative Download PDFInfo
- Publication number
- CN118279397A CN118279397A CN202410687371.5A CN202410687371A CN118279397A CN 118279397 A CN118279397 A CN 118279397A CN 202410687371 A CN202410687371 A CN 202410687371A CN 118279397 A CN118279397 A CN 118279397A
- Authority
- CN
- China
- Prior art keywords
- image
- candidate
- target
- point
- pixel value
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- 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/20—Image preprocessing
-
- 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/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
-
- 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/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/77—Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V10/80—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10048—Infrared image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/07—Target detection
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Computing Systems (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域Technical Field
本发明属于红外图像处理及目标检测技术领域,尤其涉及一种基于一阶方向导数的红外弱小目标快速检测方法。The invention belongs to the technical field of infrared image processing and target detection, and in particular relates to a method for rapid detection of infrared dim small targets based on first-order directional derivatives.
背景技术Background technique
红外弱小目标检测技术是红外搜索与跟踪系统的重要组成部分,基于红外图像的弱小目标检测在导弹预警、导弹拦截等领域均具有重要的应用。受远距离成像和随机复杂背景干扰的影响,红外成像系统探测的目标具有成像尺寸小、辐射能量弱,几何轮廓难分辨、易受复杂背景干扰、信噪比低等特点,即红外弱小目标的检测具有较大难度。目前,红外弱小目标检测根据输入源可分为两类,分别为基于图像序列的红外弱小目标检测和基于单帧图像的红外弱小目标检测,由于基于图像序列的红外弱小目标检测算法的计算量大,对处理器以及硬件资源要求较高,实时性较差,且相比于基于单帧图像的红外弱小目标检测算法的效率较低,因此,基于单帧图像的红外弱小目标检测的研究逐渐成为主流。基于单帧图像的红外弱小目标检测方法有基于空域或频域的滤波法、基于视觉系统的对比度法和基于数据结构的方法等,前两种易于实现,但在复杂背景下的虚警较高、空间分辨率低,而基于数据结构的方法的计算量较大,且不易于工程实现。Infrared small target detection technology is an important part of infrared search and tracking system. Small target detection based on infrared images has important applications in missile warning, missile interception and other fields. Affected by long-distance imaging and random complex background interference, the targets detected by infrared imaging systems have the characteristics of small imaging size, weak radiation energy, difficult geometric contours, susceptibility to complex background interference, and low signal-to-noise ratio, that is, the detection of infrared small targets is very difficult. At present, infrared small target detection can be divided into two categories according to the input source, namely infrared small target detection based on image sequence and infrared small target detection based on single frame image. Since the infrared small target detection algorithm based on image sequence has a large amount of calculation, high requirements on processor and hardware resources, poor real-time performance, and lower efficiency than the infrared small target detection algorithm based on single frame image, the research on infrared small target detection based on single frame image has gradually become the mainstream. Infrared weak target detection methods based on single-frame images include filtering methods based on spatial domain or frequency domain, contrast methods based on visual systems, and methods based on data structures. The first two are easy to implement, but have high false alarm rates and low spatial resolution under complex backgrounds, while methods based on data structures have large computational complexity and are not easy to implement in engineering.
发明内容Summary of the invention
有鉴于此,本发明创造旨在提供一种基于一阶方向导数的红外弱小目标快速检测方法,以解决现有的红外弱小目标检测方法的虚警、空间分辨率与算法计算量之间相互制约的问题,且能够提高红外弱小目标的检测精度和检测效率,降低虚警概率。In view of this, the present invention aims to provide a rapid detection method for infrared dim small targets based on first-order directional derivatives, so as to solve the problems of false alarm, mutual constraint between spatial resolution and algorithm calculation amount in existing infrared dim small target detection methods, and to improve the detection accuracy and efficiency of infrared dim small targets and reduce the probability of false alarm.
为达到上述目的,本发明创造的技术方案是这样实现的:To achieve the above object, the technical solution created by the present invention is implemented as follows:
一种基于一阶方向导数的红外弱小目标快速检测方法,具体包括如下步骤:A method for rapid detection of infrared dim small targets based on first-order directional derivatives specifically comprises the following steps:
S1:利用高斯差分滤波器对原始红外图像进行处理,并基于Facet模型对经高斯差分滤波器处理后的原始红外图像沿0度方向的一阶方向导数进行计算,基于Facet模型对经高斯差分滤波器处理后的原始红外图像沿90度方向的一阶方向导数进行计算,对应获得第一一阶方向导数图像和第二一阶方向导数图像;S1: The original infrared image is processed by using a Gaussian difference filter, and the first-order directional derivative of the original infrared image processed by the Gaussian difference filter along the 0 degree direction is calculated based on the Facet model. The first-order directional derivative of the original infrared image processed by the Gaussian difference filter along the 90 degree direction is calculated based on the Facet model, and the first first-order directional derivative image and the second first-order directional derivative image are obtained correspondingly;
S2:同时对第一一阶方向导数图像和第二一阶方向导数图像进行幅度归一化处理,对应获得第一归一化图像和第二归一化图像;S2: performing amplitude normalization processing on the first first-order directional derivative image and the second first-order directional derivative image simultaneously, and obtaining a first normalized image and a second normalized image correspondingly;
S3:同时对第一归一化图像和第二归一化图像进行阈值检测,获得第一归一化图像的所有候选点和第二归一化图像的所有候选点;S3: Performing threshold detection on the first normalized image and the second normalized image simultaneously to obtain all candidate points of the first normalized image and all candidate points of the second normalized image;
S4:同时对第一归一化图像的各候选点是否存在沿0°方向的目标位置,以及第二归一化图像的各候选点的是否存在沿90°方向的目标位置进行判断;S4: simultaneously judging whether each candidate point of the first normalized image has a target position along the 0° direction, and judging whether each candidate point of the second normalized image has a target position along the 90° direction;
S5:根据步骤S4的判断结果,获得第一候选目标图像和第二候选目标图像;S5: According to the judgment result of step S4, a first candidate target image and a second candidate target image are obtained;
S6:将第一候选目标图像和第二候选目标图像进行图像融合,获得含有红外弱小目标的输出图像;S6: fusing the first candidate target image and the second candidate target image to obtain an output image containing a small infrared target;
S7:在输出图像上进行像素值为1的目标检测,确定红外弱小目标的中心位置,并将红外弱小目标的中心位置作为最终的检测结果。S7: Perform target detection with a pixel value of 1 on the output image, determine the center position of the infrared weak small target, and use the center position of the infrared weak small target as the final detection result.
进一步的,在步骤S1中,基于Facet模型对经高斯差分滤波器处理后的原始红外图像沿0度方向的一阶方向导数以及沿90度方向的一阶方向导数进行计算的计算公式为:Furthermore, in step S1, the calculation formula for calculating the first-order directional derivative along the 0 degree direction and the first-order directional derivative along the 90 degree direction of the original infrared image processed by the Gaussian difference filter based on the Facet model is:
; ;
; ;
其中,为第一一阶方向导数图像,为第二一阶方向导数图像,为像素点的坐标,、、、、、均为Facet模型的插值系数。in, is the first-order directional derivative image, is the second first-order directional derivative image, is the coordinate of the pixel point, , , , , , are the interpolation coefficients of the Facet model.
进一步的,Facet模型的插值系数的计算公式为:Furthermore, the calculation formula of the interpolation coefficient of the Facet model is:
; ;
; ;
; ;
; ;
; ;
; ;
; ;
其中,为Facet模型的第i个插值系数,为与第i个插值系数对应的核系数,为高斯差分滤波器的输出,T为矩阵的转置运算。in, is the i-th interpolation coefficient of the Facet model, is the kernel coefficient corresponding to the i-th interpolation coefficient, is the output of the Gaussian difference filter, and T is the transpose operation of the matrix.
进一步的,在步骤S2中,第一归一化图像和第二归一化图像满足下式:Further, in step S2, the first normalized image and the second normalized image satisfy the following formula:
; ;
; ;
其中,为第一归一化图像,为第二归一化图像,为像素点的坐标。in, is the first normalized image, is the second normalized image, is the coordinate of the pixel point.
进一步的,在步骤S3中,将阈值设为,基于阈值,并通过下式获得第一归一化图像的所有候选点和第二归一化图像的所有候选点:Further, in step S3, the threshold is set to , based on the threshold, and all candidate points of the first normalized image and all candidate points of the second normalized image are obtained by the following formula:
; ;
; ;
其中,为第一归一化图像的第i个候选点,为第二归一化图像的第i个候选点,为对于任意坐标的像素点。in, is the i-th candidate point of the first normalized image, is the i-th candidate point of the second normalized image, For any coordinate Pixels.
进一步的,在步骤S4中,对第一归一化图像的各候选点是否存在沿0°方向的目标位置进行判断的具体步骤包括:Furthermore, in step S4, the specific steps of judging whether each candidate point of the first normalized image has a target position along the 0° direction include:
S411:在第一归一化图像中将第i个候选点作为待处理候选点,基于待处理候选点设置局部区域R,局部区域R是以待处理候选点为中心的正方形,i={1,2,3,…,n},n为候选点的总数;S411: taking the i-th candidate point in the first normalized image as a candidate point to be processed, and setting a local area R based on the candidate point to be processed, where the local area R is a square centered on the candidate point to be processed, i={1, 2, 3, ..., n}, and n is the total number of candidate points;
S412:根据局部区域R所包含的各像素点的像素值大小,在局部区域R选取极大像素值点和极小像素值点,当极大像素值点和极小像素值点满足下式时,执行步骤S413,否则将当前候选点视为不存在沿0°方向的目标位置,并在第一归一化图像中将第i+1个候选点作为待处理候选点,执行步骤S411:S412: According to the pixel values of each pixel point contained in the local area R, select the maximum pixel value point and the minimum pixel value point in the local area R. When the maximum pixel value point and the minimum pixel value point satisfy the following formula, execute step S413. Otherwise, the current candidate point is regarded as a target position that does not exist along the 0° direction, and the i+1th candidate point is used as a candidate point to be processed in the first normalized image, and execute step S411:
; ;
; ;
; ;
其中,为极大像素值点的像素值,为极小像素值点的像素值,为极大像素值点的位置坐标,为极小像素值点的位置坐标,为幅度门限值,为空间距离门限值;in, is the pixel value of the maximum pixel value point, is the pixel value of the minimum pixel value point, is the position coordinate of the maximum pixel value point, is the position coordinate of the point with the minimum pixel value, is the amplitude threshold value, is the spatial distance threshold;
S413:通过下式计算当前候选点的目标位置:S413: Calculate the target position of the current candidate point by the following formula:
; ;
; ;
其中,()为当前候选点沿0°方向的目标位置的坐标;in,( ) is the coordinate of the target position of the current candidate point along the 0° direction;
S414:重复步骤S411-S413,计算第一归一化图像的所有候选点沿0°方向的目标位置的坐标。S414: Repeat steps S411-S413 to calculate the coordinates of the target positions of all candidate points of the first normalized image along the 0° direction.
进一步的,在步骤S4中,对第二归一化图像的各候选点是否存在沿90°方向的目标位置进行判断的具体步骤包括:Further, in step S4, the specific steps of judging whether each candidate point of the second normalized image has a target position along the 90° direction include:
S421:在第二归一化图像中将第i个候选点作为待处理候选点,基于待处理候选点设置局部区域R,局部区域R是以待处理候选点为中心的正方形,i={1,2,3,…,n},n为候选点的总数;S421: taking the i-th candidate point in the second normalized image as a candidate point to be processed, and setting a local area R based on the candidate point to be processed, where the local area R is a square centered on the candidate point to be processed, i={1, 2, 3, ..., n}, where n is the total number of candidate points;
S422:根据局部区域R所包含的各像素点的像素值大小,在局部区域R选取极大像素值点和极小像素值点,当极大像素值点和极小像素值点满足下式时,执行步骤S423,否则将当前候选点视为不存在沿90°方向的目标位置进行判断,并在第二归一化图像中将第i+1个候选点作为待处理候选点,执行步骤S421:S422: According to the pixel values of each pixel point contained in the local area R, select the maximum pixel value point and the minimum pixel value point in the local area R. When the maximum pixel value point and the minimum pixel value point satisfy the following formula, execute step S423. Otherwise, the current candidate point is regarded as a target position that does not exist along the 90° direction for judgment, and the i+1th candidate point is used as the candidate point to be processed in the second normalized image, and execute step S421:
; ;
; ;
; ;
其中,为极大像素值点的像素值,为极小像素值点的像素值,为极大像素值点的位置坐标,为极小像素值点的位置坐标,为幅度门限值,为空间距离门限值;in, is the pixel value of the maximum pixel value point, is the pixel value of the minimum pixel value point, is the position coordinate of the maximum pixel value point, is the position coordinate of the point with the minimum pixel value, is the amplitude threshold value, is the spatial distance threshold;
S423:通过下式计算当前候选点的目标位置:S423: Calculate the target position of the current candidate point by the following formula:
; ;
; ;
其中,()为当前候选点沿90°方向的目标位置的坐标;in,( ) is the coordinate of the target position of the current candidate point along the 90° direction;
S424:重复步骤S421-S423,计算第二归一化图像的所有候选点沿90°方向的目标位置。S424: Repeat steps S421-S423 to calculate the target positions of all candidate points of the second normalized image along the 90° direction.
进一步的,在步骤S5中,在第一归一化图像中,将具有沿0°方向的目标位置的候选点的像素值均设为1,并将不具有0°方向的目标位置的候选点的像素值均设为0,获得第一候选目标图像:Further, in step S5, in the first normalized image, the pixel values of the candidate points with the target position along the 0° direction are all set to 1, and the pixel values of the candidate points without the target position along the 0° direction are all set to 0, to obtain the first candidate target image:
在第二归一化图像中,将具有沿90°方向的目标位置的候选点的像素值均设为1,并将不具有沿90°方向的目标位置的候选点的像素值均设为0,获得第二候选目标图像。In the second normalized image, the pixel values of the candidate points having the target position along the 90° direction are all set to 1, and the pixel values of the candidate points not having the target position along the 90° direction are all set to 0, so as to obtain a second candidate target image.
进一步的,在步骤S6中,将第一候选目标图像和第二候选目标图像进行图像融合的计算公式为:Furthermore, in step S6, the calculation formula for image fusion of the first candidate target image and the second candidate target image is:
; ;
其中,为输出图像,为第一候选目标图像,为第二候选目标图像。in, For the output image, is the first candidate target image, is the second candidate target image.
与现有技术相比,本发明创造能够取得如下有益效果:Compared with the prior art, the invention can achieve the following beneficial effects:
(1)本发明创造所述的基于一阶方向导数的红外弱小目标快速检测方法,利用红外弱小目标在不同方向上的一阶导数图像分布不同的特点,将在0°和90°两个方向上的候选目标图像进行图像融合,获得输出图像,在输出图像上进行像素值为1的目标检测,确定红外弱小目标的中心位置,并将红外弱小目标的中心位置作为最终的检测结果,整个检测过程大大提高了红外弱小目标的检测精度和检测效率,降低了虚警概率。(1) The present invention creates a method for rapid detection of infrared dim small targets based on first-order directional derivatives. By utilizing the different distribution characteristics of first-order derivative images of infrared dim small targets in different directions, the candidate target images in the two directions of 0° and 90° are fused to obtain an output image. Target detection with a pixel value of 1 is performed on the output image to determine the center position of the infrared dim small target. The center position of the infrared dim small target is used as the final detection result. The entire detection process greatly improves the detection accuracy and efficiency of infrared dim small targets and reduces the false alarm probability.
(2)本发明创造所述的基于一阶方向导数的红外弱小目标快速检测方法,能够实现目标位置的精确定位,由于在两个方向上的检测过程可并行计算,因此,本发明的红外弱小目标快速检测方法具有实时性高和检测效率高的优点。(2) The infrared dim small target rapid detection method based on the first-order directional derivative created by the present invention can realize the accurate positioning of the target position. Since the detection process in two directions can be calculated in parallel, the infrared dim small target rapid detection method of the present invention has the advantages of high real-time performance and high detection efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
构成本发明创造的一部分的附图用来提供对本发明创造的进一步理解,本发明创造的示意性实施例及其说明用于解释本发明创造,并不构成对本发明创造的不当限定。在附图中:The drawings constituting part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments and descriptions of the present invention are used to explain the present invention and do not constitute an improper limitation on the present invention. In the drawings:
图1为本发明创造实施例所述的基于一阶方向导数的红外弱小目标快速检测方法的流程示意图;FIG1 is a schematic flow chart of a method for rapid detection of infrared dim small targets based on first-order directional derivatives according to an embodiment of the present invention;
图2为本发明创造实施例所述的在局部区域内确定目标位置的坐标的结构示意图;FIG2 is a schematic diagram of a structure for determining the coordinates of a target position in a local area according to an embodiment of the present invention;
图3为本发明创造实施例所述的原始红外图像;FIG3 is an original infrared image according to an embodiment of the present invention;
图4为本发明创造实施例所述的第一一阶方向导数图像;FIG4 is a first-order directional derivative image according to an embodiment of the present invention;
图5为本发明创造实施例所述的第二一阶方向导数图像;FIG5 is a second first-order directional derivative image according to an embodiment of the present invention;
图6为本发明创造实施例所述的获取第一归一化图像的候选点的三维仿真示意图;FIG6 is a three-dimensional simulation schematic diagram of obtaining candidate points of a first normalized image according to an embodiment of the present invention;
图7为本发明创造实施例所述的获取第二归一化图像的候选点的三维仿真示意图;FIG7 is a schematic diagram of a three-dimensional simulation of candidate points for obtaining a second normalized image according to an embodiment of the present invention;
图8为本发明创造实施例所述的第一候选目标图像;FIG8 is a first candidate target image according to an embodiment of the present invention;
图9为本发明创造实施例所述的第二候选目标图像;FIG9 is a second candidate target image according to an embodiment of the present invention;
图10为本发明创造实施例所述的红外弱小目标的中心位置的图像。FIG. 10 is an image of the center position of a small infrared target according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明创造的目的、技术方案及优点更加清楚明白,以下结合附图及具体实施例,对本发明创造进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明创造,而不构成对本发明创造的限制。In order to make the purpose, technical solution and advantages of the invention more clear, the invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the invention and do not constitute a limitation of the invention.
需要说明的是,在不冲突的情况下,本发明创造中的实施例及实施例中的特征可以相互组合。It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
在本发明创造的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明创造和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明创造的限制。此外,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”等的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明创造的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
在本发明创造的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以通过具体情况理解上述术语在本发明创造中的具体含义。In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the invention can be understood according to specific circumstances.
下面将参考附图并结合实施例来详细说明本发明创造。The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.
如图1所示,本发明实施例提供的一种基于一阶方向导数的红外弱小目标快速检测方法,具体包括如下步骤:As shown in FIG1 , an infrared dim small target rapid detection method based on first-order directional derivative provided by an embodiment of the present invention specifically comprises the following steps:
S1:利用高斯差分滤波器对原始红外图像进行处理,并基于Facet模型对经高斯差分滤波器处理后的原始红外图像沿0度方向的一阶方向导数进行计算,基于Facet模型对经高斯差分滤波器处理后的原始红外图像沿90度方向的一阶方向导数进行计算,对应获得第一一阶方向导数图像和第二一阶方向导数图像。S1: The original infrared image is processed by using a Gaussian difference filter, and the first-order directional derivative of the original infrared image processed by the Gaussian difference filter along the 0 degree direction is calculated based on the Facet model. The first-order directional derivative of the original infrared image processed by the Gaussian difference filter along the 90 degree direction is calculated based on the Facet model, and the first first-order directional derivative image and the second first-order directional derivative image are obtained accordingly.
在步骤S1中,基于Facet模型对经高斯差分滤波器处理后的原始红外图像沿0度方向的一阶方向导数以及沿90度方向的一阶方向导数进行计算的计算公式为:In step S1, the calculation formula for calculating the first-order directional derivative along the 0 degree direction and the first-order directional derivative along the 90 degree direction of the original infrared image processed by the Gaussian difference filter based on the Facet model is:
; ;
; ;
其中,为第一一阶方向导数图像,为第二一阶方向导数图像,为像素点的坐标,、、、、、均为Facet模型的插值系数。Facet模型的插值系数的计算公式为:in, is the first-order directional derivative image, is the second first-order directional derivative image, is the coordinate of the pixel point, , , , , , are the interpolation coefficients of the Facet model. The calculation formula for the interpolation coefficients of the Facet model is:
; ;
; ;
; ;
; ;
; ;
; ;
; ;
其中,为Facet模型的第i个插值系数,为与第i个插值系数对应的核系数,为高斯差分滤波器的输出,T为矩阵的转置运算。in, is the i-th interpolation coefficient of the Facet model, is the kernel coefficient corresponding to the i-th interpolation coefficient, is the output of the Gaussian difference filter, and T is the transpose operation of the matrix.
S2:同时对第一一阶方向导数图像和第二一阶方向导数图像进行幅度归一化处理,对应获得第一归一化图像和第二归一化图像。S2: performing amplitude normalization processing on the first first-order directional derivative image and the second first-order directional derivative image simultaneously, and obtaining a first normalized image and a second normalized image correspondingly.
在步骤S2中,第一归一化图像和第二归一化图像满足下式:In step S2, the first normalized image and the second normalized image satisfy the following equation:
; ;
; ;
其中,为第一归一化图像,为第二归一化图像,为像素点的坐标。in, is the first normalized image, is the second normalized image, is the coordinate of the pixel point.
S3:同时对第一归一化图像和第二归一化图像进行阈值检测,获得第一归一化图像的所有候选点和第二归一化图像的所有候选点。S3: Perform threshold detection on the first normalized image and the second normalized image simultaneously to obtain all candidate points of the first normalized image and all candidate points of the second normalized image.
根据实际应用,阈值取{0.5,0.6,0.7,0.8,0.9}中的任意一个值。According to the actual application, the threshold Take any value from {0.5, 0.6, 0.7, 0.8, 0.9}.
在步骤S3中,将阈值设为,基于阈值,并通过下式获得第一归一化图像的所有候选点和第二归一化图像的所有候选点:In step S3, the threshold is set to , based on the threshold, and all candidate points of the first normalized image and all candidate points of the second normalized image are obtained by the following formula:
; ;
; ;
其中,为第一归一化图像的第i个候选点,为第二归一化图像的第i个候选点,为对于任意坐标的像素点。in, is the i-th candidate point of the first normalized image, is the i-th candidate point of the second normalized image, For any coordinate Pixels.
S4:同时对第一归一化图像的各候选点是否存在沿0°方向的目标位置,以及第二归一化图像的各候选点的是否存在沿90°方向的目标位置进行判断。S4: It is simultaneously determined whether each candidate point of the first normalized image has a target position along the 0° direction, and whether each candidate point of the second normalized image has a target position along the 90° direction.
如图2所示,在步骤S4中,对第一归一化图像的各候选点是否存在沿0°方向的目标位置进行判断的具体步骤包括:As shown in FIG. 2 , in step S4, the specific steps of judging whether each candidate point of the first normalized image has a target position along the 0° direction include:
S411:在第一归一化图像中将第i个候选点作为待处理候选点,基于待处理候选点设置局部区域R,局部区域R是以待处理候选点为中心的正方形,i={1,2,3,…,n},n为候选点的总数;S411: taking the i-th candidate point in the first normalized image as a candidate point to be processed, and setting a local area R based on the candidate point to be processed, where the local area R is a square centered on the candidate point to be processed, i={1, 2, 3, ..., n}, and n is the total number of candidate points;
S412:根据局部区域R所包含的各像素点的像素值大小,在局部区域R选取极大像素值点和极小像素值点,当极大像素值点和极小像素值点满足下式时,执行步骤S413,否则将当前候选点视为不存在沿0°方向的目标位置,并在第一归一化图像中将第i+1个候选点作为待处理候选点,执行步骤S411:S412: According to the pixel values of each pixel point contained in the local area R, select the maximum pixel value point and the minimum pixel value point in the local area R. When the maximum pixel value point and the minimum pixel value point satisfy the following formula, execute step S413. Otherwise, the current candidate point is regarded as a target position that does not exist along the 0° direction, and the i+1th candidate point is used as a candidate point to be processed in the first normalized image, and execute step S411:
; ;
; ;
; ;
其中,为极大像素值点的像素值,为极小像素值点的像素值,为极大像素值点的位置坐标,为极小像素值点的位置坐标,为幅度门限值,为空间距离门限值;in, is the pixel value of the maximum pixel value point, is the pixel value of the minimum pixel value point, is the position coordinate of the maximum pixel value point, is the position coordinate of the point with the minimum pixel value, is the amplitude threshold value, is the spatial distance threshold;
S413:通过下式计算当前候选点的目标位置:S413: Calculate the target position of the current candidate point by the following formula:
; ;
; ;
其中,()为当前候选点沿0°方向的目标位置的坐标;in,( ) is the coordinate of the target position of the current candidate point along the 0° direction;
S414:重复步骤S411-S413,计算第一归一化图像的所有候选点沿0°方向的目标位置的坐标。S414: Repeat steps S411-S413 to calculate the coordinates of the target positions of all candidate points of the first normalized image along the 0° direction.
在步骤S4中,对第二归一化图像的各候选点是否存在沿90°方向的目标位置进行判断的具体步骤包括:In step S4, the specific steps of judging whether each candidate point of the second normalized image has a target position along the 90° direction include:
S421:在第二归一化图像中将第i个候选点作为待处理候选点,基于待处理候选点设置局部区域R,局部区域R是以待处理候选点为中心,边长为m的正方形,i={1,2,3,…,n},n为候选点的总数,m的取值范围为15~30,可根据实际情况进行调整;S421: taking the i-th candidate point in the second normalized image as a candidate point to be processed, and setting a local area R based on the candidate point to be processed, where the local area R is a square with a side length of m and the candidate point to be processed as the center, i={1, 2, 3, ..., n}, n is the total number of candidate points, and m is in the range of 15 to 30, which can be adjusted according to actual conditions;
S422:根据局部区域R所包含的各像素点的像素值大小,在局部区域R选取极大像素值点和极小像素值点,当极大像素值点和极小像素值点满足下式时,执行步骤S423,否则将当前候选点视为不存在沿90°方向的目标位置进行判断,并在第二归一化图像中将第i+1个候选点作为待处理候选点,执行步骤S421:S422: According to the pixel values of each pixel point contained in the local area R, select the maximum pixel value point and the minimum pixel value point in the local area R. When the maximum pixel value point and the minimum pixel value point satisfy the following formula, execute step S423. Otherwise, the current candidate point is regarded as a target position that does not exist along the 90° direction for judgment, and the i+1th candidate point is used as the candidate point to be processed in the second normalized image, and execute step S421:
; ;
; ;
; ;
其中,为极大像素值点的像素值,为极小像素值点的像素值,为极大像素值点的位置坐标,为极小像素值点的位置坐标,为幅度门限值,为空间距离门限值;in, is the pixel value of the maximum pixel value point, is the pixel value of the minimum pixel value point, is the position coordinate of the maximum pixel value point, is the position coordinate of the point with the minimum pixel value, is the amplitude threshold value, is the spatial distance threshold;
S423:通过下式计算当前候选点的目标位置:S423: Calculate the target position of the current candidate point by the following formula:
; ;
; ;
其中,()为当前候选点沿90°方向的目标位置的坐标;in,( ) is the coordinate of the target position of the current candidate point along the 90° direction;
S424:重复步骤S421-S423,计算第二归一化图像的所有候选点沿90°方向的目标位置。S424: Repeat steps S421-S423 to calculate the target positions of all candidate points of the second normalized image along the 90° direction.
S5:根据步骤S4的判断结果,获得第一候选目标图像和第二候选目标图像。S5: According to the judgment result of step S4, a first candidate target image and a second candidate target image are obtained.
在步骤S5中,在第一归一化图像中,将具有沿0°方向的目标位置的候选点的像素值均设为1,并将不具有0°方向的目标位置的候选点的像素值均设为0,获得第一候选目标图像:In step S5, in the first normalized image, the pixel values of the candidate points with the target position along the 0° direction are all set to 1, and the pixel values of the candidate points without the target position along the 0° direction are all set to 0, so as to obtain the first candidate target image:
在第二归一化图像中,将具有沿90°方向的目标位置的候选点的像素值均设为1,并将不具有沿90°方向的目标位置的候选点的像素值均设为0,获得第二候选目标图像。In the second normalized image, the pixel values of the candidate points having the target position along the 90° direction are all set to 1, and the pixel values of the candidate points not having the target position along the 90° direction are all set to 0, so as to obtain a second candidate target image.
S6:将第一候选目标图像和第二候选目标图像进行图像融合,获得含有红外弱小目标的输出图像。S6: Fusing the first candidate target image and the second candidate target image to obtain an output image containing a small infrared target.
在步骤S6中,将第一候选目标图像和第二候选目标图像进行图像融合的计算公式为:In step S6, the calculation formula for image fusion of the first candidate target image and the second candidate target image is:
; ;
其中,为输出图像,为第一候选目标图像,为第二候选目标图像。in, For the output image, is the first candidate target image, is the second candidate target image.
S7:在输出图像上进行像素值为1的目标检测(像素值非0即1),确定红外弱小目标的中心位置,并将红外弱小目标的中心位置作为最终的检测结果。S7: Perform target detection with a pixel value of 1 on the output image (the pixel value is either 0 or 1), determine the center position of the infrared weak small target, and use the center position of the infrared weak small target as the final detection result.
实施例1Example 1
本发明实施例提供的一种基于一阶方向导数的红外弱小目标快速检测方法,具体包括如下步骤:An infrared dim small target rapid detection method based on first-order directional derivative provided by an embodiment of the present invention specifically comprises the following steps:
S1:利用高斯差分滤波器对如图3所示的原始红外图像进行处理,并基于Facet模型对经高斯差分滤波器处理后的原始红外图像沿0度方向的一阶方向导数以及沿90度方向的一阶方向导数进行计算,对应获得如图4所示的第一一阶方向导数图像和如图5所示的第二一阶方向导数图像。S1: Use a Gaussian difference filter to process the original infrared image shown in Figure 3, and calculate the first-order directional derivative along the 0 degree direction and the first-order directional derivative along the 90 degree direction of the original infrared image processed by the Gaussian difference filter based on the Facet model, and correspondingly obtain the first first-order directional derivative image shown in Figure 4 and the second first-order directional derivative image shown in Figure 5.
S2:同时对第一一阶方向导数图像和第二一阶方向导数图像进行幅度归一化处理,对应获得第一归一化图像和第二归一化图像。S2: performing amplitude normalization processing on the first first-order directional derivative image and the second first-order directional derivative image simultaneously, and obtaining a first normalized image and a second normalized image correspondingly.
S3:同时对第一归一化图像和第二归一化图像进行阈值检测,获得第一归一化图像的所有候选点和第二归一化图像的所有候选点。S3: Perform threshold detection on the first normalized image and the second normalized image simultaneously to obtain all candidate points of the first normalized image and all candidate points of the second normalized image.
如图6-图7所示,取(菱形区域为ths),通过下式获取第一归一化图像的候选点和第二归一化图像的候选点,将大于ths的点作为候选点和。As shown in Figures 6 and 7, (The diamond area is ths), the candidate points of the first normalized image and the candidate points of the second normalized image are obtained by the following formula, and the points greater than ths are taken as candidate points and .
; ;
; ;
其中,为第一归一化图像的第i个候选点,为第二归一化图像的第i个候选点,为对于任意坐标的像素点。in, is the i-th candidate point of the first normalized image, is the i-th candidate point of the second normalized image, For any coordinate Pixels.
S4:同时对第一归一化图像的各候选点是否存在沿0°方向的目标位置,以及第二归一化图像的各候选点的是否存在沿90°方向的目标位置进行判断。S4: It is simultaneously determined whether each candidate point of the first normalized image has a target position along the 0° direction, and whether each candidate point of the second normalized image has a target position along the 90° direction.
S5:根据步骤S4的判断结果,获得第一候选目标图像和第二候选目标图像。S5: According to the judgment result of step S4, a first candidate target image and a second candidate target image are obtained.
取参数,,第一候选目标图像和第二候选目标图像分别如图8和图9所示。Take parameters , , the first candidate target image and the second candidate target image are shown in FIG8 and FIG9 respectively.
S6:将第一候选目标图像和第二候选目标图像进行图像融合,获得含有红外弱小目标的输出图像。S6: Fusing the first candidate target image and the second candidate target image to obtain an output image containing a small infrared target.
在步骤S6中,将第一候选目标图像和第二候选目标图像进行图像融合的计算公式为:In step S6, the calculation formula for image fusion of the first candidate target image and the second candidate target image is:
; ;
其中,为输出图像,为第一候选目标图像,为第二候选目标图像。in, For the output image, is the first candidate target image, is the second candidate target image.
S7:在输出图像上进行像素值为1的目标检测(像素值非0即1),确定红外弱小目标的中心位置,并将红外弱小目标的中心位置作为最终的检测结果。检测结果如图10所示的亮点。S7: Detect the target with a pixel value of 1 on the output image (the pixel value is either 0 or 1), determine the center position of the infrared weak target, and use the center position of the infrared weak target as the final detection result. The detection result is shown in Figure 10.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the disclosure of the present invention can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.
上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410687371.5A CN118279397B (en) | 2024-05-30 | 2024-05-30 | A fast detection method for infrared dim small targets based on first-order directional derivative |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410687371.5A CN118279397B (en) | 2024-05-30 | 2024-05-30 | A fast detection method for infrared dim small targets based on first-order directional derivative |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118279397A true CN118279397A (en) | 2024-07-02 |
CN118279397B CN118279397B (en) | 2024-08-13 |
Family
ID=91645443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410687371.5A Active CN118279397B (en) | 2024-05-30 | 2024-05-30 | A fast detection method for infrared dim small targets based on first-order directional derivative |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118279397B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104182992A (en) * | 2014-08-19 | 2014-12-03 | 哈尔滨工程大学 | Method for detecting small targets on the sea on the basis of panoramic vision |
CN106548457A (en) * | 2016-10-14 | 2017-03-29 | 北京航空航天大学 | A kind of method for detecting infrared puniness target using multi-direction first-order partial derivative |
CN111861968A (en) * | 2019-04-23 | 2020-10-30 | 中国科学院长春光学精密机械与物理研究所 | A kind of infrared weak and small target detection method and detection system |
CN112418090A (en) * | 2020-11-23 | 2021-02-26 | 中国科学院西安光学精密机械研究所 | A real-time detection method for infrared weak and small targets under sky background |
CN113673385A (en) * | 2021-08-06 | 2021-11-19 | 南京理工大学 | Sea surface ship detection method based on infrared image |
CN117132617A (en) * | 2023-08-21 | 2023-11-28 | 北京工业大学 | A method for obtaining the overall error of gears based on continuous piecewise fitting Facet model |
-
2024
- 2024-05-30 CN CN202410687371.5A patent/CN118279397B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104182992A (en) * | 2014-08-19 | 2014-12-03 | 哈尔滨工程大学 | Method for detecting small targets on the sea on the basis of panoramic vision |
CN106548457A (en) * | 2016-10-14 | 2017-03-29 | 北京航空航天大学 | A kind of method for detecting infrared puniness target using multi-direction first-order partial derivative |
CN111861968A (en) * | 2019-04-23 | 2020-10-30 | 中国科学院长春光学精密机械与物理研究所 | A kind of infrared weak and small target detection method and detection system |
CN112418090A (en) * | 2020-11-23 | 2021-02-26 | 中国科学院西安光学精密机械研究所 | A real-time detection method for infrared weak and small targets under sky background |
CN113673385A (en) * | 2021-08-06 | 2021-11-19 | 南京理工大学 | Sea surface ship detection method based on infrared image |
CN117132617A (en) * | 2023-08-21 | 2023-11-28 | 北京工业大学 | A method for obtaining the overall error of gears based on continuous piecewise fitting Facet model |
Non-Patent Citations (1)
Title |
---|
JIAOJIAO DONG, TAO SHAN, DONGDONG PANG: ""Infrared Small Target Detection Based on Facet Model and Structure Tensor"", 《2020 IEEE 4TH INFORMATION TECHNOLOGY, NETWORKING, ELECTRONIC AND AUTOMATION CONTROL CONFERENCE (ITNEC)》, 4 May 2020 (2020-05-04) * |
Also Published As
Publication number | Publication date |
---|---|
CN118279397B (en) | 2024-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100446037C (en) | Feature-based large format cultural heritage image stitching method | |
CN103053154B (en) | The auto-focusing of stereoscopic camera | |
CN109165680B (en) | Single-target object dictionary model improvement method in indoor scene based on visual SLAM | |
CN110807815B (en) | A Fast Underwater Calibration Method Based on Two Groups of Mutually Orthogonal Parallel Lines Corresponding to Vanishing Point | |
CN109961401A (en) | A kind of method for correcting image and storage medium of binocular camera | |
US8330852B2 (en) | Range measurement using symmetric coded apertures | |
CN108550166A (en) | A kind of spatial target images matching process | |
CN110874854A (en) | Large-distortion wide-angle camera binocular photogrammetry method based on small baseline condition | |
CN107560592A (en) | A kind of precision ranging method for optronic tracker linkage target | |
CN110349090A (en) | A kind of image-scaling method based on newton second order interpolation | |
CN108780574A (en) | Device and method for calibrating optical system for collecting | |
CN108352061B (en) | Apparatus and method for generating data representing pixel beams | |
CN117872327A (en) | Combined calibration method and system for binocular camera and 3D laser radar | |
CN116091706A (en) | Three-dimensional reconstruction method for multi-mode remote sensing image deep learning matching | |
CN118279397B (en) | A fast detection method for infrared dim small targets based on first-order directional derivative | |
Lian et al. | 3D-SIFT point cloud registration method integrating curvature information | |
CN112967305B (en) | Image cloud background detection method under complex sky scene | |
CN114881841A (en) | Image generation method and device | |
CN113542588A (en) | An anti-interference electronic image stabilization method based on visual saliency | |
CN109389629B (en) | A Determination Method of Adaptive Parallax Level for Stereo Matching | |
CN115345845B (en) | Feature fusion smoke screen interference efficiency evaluation and processing method based on direction gradient histogram and electronic equipment | |
CN117288120A (en) | Three-dimensional imaging measurement system based on multiple visual angles and calibration method thereof | |
CN108353120B (en) | Apparatus and method for generating data representing a pixel beam | |
GB2506686A (en) | Generating super-resolution images | |
CN115147625A (en) | A comparison model of electric meter box images based on perspective transformation and local affine matching algorithm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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 |