Expand description
SIMD-accelerated texture analysis using Gray-Level Co-occurrence Matrix (GLCM)
This module provides high-performance implementations of GLCM computation and Haralick feature extraction using SIMD instructions.
§Performance
Expected speedup over scalar implementations:
- GLCM construction: 2-3x (SIMD histogram updates)
- Haralick features: 2-4x (SIMD arithmetic and reductions)
- Texture feature images: 2-3x (parallel window processing)
§Supported Operations
- glcm_construct_simd: SIMD-optimized GLCM matrix construction
- glcm_normalize_simd: Fast SIMD normalization
- haralick_features_simd: SIMD-accelerated feature computation
- texture_contrast_simd: Fast contrast feature extraction
- texture_energy_simd: Energy/ASM computation with SIMD
§Example
use oxigdal_algorithms::simd::texture_simd::glcm_construct_simd;
let quantized = vec![0_u8; 1000];
let mut glcm = vec![0.0_f32; 256 * 256];
glcm_construct_simd(&quantized, &mut glcm, 100, 10, 256, 1, 0)?;Structs§
- Haralick
FeaturesSIMD - Complete Haralick features computed with SIMD
- Texture
Features - All Haralick texture features
Enums§
- Texture
Feature Type - Texture feature type for computing feature images
Functions§
- compute_
all_ texture_ features_ simd - SIMD-accelerated texture feature extraction from GLCM
- compute_
glcm_ multidirectional_ simd - SIMD-accelerated multi-directional GLCM computation
- compute_
glcm_ simd - SIMD-accelerated GLCM computation from u8 data
- compute_
haralick_ features_ simd - Compute all major Haralick features with SIMD acceleration
- compute_
lbp_ simd - SIMD-accelerated local binary pattern (LBP) computation
- compute_
texture_ feature_ image_ simd - SIMD-accelerated texture feature image computation
- glcm_
construct_ simd - SIMD-accelerated GLCM construction
- glcm_
normalize_ simd - SIMD-accelerated GLCM normalization
- texture_
contrast_ simd - SIMD-accelerated contrast feature computation
- texture_
correlation_ simd - SIMD-accelerated correlation feature computation
- texture_
dissimilarity_ simd - SIMD-accelerated dissimilarity feature computation
- texture_
energy_ simd - SIMD-accelerated energy (Angular Second Moment) feature computation
- texture_
entropy_ simd - SIMD-accelerated entropy feature computation
- texture_
homogeneity_ simd - SIMD-accelerated homogeneity (Inverse Difference Moment) feature computation