diff --git a/imageprocessing/src/main/java/org/fairscan/imageprocessing/PostProcessing.kt b/imageprocessing/src/main/java/org/fairscan/imageprocessing/PostProcessing.kt index 9bb3eb0..4dc52d3 100644 --- a/imageprocessing/src/main/java/org/fairscan/imageprocessing/PostProcessing.kt +++ b/imageprocessing/src/main/java/org/fairscan/imageprocessing/PostProcessing.kt @@ -253,7 +253,7 @@ fun enhanceGrayscaleImage(img: Mat): Mat { val sorted = Mat() Core.sort(flat, sorted, Core.SORT_ASCENDING) val n = sorted.cols() - val pLow = sorted.get(0, (n * 0.01).toInt())[0] + val pLow = sorted.get(0, (n * 0.004).toInt())[0] val pHigh = sorted.get(0, (n * 0.99).toInt())[0] flat.release(); sorted.release()