/** * Applies distortion removal to the specified region in the input image. The undistorted image is returned. * @param input Input image * @param corner0 Top left corner * @param corner1 Top right corner * @param corner2 Bottom right corner * @param corner3 Bottom left corner * @return true if successful or false if it failed */ public boolean apply( T input , Point2D_F64 corner0 , Point2D_F64 corner1 , Point2D_F64 corner2 , Point2D_F64 corner3 ) { if( createTransform(corner0, corner1, corner2, corner3)) { distort.input(input).apply(); return true; } else { return false; } }
distort.input(input).apply();