public class RoughImageFinder extends Object implements ImageFinder
| Constructor and Description |
|---|
RoughImageFinder(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 |
|---|---|
Point |
findImage(BufferedImage image,
int index)
Performs "rough" search.
|
public RoughImageFinder(BufferedImage area, double roughness)
area - - Image to search in.roughness - - Allowedpublic Point findImage(BufferedImage image, int index)
findImage in interface ImageFinderimage - an image to search.index - an ordinal image location index.image1.getWidth() * image1.getHeight() * roughnessCopyright © 2018. All rights reserved.