class Displacement – Displacement object

The displacement object is an attrtuple returned by Image.find_displacement() with the fields:

class image.displacement

Please call Image.find_displacement() to create this object. It has no public constructor.

x_translation() float

X translation in pixels between the two images. Index [0].

y_translation() float

Y translation in pixels between the two images. Index [1].

rotation() float

Rotation in radians between the two images. Index [2].

scale() float

Scale change between the two images. Index [3].

response() float

Quality of the displacement match between the two images, in the range 0-1. Index [4].