public class RoughImageFinder extends java.lang.Object implements ImageFinder
Constructor and Description |
---|
RoughImageFinder(java.awt.image.BufferedImage area,
double roughness)
Creates an instance allowing to find an image inside the one
passed as parameter with some "roughness".
|
Modifier and Type | Method and Description |
---|---|
java.awt.Point |
findImage(java.awt.image.BufferedImage image,
int index)
Performs "rough" search.
|
public RoughImageFinder(java.awt.image.BufferedImage area, double roughness)
area
- - Image to search in.roughness
- - Allowedpublic java.awt.Point findImage(java.awt.image.BufferedImage image, int index)
findImage
in interface ImageFinder
image
- an image to search.index
- an ordinal image location index.image1.getWidth() * image1.getHeight() * roughness