Home | Trees | Indices | Help |
---|
|
This module contains the AffineTransform class and a set of factory functions used to create AffineTransform instances given different sets of parameters. Most factory functions require information that specifies the transformation and a size for the output image.
|
|||
AffineTransform The AffineTransform class is used to transform images and points_b back and and forth between different coordinate systems. |
|||
_AffineTest |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__package__ =
|
|
Create a transform that centers a set of points_b such that there mean is (0,0) and then scale such that there average distance from (0,0) is 1.0
|
Create a simple translation transform
|
Create a simple scale transform.
|
Create a scale transform with different values for the x and y directions.
|
Create a rotation about the origin.
|
Create a transform from a source rectangle to a new image. This basically crops a rectangle out of the image and rescales it to the new size.
|
Extract an image tile centered on a point.
|
An affine transform that will rotate, translate, and scale to map one set of points_b to the other. For example, to align eye coordinates in face images. Find a transform (a,b,tx,ty) such that it maps the source points_b to the destination points_b: a*x1-b*y1+tx = x2 b*x1+a*y1+ty = y2 The mapping between the two points_b creates a set of four linear equations with four unknowns. This set of equations is solved to find the transform.
|
An affine transform that will rotate, translate, and scale to map one set of points_b to the other. For example, to align eye coordinates in face images. Find a transform (a,b,tx,ty) such that it maps the source points_b to the destination points_b: a*x1+(-b+c)*y1+tx = x2 (b+d)*x1+a*y1+ty = y2 This method minimizes the squared error to find an optimal fit between the points_b.
|
An affine transform that will rotate, translate, and scale to map one set of points_b to the other. For example, to align eye coordinates in face images. Find a transform (a,b,tx,ty) such that it maps the source points_b to the destination points_b: a*x1-b*y1+tx = x2 b*x1+a*y1+ty = y2 This method minimizes the squared error to find an optimal fit between the points_b. Instead of a LS solver the RANSAC solver is used to produce a transformation that is robust to outliers.
|
An affine transform that will rotate, translate, and scale to map one set of points_b to the other. For example, to align eye coordinates in face images. Find a transform (a,b,tx,ty) such that it maps the source points_b to the destination points_b: a*x1-b*y1+tx = x2 b*x1+a*y1+ty = y2 This method minimizes the squared error to find an optimal fit between the points_b. Instead of a LS solver the RANSAC solver is used to produce a transformation that is robust to outliers.
|
Generates an link.AffineTrasform that slightly perturbs the image. Primarily to generate more training images. The perturbations include small scale, rotation, and translations. The transform can also mirror the image in the left/right direction or flip the top and bottom as other ways to generate synthetic training images.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Apr 21 14:31:58 2015 | http://epydoc.sourceforge.net |