CN1312636C - Morphologic filter automatic destination detecting method - Google Patents
Morphologic filter automatic destination detecting method Download PDFInfo
- Publication number
- CN1312636C CN1312636C CNB2004100680247A CN200410068024A CN1312636C CN 1312636 C CN1312636 C CN 1312636C CN B2004100680247 A CNB2004100680247 A CN B2004100680247A CN 200410068024 A CN200410068024 A CN 200410068024A CN 1312636 C CN1312636 C CN 1312636C
- Authority
- CN
- China
- Prior art keywords
- genetic algorithm
- training
- threshold
- point targets
- 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.)
- Expired - Fee Related
Links
- 230000000877 morphologic effect Effects 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims description 24
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 52
- 230000002068 genetic effect Effects 0.000 claims abstract description 47
- 238000012549 training Methods 0.000 claims abstract description 33
- 238000001514 detection method Methods 0.000 claims abstract description 30
- 230000003044 adaptive effect Effects 0.000 claims abstract description 23
- 230000035772 mutation Effects 0.000 claims abstract description 14
- 230000011218 segmentation Effects 0.000 claims abstract description 7
- 210000000349 chromosome Anatomy 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000010187 selection method Methods 0.000 claims description 4
- 238000000137 annealing Methods 0.000 claims description 2
- 238000005457 optimization Methods 0.000 description 23
- 238000001914 filtration Methods 0.000 description 21
- 238000012545 processing Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 8
- 238000013528 artificial neural network Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 108090000623 proteins and genes Proteins 0.000 description 4
- 238000011160 research Methods 0.000 description 4
- 206010033307 Overweight Diseases 0.000 description 3
- 230000010339 dilation Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000013011 mating Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000003628 erosive effect Effects 0.000 description 1
- 238000013332 literature search Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000000547 structure data Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
Abstract
一种形态学滤波器自动目标检测方法,首先采集用来优化训练结构元素的训练样本,样本应尽可能包含各种点目标和背景,构造用于优化训练的遗传算法,该遗传算法采用新的区间离散化编码和自适应的主次式交叉与变异算子,利用采集到的样本用该遗传算法优化训练结构元素值,在这些优化好的结构元素的基础上构造基于Top-Hat算子的形态学滤波器,对红外目标图象进行滤波,最后针对所检测的大多数弱小点目标进行基于自适应门限的分割,对信噪比较高的点目标用固定门限进行分割检测出目标点。本发明实现了对复杂背景情况下的红外弱小点目标进行自动检测,极大提高了目标检测概率和抗干扰能力,在民用及军用方面有着极其广泛的应用前景。
A morphological filter automatic target detection method, first collect training samples used to optimize the training structure elements, the samples should contain a variety of point targets and backgrounds as much as possible, and construct a genetic algorithm for optimal training, the genetic algorithm uses a new Interval discretization coding and adaptive primary and secondary crossover and mutation operators, using the collected samples to optimize the value of the training structural elements with the genetic algorithm, and constructing the Top-Hat operator based on these optimized structural elements The morphological filter filters the infrared target image, and finally performs segmentation based on an adaptive threshold for most of the detected weak point targets, and uses a fixed threshold to segment and detect target points for point targets with a high signal-to-noise ratio. The invention realizes the automatic detection of weak and small infrared point targets under complex background conditions, greatly improves the target detection probability and anti-interference ability, and has extremely wide application prospects in civil and military applications.
Description
技术领域technical field
本发明涉及一种用于图像处理技术领域的目标检测方法,具体是一种形态学滤波器自动目标检测方法。The invention relates to a target detection method used in the technical field of image processing, in particular to a morphological filter automatic target detection method.
背景技术Background technique
近年来,随着对形态学的研究发展,形态学图象处理这门特殊的图象处理学科逐渐发展成为图象处理的一个主要研究领域,并逐步成为弱小目标检测和识别的有利工具。形态学滤波器可分解为形态学运算和结构元素这两个基本的问题。腐蚀,膨胀,开和闭算子是形态学运算的4种基本算子,对这4个基本算子进行组合可以得出具有不同特性的形态学算子。当形态学运算规则确定后,形态滤波器的最终滤波性能就仅仅取决于结构元的选择,包括结构元素的形状和元素值。选择不同的结构元会导致运算对不同几何结构信息的分析和处理。在以往关于利用形态学算子对红外弱小目标进行检测的研究中,结构元素都是事先确定好了的。因此,这些滤波器仅仅在所对应的某类图像模型中具有较好的滤波性能。然而,通常情况下图像信号极为复杂且处于不断变化之中,这就要求选用的结构元素应具有自适应功能,以实现最优化处理。In recent years, with the development of research on morphology, morphological image processing, a special subject of image processing, has gradually developed into a major research field of image processing, and has gradually become a useful tool for weak and small target detection and recognition. Morphological filters can be decomposed into two basic problems of morphological operations and structural elements. Erosion, dilation, opening and closing operators are the four basic operators of morphological operations. Combining these four basic operators can result in morphological operators with different characteristics. When the morphological operation rules are determined, the final filtering performance of the morphological filter only depends on the selection of structural elements, including the shape and element value of structural elements. The selection of different structural elements will lead to the analysis and processing of different geometric structure information. In previous researches on using morphological operators to detect small infrared targets, the structural elements were determined in advance. Therefore, these filters only have good filtering performance in a certain type of corresponding image model. However, under normal circumstances, image signals are extremely complex and are constantly changing, which requires that the selected structural elements should have adaptive functions to achieve optimal processing.
目前,对于结构元素的优化训练,国内外研究者提出了形态学神经网络和形态学遗传算法两种学习方法。其中,将遗传算法与形态学滤波器相结合,利用遗传算法训练形态学滤波器结构元素以实现最优化处理是近年来国内外学者在红外点目标检测问题中重点研究的一种方法。At present, for the optimization training of structural elements, researchers at home and abroad have proposed two learning methods: morphological neural network and morphological genetic algorithm. Among them, combining the genetic algorithm with the morphological filter and using the genetic algorithm to train the structural elements of the morphological filter to achieve optimal processing is a method that domestic and foreign scholars have focused on in the infrared point target detection problem in recent years.
经对现有技术的文献检索发现,Terebes R等人在《Signal Processing,20026th International Conference on》(Volume:1,26-30 Aug.2002.Pages:853-857vol.1)(《2002年第6次信号处理国际会议》)上发表的“Adaptive Filtering UsingMorphological Operators and Genetic Algorithms”,(“基于形态学算子和遗传算法的自适应滤波”)该文中提出的遗传算法采用常规的交叉与变异算子,使得其在收敛寻优过程中效率不高。遗传算法是在概率意义上找到全局最优点,所要处理的数据量大,同时,对于作为检测红外弱小点目标的首选,目前对于Top-Hat形态学滤波器结构元素的自适应优化训练研究还较为薄弱。Found through literature search to prior art, people such as Terebes R are in " Signal Processing, 20026th International Conference on " (Volume: 1,26-30 Aug.2002.Pages: 853-857vol.1) (" 2002 the 6th "Adaptive Filtering Using Morphological Operators and Genetic Algorithms" published at the Second International Conference on Signal Processing), ("Adaptive Filtering Based on Morphological Operators and Genetic Algorithms") The genetic algorithm proposed in this paper uses conventional crossover and mutation operators , making it inefficient in the process of convergence optimization. The genetic algorithm is to find the global optimal point in the sense of probability, and the amount of data to be processed is large. At the same time, as the first choice for detecting infrared weak point targets, the current research on adaptive optimization training of Top-Hat morphological filter structural elements is relatively limited. weak.
发明内容Contents of the invention
本发明的目的在于克服现有技术存在的不足,提出一种形态学滤波器自动目标检测方法,使其基于遗传算法优化训练,采用区间离散化编码和自适应的主次式交叉与变异算子的遗传算法,以用来优化训练结构元素,同时,选择Top-Hat高通滤波算子作为形态学滤波器算子,从而有效克服现有遗传算法优化形态学滤波器技术中滤波器最优性能不高,遗传算法收敛时间较长,寻优效率不高等缺点。The purpose of the present invention is to overcome the deficiencies in the prior art, and propose a morphological filter automatic target detection method, which optimizes training based on genetic algorithms, adopts interval discretization coding and self-adaptive primary and secondary crossover and mutation operators The genetic algorithm is used to optimize the training structural elements. At the same time, the Top-Hat high-pass filter operator is selected as the morphological filter operator, so as to effectively overcome the optimal performance of the filter in the existing genetic algorithm optimization morphological filter technology. High, the convergence time of the genetic algorithm is long, and the optimization efficiency is not high.
本发明是通过以下技术方案实现的,首先采集用来优化训练结构元素的训练样本,这些样本应尽可能包含各种点目标和背景,构造用于优化训练的遗传算法,该遗传算法采用新的区间离散化编码和自适应的主次式交叉与变异算子,利用采集到的样本用该遗传算法优化训练结构元素值,在这些优化好的结构元素的基础上构造基于Top-Hat算子的形态学滤波器,对红外目标图象进行滤波。最后针对所检测的大多数弱小点目标采用自适应门限进行分割,对信躁比较高的点目标用固定门限进行分割检测出目标点。The present invention is achieved through the following technical solutions. First, collect training samples for optimizing training structural elements. These samples should contain various point targets and backgrounds as much as possible, and construct a genetic algorithm for optimizing training. The genetic algorithm adopts a new Interval discretization coding and adaptive primary and secondary crossover and mutation operators, using the collected samples to optimize the value of the training structural elements with the genetic algorithm, and constructing the Top-Hat operator based on these optimized structural elements Morphological filter, which filters the infrared target image. Finally, the self-adaptive threshold is used to segment most of the detected weak point targets, and the fixed threshold is used to segment and detect target points for point targets with relatively high signal-to-noise ratio.
以下对本发明最进一步的说明,包括如下步骤:The following is the further description of the present invention, including the steps:
(1)构造用于优化训练的遗传算法(1) Construct a genetic algorithm for optimal training
具体包括编码,个体适应度计算,交叉和变异这几步。其中,编码方式采取一种新的区间离散化编码,这相当于将个体分量的取值实数范围离散化。然后计算群体中每个染色体的适应函数值,以下文遗传算法STEP3中所示概率用轮盘选择法从群体中随机选取一些染色体构成一个种群,最后通过自适应的主次式交叉与变异运算生成个新的群体。It specifically includes the steps of encoding, individual fitness calculation, crossover and mutation. Among them, the encoding method adopts a new interval discretization encoding, which is equivalent to discretizing the real number range of the value of the individual component. Then calculate the fitness function value of each chromosome in the population, use the roulette selection method to randomly select some chromosomes from the population to form a population with the probability shown in the genetic algorithm STEP3 below, and finally generate a population through adaptive primary and secondary crossover and mutation operations a new group.
遗传算法是一个群体优化过程,它是由一组初始值(生物群体)出发进行优化。这里,群体是指状态空间的有限点集,用pop表示。所谓优化的过程就是这个群体pop不断繁衍,竞争,遗传和变异的过程。依照生物学术语,将pop中任一有限点集{a1,…,an}称为一个种群,n为该种群的规模。pop中任一点popi=ai (1)ai (2)…ai (D)(1≤i≤n)称为一个个体或染色体,而popi中每一ai (j)(l≤j≤D)称之为基因。遗传算法一般描述如下:Genetic algorithm is a group optimization process, which starts from a group of initial values (biological group) for optimization. Here, a population refers to a finite set of points in the state space, denoted by pop. The so-called optimization process is the process of continuous reproduction, competition, inheritance and mutation of this group of pops. According to biological terms, any finite point set {a 1 ,..., a n } in pop is called a population, and n is the size of the population. Any point in pop i = a i (1) a i (2) ...a i (D) (1≤i≤n) is called an individual or chromosome, and each a i ( j) (l ≤j≤D) are called genes. Genetic algorithms are generally described as follows:
STEP1选择问题的一个编码;给出一个有N个染色体的初始群体pop(1),t=1。A coding of STEP1 selection problem; given an initial population pop(1) with N chromosomes, t=1.
STEP2对群体pop(t)中的每个染色体popi(t)计算它的适应值函数STEP2 calculates its fitness value function for each chromosome pop i (t) in the population pop(t)
fi=fitness(popi(t))f i =fitness(pop i (t))
STEP3若停止规则满足,则算法停止;否则,计算概率STEP3 If the stopping rule is satisfied, the algorithm stops; otherwise, calculate the probability
其中{Tk}为渐趋于0的退火温度,且
并以此概率分布从pop(t)中随机选一些染色体构成一个种群And use this probability distribution to randomly select some chromosomes from pop(t) to form a population
newpop(t+1)={popj(t)|j=1,2,…,N}newpop(t+1)={pop j (t)|j=1, 2,..., N}
STEP4通过交配,交配概率为Pc,得到一个有N个染色体的crosspop(t+1)。STEP4: Through mating, the mating probability is P c , and a crosspop(t+1) with N chromosomes is obtained.
STEP5以一个较小的概率Pm,使得染色体的基因发生变异,形成mutpop(t+1);STEP5 mutates the genes of the chromosome with a small probability P m to form mutpop(t+1);
令t=t+1,一个新的群体pop(t)=mutpop(t)生成;返回STEP2。Let t=t+1, a new group pop(t)=mutpop(t) is generated; return to STEP2.
(2)基于自适应门限的分割(2) Segmentation based on adaptive threshold
门限的确定应针对每个n×n图像单元,采用单帧检测概率,虚警概率及信噪比定门限。自适应门限分割对于弱小点目标的检测是非常有效的,但是对于信噪比较高的点目标却不能很好的检测出来。这是因为随着点目标信噪比的提高,自适应门限增长的速度远远大于点目标经开余运算后值的增长速度。如果降低自适应门限的增长速度使之与目标信噪比的增长速度相适应,又不能有效检测出弱小点目标。为此,本发明中针对每个n×n图像单元的均方差给定一阈值,因为信噪比较高的点目标利用固定门限就能很好的将其检测出来,所以高于此阈值的点目标利用固定门限进行分割检测,低于此阈值的弱小点目标利用自适应门限进行分割检测。The determination of the threshold should be based on the detection probability of a single frame, the false alarm probability and the signal-to-noise ratio for each n×n image unit. Adaptive threshold segmentation is very effective for the detection of small point targets, but it cannot detect point targets with high signal-to-noise ratio. This is because as the signal-to-noise ratio of the point target increases, the growth rate of the adaptive threshold is far greater than the growth rate of the value of the point target after the remainder operation. If the growth rate of the adaptive threshold is reduced to adapt to the growth rate of the target signal-to-noise ratio, weak point targets cannot be effectively detected. For this reason, in the present invention, a threshold is given for the mean square error of each n×n image unit, because point targets with a higher signal-to-noise ratio can be detected well by using a fixed threshold, so higher than this threshold Point targets are segmented and detected with a fixed threshold, and weak point targets below this threshold are segmented and detected with an adaptive threshold.
本发明的方法中,形态学算子选用具有高通滤波性的Top-Hat算子,可以有效的提高滤波器对目标点的检测能力和对背景噪声的抑制能力。用于优化训练滤波器的遗传算法采用新的区间离散化编码和自适应的交叉与变异算子,有效克服了以往方法中采用常规编码所带来的优化性能不高,收敛时间较长等缺点,以及提高遗传算法收敛寻优过程中的时效性,从而较大提高形态学滤波器的滤波性能。本发明在军事民用两方面有广泛的运用前途,可以为提高我国地空导弹的制导精度、扩大导弹的攻击范围(中远程)奠定基础,同时该技术还有助于提高地面电子支援系统的搜索预警跟踪性能,极大的提高我国的军事装备力量。In the method of the present invention, the morphological operator selects the Top-Hat operator with high-pass filter performance, which can effectively improve the detection ability of the filter to the target point and the suppression ability to the background noise. The genetic algorithm used to optimize the training filter adopts new interval discretization coding and adaptive crossover and mutation operators, which effectively overcomes the disadvantages of low optimization performance and long convergence time caused by conventional coding in previous methods , and improve the timeliness of the genetic algorithm convergence optimization process, thereby greatly improving the filtering performance of the morphological filter. The present invention has wide application prospects in both military and civilian uses, and can lay the foundation for improving the guidance accuracy of my country's surface-to-air missiles and expanding the attack range (middle and long range) of missiles. The early warning and tracking performance greatly improves the military equipment strength of our country.
附图说明Description of drawings
图1为本发明基于遗传算法优化训练的形态学Top-Hat滤波器原理框图Fig. 1 is the principle block diagram of the morphology Top-Hat filter based on genetic algorithm optimization training of the present invention
图2为本发明对连续四幅低信噪比图象进行滤波处理后结果对比图。Fig. 2 is a comparison diagram of the results after filter processing of four consecutive low SNR images according to the present invention.
其中,图2(a),(b),(c),(d)为连续的四帧原始图象,图2(e),(f),(g),(h)为运用本发明对它们进行滤波后的结果图象。Wherein, Fig. 2 (a), (b), (c), (d) are continuous four frames of original images, and Fig. 2 (e), (f), (g), (h) is to use the present invention to They are the resultant image after filtering.
图3为应用本发明与基于神经网络优化训练的Top-Hat滤波器分别对同一幅图象中的弱小点目标进行检测后的对比图。Fig. 3 is a comparison diagram after the application of the present invention and the Top-Hat filter based on neural network optimization training to respectively detect weak and small point targets in the same image.
其中,图3(a)为待滤波的原始图象,图3(b)为用基于神经网络优化训练的Top-Hat滤波器对原始图象进行滤波后的结果图象,图3(c)为运用本发明对原始图象进行滤波后的结果图象。Among them, Fig. 3 (a) is the original image to be filtered, Fig. 3 (b) is the result image after filtering the original image with the Top-Hat filter based on neural network optimization training, Fig. 3 (c) It is the result image after filtering the original image by using the present invention.
具体实施方式Detailed ways
为了更好地了解本发明的技术方案,以下结合附图对本发明的实施方式做进一步描述。In order to better understand the technical solutions of the present invention, the implementation manners of the present invention will be further described below in conjunction with the accompanying drawings.
本发明基于遗传算法优化训练的形态学滤波器对红外弱小点目标进行检测的原理框图如图1所示,滤波过程主要分为形态学滤波和门限分割两部分。其中形态学滤波是目标检测的重点,形态学滤波器可分解为形态学运算和结构元素这两个基本的问题。当形态学运算规则确定后,形态滤波器的最终滤波性能就仅仅取决于结构元的选择。本发明利用一系列事先得到的样本数据用遗传算法对滤波器结构元素进行训练,以获得最佳的滤波器参数。其中,遗传算法包括编码,个体适应度计算,交叉和变异这几步。原始图象通过遗传算法优化训练后的形态学滤波器滤波后,最后针对所检测的大多数弱小点目标采用自适应门限进行分割,对信躁比较高的点目标用固定门限进行分割检测出目标点。The principle block diagram of the detection of weak and small infrared point targets by the morphological filter based on genetic algorithm optimization training of the present invention is shown in Fig. 1, and the filtering process is mainly divided into two parts: morphological filtering and threshold segmentation. Among them, morphological filtering is the focus of target detection, and morphological filtering can be decomposed into two basic problems of morphological operation and structural elements. When the morphological operation rules are determined, the final filtering performance of the morphological filter only depends on the selection of structural elements. The invention utilizes a series of sample data obtained in advance to train the filter structural elements with a genetic algorithm to obtain the best filter parameters. Among them, the genetic algorithm includes coding, individual fitness calculation, crossover and mutation. After the original image is filtered by the morphological filter optimized and trained by the genetic algorithm, an adaptive threshold is used to segment most of the weak point targets detected, and a fixed threshold is used to segment the point targets with relatively high signal noise to detect the target point.
各部分具体实施细节如下:The specific implementation details of each part are as follows:
1.构造用于优化训练的遗传算法1. Construct a genetic algorithm for optimal training
形态学滤波器参数主要由结构元素的各分量值构成,其训练学习过程属多参数优化问题。为此,将它们映射为遗传空间中由基因组成的串结构数据时,采用多参数编码方式。本发明引入一种新的区间离散化编码,假设个体B的各分量取值为区间[xmin,xmax]中的所有实数。此时,先确定构造的字符串长度K,然后在[xmin,xmax]上等间距地插入2K-2个点,每相邻两点的距离为Morphological filter parameters are mainly composed of component values of structural elements, and its training and learning process is a multi-parameter optimization problem. For this reason, when they are mapped to the string structure data composed of genes in the genetic space, a multi-parameter encoding method is adopted. The present invention introduces a new interval discretization coding, assuming that each component of the individual B is all real numbers in the interval [x min , x max ]. At this time, first determine the length K of the constructed string, and then insert 2 K -2 points at equal intervals on [x min , x max ], and the distance between two adjacent points is
则在[xmin,xmax]上选取了2K个点,它们分别为xmin,xmin+δ,xmin+2δ,…,xmin+(2K-1)δ=xmax,这2K个点分别用K位二进制数表示,即Then 2 K points are selected on [x min , x max ], they are respectively x min , x min +δ, x min +2δ,..., x min +(2 K -1)δ=x max , which 2 K points are represented by K-bit binary numbers respectively, namely
对区间离散化编码与常规编码分别进行仿真,仿真结果如表3,表4所示,表3为本发明与采用常规编码遗传算法训练时算法收敛到不同适应度情况下耗用CPU时间比较。表4为本发明与采用常规编码遗传算法训练时在一定循环次数下对个体适应度进行比较。表3反映了本发明中的区间离散化编码遗传算法收敛速度要大于常规编码遗传算法收敛速度,表4反映了其优化性能要好于常规编码遗传算法的优化性能。The interval discretization coding and the conventional coding are simulated respectively, and the simulation results are shown in Table 3 and Table 4. Table 3 is a comparison of the CPU time consumed when the algorithm converges to different fitness levels when the conventional coding genetic algorithm is used for training. Table 4 compares the individual fitness under a certain number of cycles when the present invention is trained with the conventional coding genetic algorithm. Table 3 reflects that the convergence speed of the interval discretization coding genetic algorithm in the present invention is faster than that of the conventional coding genetic algorithm, and Table 4 reflects that its optimization performance is better than that of the conventional coding genetic algorithm.
遗传算法学习规则中需要引入相关的先验知识和统计规律加以约束,并提供优选标准(代价函数)以引导求解过程。对于滤波参数的优化训练而言,最关键的乃是形态滤波器的非线性映射输出要尽量地逼近训练样本的期望值,即要求最优解同所有示例保持一致且为最优的描述。同时,还需兼顾终止算法(停机准则)的可操纵性。因此,本发明选用最优解目标的平方误差代价函数作为纠偏与牵引优化搜索的代价函数较为理想,定义如下:The genetic algorithm learning rules need to introduce relevant prior knowledge and statistical laws to be constrained, and provide an optimal standard (cost function) to guide the solution process. For the optimization training of filtering parameters, the most critical thing is that the nonlinear mapping output of the morphological filter should be as close as possible to the expected value of the training samples, that is, the optimal solution is required to be consistent with all examples and be an optimal description. At the same time, it is also necessary to take into account the maneuverability of the termination algorithm (shutdown criterion). Therefore, the present invention selects the square error cost function of the optimal solution target as the cost function of deviation correction and traction optimization search, which is more ideal, and is defined as follows:
这里L为训练样本数,dk为输出对应的第k个输入信号的期望值,Yk定义为Top-Hat形态学滤波器在第k个训练样本输入后输出矩阵的最大值,如下所示:Here L is the number of training samples, d k is the expected value of the k-th input signal corresponding to the output, and Y k is defined as the maximum value of the output matrix of the Top-Hat morphological filter after the k-th training sample is input, as shown below:
开余运算时When surplus operation
Yk=max(Fk-(Fk·B)(x))Y k =max(F k -(F k ·B)(x))
闭余运算时closed remainder operation
Yk=max((Fk·B)(x)-Fk)Y k =max((F k ·B)(x)-F k )
于是个体popi(t)的适应值函数fi=fitness(popi(t))定义为:Then the fitness value function f i =fitness(pop i (t)) of individual pop i (t) is defined as:
双亲的染色体在一定概率下以交叉的方式产生出子代染色体,从而使子代个体遗传双亲的基本特征。本发明新设计出一种主次式交叉算子,其思想是在算法初期,交叉运算主要针对原点附近的高权重分量,以加大优质解的生成速度和生成概率,加速淘汰劣质解,从而使搜索域及早转向具有优化潜力的解空间;在算法后期,交叉运算则重点针对个体边缘的低权重分量,以保护优化好的高权重分量,并逐渐优化次要分量。为此,大小n×n的结构元素可以看作为一系列以原点为中心的矩形,其某分量权重的大小程度以它所在矩形的边长来度量。结构元素中i×i的矩形其边长定义为i。The chromosomes of the parents are crossed to produce offspring chromosomes under a certain probability, so that the offspring individuals inherit the basic characteristics of the parents. The present invention newly designs a primary-subordinate crossover operator. The idea is that in the early stage of the algorithm, the crossover operation is mainly aimed at high-weight components near the origin, so as to increase the generation speed and probability of high-quality solutions and accelerate the elimination of low-quality solutions, thereby Make the search domain turn to the solution space with optimization potential as early as possible; in the later stage of the algorithm, the crossover operation focuses on the low-weight components of individual edges to protect the optimized high-weight components, and gradually optimize the secondary components. For this reason, the structural elements of size n×n can be regarded as a series of rectangles centered on the origin, and the weight of a certain component is measured by the side length of the rectangle where it is located. The side length of the i×i rectangle in the structural element is defined as i.
给定矢量集Q上2个结构元素个体pop1(t)和pop2(t).主次式交叉概率定义如下:Given two structural element individuals pop 1 (t) and pop 2 (t) on the vector set Q. The primary and secondary crossover probability is defined as follows:
式中η为适应度常数,L为个体分量所在矩形的边长,K1,K2为常数,α,β>0为权重常数, 为群体的平均适应值,定义如下In the formula, η is the fitness constant, L is the side length of the rectangle where the individual component is located, K 1 and K 2 are constants, α, β>0 are weight constants, is the average fitness value of the group, defined as follows
每次交叉运算进行时,以遗传算法STEP3中所示的概率用轮盘选择法从数量为N的群体中随机选取N/2个样本作为种群。本发明采取一种新的遍历式交叉规则如下:When the crossover operation is performed each time, N/2 samples are randomly selected as the population from the population with the number of N by the roulette selection method with the probability shown in the genetic algorithm STEP3. The present invention adopts a new ergodic intersection rule as follows:
{crosspopi,crosspop(N/2)+i}=cop(newpopi,newpops)1≤i≤N/2其中,cop()为交叉函数,newpopi为种群中第i个个体,newpops为每次交叉运算时以遗传算法STEP3中所示概率用轮盘选择法从种群中选择出来的个体,crosspopi,crosspopN/2+i为每次交叉运算后新生成的个体。这样在每一轮交叉运算结束后,产生出的新群体染色体个数与原群体染色体个数一样。{crosspop i , crosspop (N/2)+i }=cop(newpop i , newpop s )1≤i≤N/2 Among them, cop() is the cross function, newpop i is the i-th individual in the population, newpop s is the individual selected from the population by the roulette selection method with the probability shown in the genetic algorithm STEP3 at each crossover operation, and crosspop i and crosspop N/2+i are newly generated individuals after each crossover operation. In this way, after each round of crossover operation, the number of chromosomes in the new population generated is the same as the number of chromosomes in the original population.
变异算子实现群体的优化改良,为交叉过程中可能丢失的某些遗传基因进行修复和补充,恢复群体失去的多样性,以避免陷入局部最优。The mutation operator realizes the optimization and improvement of the population, repairs and supplements some genetic genes that may be lost during the crossover process, and restores the lost diversity of the population to avoid falling into local optimum.
本发明根据先主后次,权重优先的优化原则采取新的主次式变异,在算法初期,变异操作主要针对个体原点附近的高权重分量,以减小这一阶段对次要分量不必要的盲目搜索;而在算法后期变异操作主要针对个体边缘的低权重分量,以保持优化好的主要分量,并渐进优化次要分量。The present invention adopts a new primary and secondary variation based on the optimization principle of priority first, weight priority. In the early stage of the algorithm, the variation operation is mainly aimed at the high weight components near the individual origin, so as to reduce the unnecessary impact on the secondary components at this stage. Blind search; in the late stage of the algorithm, the mutation operation is mainly aimed at the low-weight components of the individual edge, so as to maintain the optimized main components and gradually optimize the secondary components.
定义主次式变异概率如下:Define the primary-minor variation probability as follows:
式中,P1,P2为幅值常数,σ为调节个体参数权重大小的常数,τ为调节Pm随时间衰减快慢的时间常数,T为遗传算法设置的最大代数。In the formula, P 1 and P 2 are amplitude constants, σ is a constant to adjust the weight of individual parameters, τ is a time constant to adjust the decay speed of P m with time, and T is the maximum algebra set by the genetic algorithm.
2.基于自适应门限的分割2. Segmentation based on adaptive threshold
本发明根据对所检测的大多数弱小点目标采用自适应门限进行分割,对信躁比较高的点目标用固定门限进行分割这一思想,采用单帧检测概率,虚警概率及信噪比定义自适应门限如下:According to the idea of using adaptive threshold to segment most of the detected weak and small point targets and using a fixed threshold to segment point targets with relatively high signal noise, the present invention adopts the definition of single frame detection probability, false alarm probability and signal-to-noise ratio The adaptive threshold is as follows:
其中,pd为单帧检测概率,SNR为信噪比,v为检测门限,u为某个n×n图象单元背景对消后的噪声均值,σ2为噪声均方差。u和σ2的求法如下式Among them, p d is the detection probability of a single frame, SNR is the signal-to-noise ratio, v is the detection threshold, u is the mean value of the noise after the background cancellation of an n×n image unit, and σ 2 is the mean square error of the noise. The calculation method of u and σ 2 is as follows
g为原始图象灰度,f为形态滤波开运算后的灰度。g is the gray level of the original image, and f is the gray level after the morphological filtering operation.
运用本发明对一系列红外弱小点目标图象进行滤波处理,滤波结果如图2所示。并且与采用不同结构元素滤波器以及不同形态学算子滤波器分别进行仿真比较,结果如表1,表2所示。表1为本发明与另外两种采取不同结构元素的滤波器对100幅不同信噪比的图象进行单帧滤波处理比较。其中,方式(1)为用固定结构元素的Top-Hat形态学滤波器进行滤波处理,方式(2)为用神经网络优化训练了结构元素的Top-Hat形态学滤波器进行滤波处理,方式(3)为用本发明进行滤波处理。表2为本发明与采用不同形态学算子滤波器在不同信噪比情况下进行单帧滤波处理比较。从中可以看出本发明的方法与采用固定结构元素,用神经网络优化训练结构元素以及采用其他形态学算子的滤波器相比,可以显著提高对弱小点目标图象的滤波性能。与采用神经网络优化训练结构元素的形态学滤波器想比较,本发明还可以检测出一些它不能检测出的弱小点目标,如图3所示。Using the present invention to filter a series of infrared weak point target images, the filtering results are shown in FIG. 2 . And compared with different structural element filters and different morphological operator filters, the results are shown in Table 1 and Table 2. Table 1 compares the single-frame filtering processing of 100 images with different signal-to-noise ratios by the present invention and other two filters adopting different structural elements. Among them, the way (1) is to use the Top-Hat morphological filter with fixed structural elements for filtering processing, the way (2) is to use the neural network to optimize the training of the Top-Hat morphological filter for structural elements to perform filtering processing, and the way ( 3) To perform filter processing with the present invention. Table 2 shows the comparison between the present invention and the single-frame filtering process using different morphological operator filters under different signal-to-noise ratios. It can be seen that the method of the present invention can remarkably improve the filtering performance of weak and small target images compared with filters using fixed structural elements, neural network optimization training structural elements and other morphological operators. Compared with the morphological filter that uses the neural network to optimize the training structure elements, the present invention can also detect some weak point targets that it cannot detect, as shown in FIG. 3 .
对比现有的红外弱小目标检测技术,本发明可以有效的抑制各种噪声干扰,对信噪比较低的点目标进行准确检测,能够达到工程化的实用效果。同时从整个实现步骤可知,本发明方法易于实现,从而为红外弱小点目标检测的工程化提供了一个技术实现方法。Compared with the existing infrared weak and small target detection technology, the present invention can effectively suppress various noise interference, accurately detect point targets with low signal-to-noise ratio, and achieve engineering practical effect. At the same time, it can be seen from the whole implementation steps that the method of the present invention is easy to implement, thus providing a technical implementation method for the engineering of infrared weak point target detection.
表1不同结构元素滤波器检测目标概率对比表Table 1 Comparison table of detection target probabilities of filters with different structural elements
表2不同形态学算子滤波器检测目标概率对比表Table 2 Comparison table of detection target probability of different morphological operator filters
表3不同编码方式遗传算法收敛时间表Table 3 Convergence schedule of genetic algorithm with different coding methods
表4不同编码方式遗传算法优化训练性能对比表Table 4 Comparison table of genetic algorithm optimization training performance with different coding methods
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100680247A CN1312636C (en) | 2004-11-11 | 2004-11-11 | Morphologic filter automatic destination detecting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100680247A CN1312636C (en) | 2004-11-11 | 2004-11-11 | Morphologic filter automatic destination detecting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1604140A CN1604140A (en) | 2005-04-06 |
CN1312636C true CN1312636C (en) | 2007-04-25 |
Family
ID=34666751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100680247A Expired - Fee Related CN1312636C (en) | 2004-11-11 | 2004-11-11 | Morphologic filter automatic destination detecting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1312636C (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1751857B (en) * | 2005-09-27 | 2010-04-28 | 上海理工大学 | Automatic optimizing design method for constant force griding wave filter |
CN102622735A (en) * | 2012-04-18 | 2012-08-01 | 江苏技术师范学院 | Secondary de-noising image processing method |
CN103440629B (en) * | 2013-08-29 | 2016-06-15 | 浙江理工大学 | Laser labelling is from the digital image processing method of the Video Extensometer of motion tracking |
CN104036458A (en) * | 2013-11-13 | 2014-09-10 | 扬州西岐自动化科技有限公司 | Image filtering algorithm based on genetic algorithm and Shearlet wavelet |
CN103716012B (en) * | 2013-12-11 | 2016-08-17 | 燕山大学 | A kind of filtering method analyzed based on iteration self-adapting Multiscale Morphological |
CN104134221B (en) * | 2014-08-21 | 2017-01-25 | 河海大学 | Image segmentation method based on self-adaptive genetic algorithm and OTSU algorithm |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1484193A (en) * | 2003-07-03 | 2004-03-24 | 上海交通大学 | Multi-frame Fuzzy Detection Method for Point Targets in Low SNR Infrared Image Sequences |
CN1514408A (en) * | 2002-09-12 | 2004-07-21 | 上海交通大学 | Detection and Tracking Method of Infrared Weak and Small Targets under Complicated Background Conditions |
-
2004
- 2004-11-11 CN CNB2004100680247A patent/CN1312636C/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1514408A (en) * | 2002-09-12 | 2004-07-21 | 上海交通大学 | Detection and Tracking Method of Infrared Weak and Small Targets under Complicated Background Conditions |
CN1484193A (en) * | 2003-07-03 | 2004-03-24 | 上海交通大学 | Multi-frame Fuzzy Detection Method for Point Targets in Low SNR Infrared Image Sequences |
Non-Patent Citations (3)
Title |
---|
"一种快速实时的低信噪比红外点、斑点目标检测方法" 张弘,赵保军,史彩成,毛二可,北京理工大学学报,第21卷第3期 2001;"自动检测图像目标的形态滤波遗传算法" 余农,李予蜀,王润生,计算机学报,第24卷第4期 2001 * |
"一种快速实时的低信噪比红外点、斑点目标检测方法" 张弘,赵保军,史彩成,毛二可,北京理工大学学报,第21卷第3期 2001 * |
"自动检测图像目标的形态滤波遗传算法" 余农,李予蜀,王润生,计算机学报,第24卷第4期 2001 * |
Also Published As
Publication number | Publication date |
---|---|
CN1604140A (en) | 2005-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112731309B (en) | Active interference identification method based on bilinear efficient neural network | |
CN111199127B (en) | A Radar Jamming Decision-Making Method Based on Deep Reinforcement Learning | |
CN108229550A (en) | A kind of cloud atlas sorting technique that network of forests network is cascaded based on more granularities | |
CN104408529A (en) | Short-term load predicting method of power grid | |
CN104156943B (en) | Multi objective fuzzy cluster image change detection method based on non-dominant neighborhood immune algorithm | |
CN108305619A (en) | Voice data collection training method and apparatus | |
CN116542382A (en) | Sewage treatment dissolved oxygen concentration prediction method based on mixed optimization algorithm | |
CN113657491A (en) | Neural network design method for signal modulation type recognition | |
CN106952275A (en) | A Cell Image Segmentation Method Based on Particle Swarm Neural Network | |
CN110837915A (en) | A low-voltage load point forecasting and probabilistic forecasting method for power systems based on hybrid ensemble deep learning | |
CN109919921B (en) | Environmental impact degree modeling method based on generation countermeasure network | |
CN101740029A (en) | Three-particle cooperative optimization method applied to vector quantization-based speaker recognition | |
CN115186882A (en) | A clustering-based method for predicting the spatial density of controllable loads | |
CN1870051A (en) | Infrared small object single-frame detection method based on nerve network and morphology | |
CN1312636C (en) | Morphologic filter automatic destination detecting method | |
CN117454939A (en) | A wind power power prediction method based on NSABO-Gold algorithm optimizing BP neural network | |
CN115409317A (en) | Transformer area line loss detection method and device based on feature selection and machine learning | |
CN113393317A (en) | Automobile financial loan wind control system based on algorithm, big data and block chain | |
CN113343924B (en) | Modulation signal identification method based on cyclic spectrum characteristics and generation countermeasure network | |
CN111832818B (en) | A multi-step prediction method for LSTM network power generation based on correlation analysis | |
CN109447997A (en) | A kind of underwater sonar image object dividing method of adaptive Cultural Algorithm | |
Li | Research on bank credit risk assessment based on BP neural network | |
CN112308214A (en) | Deep learning improved algorithm for cold source disaster substance disaster prediction | |
CN115996135B (en) | Industrial Internet malicious behavior real-time detection method based on feature combination optimization | |
CN114372495B (en) | Electric energy quality disturbance classification method and system based on deep space residual error learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070425 Termination date: 20091211 |