Skip to main content

glcm_construct_simd

Function glcm_construct_simd 

Source
pub fn glcm_construct_simd(
    quantized: &[u8],
    glcm: &mut [f32],
    width: usize,
    height: usize,
    gray_levels: usize,
    dx: i64,
    dy: i64,
) -> Result<()>
Expand description

SIMD-accelerated GLCM construction

Constructs a Gray-Level Co-occurrence Matrix from quantized image data using SIMD-optimized histogram updates.

§Arguments

  • quantized - Quantized image data (values 0..gray_levels-1)
  • glcm - Output GLCM matrix (gray_levels x gray_levels, row-major)
  • width - Image width
  • height - Image height
  • gray_levels - Number of gray levels
  • dx - X offset for co-occurrence
  • dy - Y offset for co-occurrence

§Errors

Returns an error if parameters are invalid