pub fn simd_threshold(gray: &[u8], thresh: u8, out: &mut [u8])
Apply threshold to grayscale image using SIMD