Matlab Code for Target Detection


Huge Price Drop : 50% Discount
Source Code + Demo Video

100 in stock

SKU: Target-Detection-Article Category:



Robust small target detection of low signal-to-noise ratio (SNR) is important in infrared search and track applications for self-defense or attacks. Due to the complex background, current algorithms have some unsolved issues with false alarm rate. In order to reduce the false alarm rate, an infrared small target detection algorithm based on saliency detection and support vector machine was proposed. Firstly, we detect salient regions that may contain targets with phase spectrum Fourier transform (PFT) approach. Then, target recognition was performed in the salient regions. Experimental results show the proposed algorithm has ideal robustness and efficiency for real infrared small target detection applications.



Infrared (IR) small-target detection plays a critical role in large amounts of practical projects such as infrared warning and defense alertness, in which not only accuracy is needed but also robustness is required . Various algorithms have been developed in the past few decades . Conventional small target detection methods such as top-hat filter, max-mean/max-median filter  and high-pass filters based on  support vector machine (SVM)  are widely used to reduce the background clutters. In recent years, a series of simple and fast algorithm based on Fourier transform was proposed, such as spectral residual (SR) , phase spectrum of Fourier transform (PFT) , hyper complex Fourier transform (HFT) . With regards to small target detection, frequency domain method is quite different from other methods. It transforms the airspace information to the frequency domain, defines significant target and tests in the frequency domain. While, spectral residual (SR) approach does not rely on the parameters. It calculates the difference between the original signal and a smooth one in the log amplitude spectrum, and then makes up a saliency map by transforming SR to spatial domain. PFT approach detects small targets from the reconstruction that is calculated only by the phase spectrum of the input signal. It omits the computation of SR in the amplitude spectrum, which saves about 1/3 computational cost.


To detect the target here we are using the neural network classifier. But some drawbacks consisting in the neural  network classification.


  • Often abused in cases where simpler solutions like linear regression would be best
  • Requires a shit load of training and cases
  • Black box that not much can be gleaned from
  • Increasing accuracy by a few percent can bump up the scale by several magnitudes


HVS divides the scene into small patches and select important information through visual attention selection mechanism to make it easy to understand and analyze. On the other hand, as a component of low-level artificial vision processing, it facilitates subsequent procedures by reducing computational cost, which is a key consideration in real-time applications. Based on the above knowledge, we propose a framework consisting of two stages inspired by HVS. In pre detection stage, a saliency map (SM) is obtained and the most salient region is picked up to improve detection speed. In detection stage, a support vector machines (SVM) classifier is used to get the target quickly. Due to the two layers structure, the algorithm computational complexity becomes the prime concern. For the simplicity and high processing speed, saliency detection methods in the frequency domain are chosen. For instance, PFT is an advanced and effective method in saliency detection and expounds the real significance of frequency domain significant. Details will be described. Candidate targets can be got through PFT followed by threshold operation.


target detection using matlab


  • High spectral resolution
  • Accurate target detection


  • MATLAB 7.14 and above


  • Tracking objects
  • Pedestrian detection

Matlab code for Target Detection




In this paper, a robust IR small target detection algorithm based on HVS has been proposed. First we propose features of each database image and every input object image. Then SVM classifier separates targets from background clutters. Experimental results show that the proposed algorithm is robust to resist pseudo targets and can achieve a high detection rate in less than 0.02 s with a fast calculation speed. This algorithm can be either directly used in single-frame target detection or used as a foundation module in sequential target tracking for real-time applications.


1 GUO, W.; Sun, J.; Lin. H. Dynamic template preparing and application on FLIR target recognition. In Proceedings of the IEEE International Conference on Electrical and Control Engineering (ICECE), Wuhan, China, 25–27 June 2010; pp. 864–867.

2. Tom, V.T.; Peli, T.; Leung, M.; Bondaryk, J.E. Morphology-based algorithm for point target detection in infrared backgrounds. Pro. SPIE 1993, 1954, doi:10.1117/12.157758.

3. Deshpande, S.D.; Meng, H.E.; Venkateswarlu, R.; Chan, P. Max-mean and max-median filters for detection of small targets. In Proceedings of the SPIE’s International Symposium on Optical Science, Engineering, and Instrumentation, Denver, CO, USA, 18–23 July 1999; pp. 74–83.

4. Wang, P.; Tian, J.; Gao, C.Q. Infrared small target detection using directional highpass filters based on LS-SVM. Electron. Lett. 2009, 45, 156–158.

5. Hou, X.; Zhang, L. Saliency detection: A spectral residual approach. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Minneapolis, MN, USA, 17–22 June 2007; pp. 1–8.

6. Guo, C.; Ma, Q.; Zhang, L. Spatio-temporal saliency detection using phase spectrum of quaternion fourier transform. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Anchorage, AK, USA, 23–28 June 2008; pp. 1–8.

7. Li, J.; Levine, M.D.; An, X.; Xu, X.; He, H. Visual saliency based on scale-space analysis in the frequency domain. IEEE Trans. Pattern Anal. Mach. Intell. 2013, 35, 996–1010.

8. Gao, C.; Meng, D.; Yang, Y.; Wang, Y.; Zhou, X.; Hauptmann, A.G. Infrared patch-image model for small target detection in a single image. IEEE Trans. Image Process. 2013, 22, 4996–5009.


There are no reviews yet.

Be the first to review “Matlab Code for Target Detection”

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.