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;
}
Aggregations