(int x, int y)
| 284 | |
| 285 | // check pixel at (x,y), whether it is inside traced area |
| 286 | private boolean inside(int x, int y) { |
| 287 | if (x<0 || x>=width || y<0 || y>=height) |
| 288 | return false; |
| 289 | float value = getPixel(x, y); |
| 290 | return value>=lowerThreshold && value<=upperThreshold; |
| 291 | } |
| 292 | |
| 293 | // check pixel in a given direction from vertex (x,y) |
| 294 | private boolean inside(int x, int y, int direction) { |
no test coverage detected