compute 3% percentile from middle of otsu image