Image.findSimilarRegion

This interesting method searches for a rectangle in the image that is similar to the target. For the rectangle to be similar each pixel in the rectangle must match the corresponding pixel in the target image within the range specified by the fuzz property of this image and the target image.

class Image
findSimilarRegion

Parameters

target Image

An image that forms the target of the search.

xOffset ssize_t

The starting x position to search for a match.

yOffset ssize_t

The starting y position to search for a match.

Return Value

Type: Geometry

The size and location of the match.

Meta