Hyperspectral Imaging analyzes materials based on spectral signatures. Hyperspectral cameras provide a full spectrum per pixel, spanning dozens to hundreds of closely spaced wavelengths. This reveals differences that cannot be detected with RGB or grayscale cameras – such as distinguishing between chemically different but optically identical objects.
With MVTec HALCON, hyperspectral data can be used for classification, material identification, and quality control. HALCON offers a variety of directly applicable example programs. A particularly relevant example is the "Classify different pills based on hyperspectral images" program. It demonstrates a complete pipeline for spectral classification, enabling reliable differentiation of optically identical but chemically distinct pills.
The process includes:
- Importing hyperspectral data in the widely used ENVI file format or from GigE Vision-compatible hyperspectral cameras.
- Reorganizing the data structure from BIL (Band Interleaved by Line) to an image-based format.
- Reflection transformation to calculate the actual intensity values. For this, in addition to the raw measurement data, dark and white reference data must also be available.



























