Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.netbeans.jemmy.image
Class RoughImageFinder

    java.lang.Object
      |
      +--org.netbeans.jemmy.image.RoughImageFinder

All Implemented Interfaces:
  ImageFinder

public class RoughImageFinder
extends java.lang.Object
implements ImageFinder

Performs "rough" image search.

Author:
  Alexandre Iline (alexandre.iline@sun.com)

Constructor Summary
`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".

Method Summary
`java.awt.Point` | `findImage(java.awt.image.BufferedImage image, int index)` Performs "rough" search.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RoughImageFinder

    public 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".
  Parameters:
    `area` - - Image to search in.
    `roughness` - - Allowed

Method Detail

### findImage

    public java.awt.Point findImage(java.awt.image.BufferedImage image,
                                    int index)

  Performs "rough" search.
  Specified by:
    `findImage` in interface `ImageFinder`
  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```

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD