pub fn glcm_features_d1(
pixels: &[u8],
width: usize,
height: usize,
levels: usize,
) -> Result<GlcmFeatures, RadiomicsError>Expand description
Compute GLCM features on a 2D gray image at distance 1.
pixels is row-major width * height of u8 intensities.
Symmetric GLCM: (i,j) and (j,i) both counted.
Returns average of 0° and 90° orientations.