return the value of the pixel left to the pixel whose x value is given, 0 if doesn't exist
(x)
| 252 | else: |
| 253 | left_distance = self.channels |
| 254 | def left_value(x) -> int: |
| 255 | """ |
| 256 | return the value of the pixel left to the pixel whose |
| 257 | x value is given, 0 if doesn't exist |
| 258 | """ |
| 259 | if x - left_distance >= 0: |
| 260 | return row[x - left_distance] |
| 261 | else: |
| 262 | return 0 |
| 263 | |
| 264 | def upper_value(x, y) -> int: |
| 265 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected