pub fn validate_scanner_field( kernel_size: [u32; 3], field: [u32; 3], mask: [u32; 3], ) -> Result<(), String>
Scanner kernel Z matches the image depth, and the mask shares the image’s width and height.