Class RoughImageFinder
java.lang.Object
org.netbeans.jemmy.image.RoughImageFinder
- All Implemented Interfaces:
ImageFinder
Performs "rough" image search.
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
-
Constructor Summary
ConstructorsConstructorDescriptionRoughImageFinder(BufferedImage area, double roughness) Creates an instance allowing to find an image inside the one passed as parameter with some "roughness". -
Method Summary
Modifier and TypeMethodDescriptionfindImage(BufferedImage image, int index) Performs "rough" search.
-
Constructor Details
-
RoughImageFinder
Creates an instance allowing to find an image inside the one passed as parameter with some "roughness".- Parameters:
area- - Image to search in.roughness- - Allowed
-
-
Method Details
-
findImage
Performs "rough" search.- Specified by:
findImagein interfaceImageFinder- Parameters:
image- an image to search.index- an ordinal image location index.- Returns:
- Point where number of unmatching pixels less or equal to
image1.getWidth() * image1.getHeight() * roughness
-