mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
[pycharm] PY-80307 Jupyter:Outputs: change the inversion constants
GitOrigin-RevId: 6a1ca5593d79747e2638bb19b9699827873a7a3e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4fc040feea
commit
ebc6c71858
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user