We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b80ca1 commit 1169bedCopy full SHA for 1169bed
1 file changed
imageprocessing/src/main/java/org/fairscan/imageprocessing/PostProcessing.kt
@@ -253,7 +253,7 @@ fun enhanceGrayscaleImage(img: Mat): Mat {
253
val sorted = Mat()
254
Core.sort(flat, sorted, Core.SORT_ASCENDING)
255
val n = sorted.cols()
256
- val pLow = sorted.get(0, (n * 0.01).toInt())[0]
+ val pLow = sorted.get(0, (n * 0.004).toInt())[0]
257
val pHigh = sorted.get(0, (n * 0.99).toInt())[0]
258
flat.release(); sorted.release()
259
0 commit comments