Fundamental Transformation/Operation that'll be performed on every bit.
(c: int)
| 18 | factor = (259 * (level + 255)) / (255 * (259 - level)) |
| 19 | |
| 20 | def contrast(c: int) -> int: |
| 21 | """ |
| 22 | Fundamental Transformation/Operation that'll be performed on |
| 23 | every bit. |
| 24 | """ |
| 25 | return int(128 + factor * (c - 128)) |
| 26 | |
| 27 | return img.point(contrast) |
| 28 |
nothing calls this directly
no outgoing calls
no test coverage detected