Package pyvision :: Package types :: Module Perspective :: Class PerspectiveTransform
[hide private]
[frames] | no frames]

Class PerspectiveTransform

source code

Instance Methods [hide private]
 
__init__(self, matrix, new_size, interpolate=None) source code
 
__call__(self, data)
This is a simple interface to transform images or points.
source code
 
transformImage(self, im)
Transform an image.
source code
 
transformPoint(self, pt)
Transform a point from the old image to the new image
source code
 
transformPoints(self, pts)
Transform a point from the old image to the new image
source code
 
invertPoint(self, pt)
Transform a point from the old image to the new image
source code
 
invertPoints(self, pts)
Transform a point from the old image to the new image
source code
 
asMatrix(self)
Return the transform as a 3 by 3 matrix
source code
 
__mul__(self, affine) source code
Method Details [hide private]

__call__(self, data)
(Call operator)

source code 

This is a simple interface to transform images or points. Simply call the affine transform like a function and it will try to automatically transform the argument.

Parameters:
  • data - an image, point, or list of points.