public class RemovePerspectiveDistortion<T extends boofcv.struct.image.ImageBase<T>>
extends java.lang.Object
| Constructor and Description |
|---|
RemovePerspectiveDistortion(int width,
int height)
Creates the variables for computing the transform but not rendering the image
|
RemovePerspectiveDistortion(int width,
int height,
boofcv.struct.image.ImageType<T> imageType)
Constructor which specifies the characteristics of the undistorted image
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(T input,
georegression.struct.point.Point2D_F64 corner0,
georegression.struct.point.Point2D_F64 corner1,
georegression.struct.point.Point2D_F64 corner2,
georegression.struct.point.Point2D_F64 corner3)
Applies distortion removal to the specified region in the input image.
|
boolean |
createTransform(georegression.struct.point.Point2D_F64 tl,
georegression.struct.point.Point2D_F64 tr,
georegression.struct.point.Point2D_F64 br,
georegression.struct.point.Point2D_F64 bl)
Compues the distortion removal transform
|
org.ejml.data.DMatrixRMaj |
getH() |
T |
getOutput()
Returns the undistorted output image
|
boofcv.alg.distort.PointTransformHomography_F32 |
getTransform() |
public RemovePerspectiveDistortion(int width,
int height,
boofcv.struct.image.ImageType<T> imageType)
width - Width of undistorted imageheight - Height of undistorted imageimageType - Type of undistorted imagepublic RemovePerspectiveDistortion(int width,
int height)
width - Width of undistorted imageheight - Height of undistorted imagepublic boolean apply(T input, georegression.struct.point.Point2D_F64 corner0, georegression.struct.point.Point2D_F64 corner1, georegression.struct.point.Point2D_F64 corner2, georegression.struct.point.Point2D_F64 corner3)
input - Input imagecorner0 - Top left cornercorner1 - Top right cornercorner2 - Bottom right cornercorner3 - Bottom left cornerpublic boolean createTransform(georegression.struct.point.Point2D_F64 tl,
georegression.struct.point.Point2D_F64 tr,
georegression.struct.point.Point2D_F64 br,
georegression.struct.point.Point2D_F64 bl)
tl - Top left cornertr - Top right cornerbr - Bottom right cornerbl - Bottom left cornerpublic org.ejml.data.DMatrixRMaj getH()
public boofcv.alg.distort.PointTransformHomography_F32 getTransform()
public T getOutput()