public class RemovePerspectiveDistortion<T extends boofcv.struct.image.ImageBase>
extends java.lang.Object
| Constructor and Description |
|---|
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.
|
T |
getOutput()
Returns the undistorted output image
|
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 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 T getOutput()