The abundant spectral information provided by hyperspectral images (HSIs) greatly benefits target detection (TD), but it introduces a large amount of data redundancy, which greatly increases the complexity of data processing. Band selection (BS) is an important preprocessing step for HSI applications, and it plays an important role in reducing data volume and improving processing efficiency. Compared with BS methods that do not have specific applications, BS methods with specific applications often have clear objectives and better band selection results. Based on this idea, a series of BS methods called target feature constrained-based (TFC) used for the field of TD are developed and proposed in this paper. These methods can select the band subset that simultaneously enhance the desired targets and suppress the undesired targets. Its idea is derived from the target-constrained interference-minimized filter (TCIMF). By analyzing the detection principle of TCIMF, the BS problem can be transformed into a constrained optimization problem. According to the different method for solving constrained optimization problem, the TFC methods are divided into TFC-MP (TFC-Matching Pursuit), TFC-OMP (TFC-Orthogonal Matching Pursuit) and TFC-StOMP (TFC-Stagewise Orthogonal Matching Pursuit) methods. The experimental results show that, compared with several traditional BS methods, the TFC methods achieve better accuracy, efficiency and performance.
Hyperspectral anomaly detection (HAD) aims to identify pixels that significantly differ from the background without prior knowledge. While deep learning-based reconstruction methods have shown promise, they often suffer from limited feature representation, inefficient training cycles, and sensitivity to imbalanced data distributions. To address these challenges, this paper proposes a novel contrastive–transfer-synergized dual-stream transformer for hyperspectral anomaly detection (CTDST-HAD). The framework integrates contrastive learning and transfer learning within a dual-stream architecture, comprising a spatial stream and a spectral stream, which are pre-trained separately and synergistically fine-tuned. Specifically, the spatial stream leverages general visual and hyperspectral-view datasets with adaptive elastic weight consolidation (EWC) to mitigate catastrophic forgetting. The spectral stream employs a variational autoencoder (VAE) enhanced with the RossThick–LiSparseR (R-L) physical-kernel-driven model for spectrally realistic data augmentation. During fine-tuning, spatial and spectral features are fused for pixel-level anomaly detection, with focal loss addressing class imbalance. Extensive experiments on nine real hyperspectral datasets demonstrate that CTDST-HAD outperforms state-of-the-art methods in detection accuracy and efficiency, particularly in complex backgrounds, while maintaining competitive inference speed.