pub fn compute_profiles(
data: &NDDataBuffer,
x_size: usize,
y_size: usize,
threshold: f64,
centroid_x: f64,
centroid_y: f64,
cursor_x: usize,
cursor_y: usize,
) -> ProfileResultExpand description
Compute profile projections for a 2D image.
- Average X/Y: column/row averages over the full image
- Threshold X/Y: column/row averages using only pixels >= threshold
- Centroid X/Y: single row/column at the centroid position (rounded)
- Cursor X/Y: single row/column at cursor position