Class RectificationMapping

java.lang.Object
imagingbook.calibration.zhang.RectificationMapping
All Implemented Interfaces:
Mapping2D, Cloneable

public class RectificationMapping extends Object implements Mapping2D

This class represents a special geometric mapping for rectifying (i.e., removing the lens distortion from) an image, given the associated camera parameters. The transformation maps any position x' in the rectified image to the corresponding position x in the original (distorted) image. The mapping is implicitly inverted, i.e., maps target to source image coordinates.

Typically usage (by target-to-source-mapping):

 ImageProcessor original = ... ;  // the distorted image
 ImageProcessor rectified = ... ; // the (new) rectified image
 mapping.applyTo(original, rectified, InterpolationMethod.Bicubic);