Search in sources :

Example 6 with SequencePoint2Transform2_F64

use of boofcv.struct.distort.SequencePoint2Transform2_F64 in project BoofCV by lessthanoptimal.

the class ImplRectifyImageOps_F64 method transformRectToPixel.

public static Point2Transform2_F64 transformRectToPixel(CameraPinholeBrown param, DMatrixRMaj rectify) {
    Point2Transform2_F64 add_p_to_p = narrow(param).distort_F64(true, true);
    DMatrixRMaj rectifyInv = new DMatrixRMaj(3, 3);
    CommonOps_DDRM.invert(rectify, rectifyInv);
    PointTransformHomography_F64 removeRect = new PointTransformHomography_F64(rectifyInv);
    return new SequencePoint2Transform2_F64(removeRect, add_p_to_p);
}
Also used : PointTransformHomography_F64(boofcv.alg.distort.PointTransformHomography_F64) SequencePoint2Transform2_F64(boofcv.struct.distort.SequencePoint2Transform2_F64) Point2Transform2_F64(boofcv.struct.distort.Point2Transform2_F64) DMatrixRMaj(org.ejml.data.DMatrixRMaj) SequencePoint2Transform2_F64(boofcv.struct.distort.SequencePoint2Transform2_F64)

Aggregations

PointTransformHomography_F64 (boofcv.alg.distort.PointTransformHomography_F64)6 Point2Transform2_F64 (boofcv.struct.distort.Point2Transform2_F64)6 SequencePoint2Transform2_F64 (boofcv.struct.distort.SequencePoint2Transform2_F64)6 PinholePtoN_F64 (boofcv.alg.distort.pinhole.PinholePtoN_F64)2 DMatrixRMaj (org.ejml.data.DMatrixRMaj)2