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
(
,
ssize_t xOffset
,
ssize_t yOffset
)

Parameters

target
Type: Image

An image that forms the target of the search.

xOffset
Type: ssize_t

The starting x position to search for a match.

yOffset
Type: ssize_t

The starting y position to search for a match.

Return Value

Type: Geometry

The size and location of the match.

Meta