pub fn spectral_unmix_roi_mean(
pixels: &[f32],
n_pixels: usize,
endmembers: &[f32],
n_channels: usize,
n_components: usize,
) -> Result<UnmixResult, MedicalError>Expand description
Mean the ROI spectra then unmix once (cheap path for bulk regions).
pixels is planar or interleaved? Interleaved channel-major per pixel:
pixels[p * n_channels + c]. n_pixels pixels.