[pycharm] PY-80307 Jupyter:Outputs: change the inversion constants

GitOrigin-RevId: 6a1ca5593d79747e2638bb19b9699827873a7a3e
This commit is contained in:
ekaterina.itsenko
2025-05-23 01:14:43 +02:00
committed by intellij-monorepo-bot
parent 4fc040feea
commit ebc6c71858

View File

@@ -33,7 +33,7 @@ class ImageInverter(foreground: Color, background: Color) {
*
* @return true if it's recommended to invert the image
*/
fun shouldInvert(image: BufferedImage, brightnessThreshold: Double = 0.7): Boolean {
fun shouldInvert(image: BufferedImage, brightnessThreshold: Double = 0.65): Boolean {
val colors = getImageSample(image)
val numberOfColorsInComplexImage = 5000
val numberOfPixels = colors.size