|
static void | imageFilter (BufferedImage image, Rectangle crop, HSVFilter filter) |
|
static void | loopFillObjects (BufferedImage img, Rectangle crop, FillProcessing processor) |
|
static void | fill (Point seed, Point offset, boolean[][] ignorePixel, boolean[][] bitmask, FillProcessing proc) |
|
static BufferedImage | screenshotWithoutMovingParts (BufferedImage image) |
|
static double | calculateScalingFactor (final BufferedImage img, Level currentLevel, Point releasePoint, long tapTime) |
|
|
static final Logger | log = LogManager.getLogger(VisionHelper.class) |
|
static VisualDebugger | DBG = new VisualDebugger("VisionSling") |
|
static int | birdsXMax = 0 |
|
static int | birdsWidthMax = 0 |
|
◆ calculateScalingFactor()
static double de.uniba.sme.bambirds.vision.VisionHelper.calculateScalingFactor |
( |
final BufferedImage |
img, |
|
|
Level |
currentLevel, |
|
|
Point |
releasePoint, |
|
|
long |
tapTime |
|
) |
| |
|
static |
After a shot get the display parabola
◆ fill()
static void de.uniba.sme.bambirds.vision.VisionHelper.fill |
( |
Point |
seed, |
|
|
Point |
offset, |
|
|
boolean |
ignorePixel[][], |
|
|
boolean |
bitmask[][], |
|
|
FillProcessing |
proc |
|
) |
| |
|
static |
Start flood fill on single pixel.
- Parameters
-
seed | Start point of flood fill |
offset | Apply offset if using a clipping rect |
ignorePixel | Bitmask to skip certain pixels |
bitmask | Bitmask to indicate relevant areas |
proc | User defined function |
◆ imageFilter()
static void de.uniba.sme.bambirds.vision.VisionHelper.imageFilter |
( |
BufferedImage |
image, |
|
|
Rectangle |
crop, |
|
|
HSVFilter |
filter |
|
) |
| |
|
static |
Loop over the whole image (or part of it) and call user function on HSV values.
- Parameters
-
crop | Don't use complete image but a clipped segment |
filter | User defined function for processing |
◆ loopFillObjects()
static void de.uniba.sme.bambirds.vision.VisionHelper.loopFillObjects |
( |
BufferedImage |
img, |
|
|
Rectangle |
crop, |
|
|
FillProcessing |
processor |
|
) |
| |
|
static |
Loop over image and create seeds for flood fill algorithm
- Parameters
-
crop | Don't use complete image but a clipped segment |
processor | User defined function |
The documentation for this class was generated from the following file: