Search in sources :

Example 1 with PinholeNtoP_F32

use of boofcv.alg.distort.pinhole.PinholeNtoP_F32 in project BoofCV by lessthanoptimal.

the class ImplPerspectiveOps_F32 method convertNormToPixel.

public static Point2D_F32 convertNormToPixel(FMatrixRMaj K, Point2D_F32 norm, Point2D_F32 pixel) {
    if (pixel == null)
        pixel = new Point2D_F32();
    PinholeNtoP_F32 alg = new PinholeNtoP_F32();
    alg.set(K.get(0, 0), K.get(1, 1), K.get(0, 1), K.get(0, 2), K.get(1, 2));
    alg.compute(norm.x, norm.y, pixel);
    return pixel;
}
Also used : PinholeNtoP_F32(boofcv.alg.distort.pinhole.PinholeNtoP_F32) Point2D_F32(georegression.struct.point.Point2D_F32)

Aggregations

PinholeNtoP_F32 (boofcv.alg.distort.pinhole.PinholeNtoP_F32)1 Point2D_F32 (georegression.struct.point.Point2D_F32)1