Search in sources :

Example 1 with NormalizedToPixelError

use of boofcv.alg.geo.NormalizedToPixelError in project BoofCV by lessthanoptimal.

the class PnPStereoDistanceReprojectionSq method setStereoParameters.

public void setStereoParameters(StereoParameters param) {
    this.leftToRight = param.getRightToLeft().invert(null);
    CameraPinholeRadial left = param.left;
    CameraPinholeRadial right = param.right;
    leftPixelError = new NormalizedToPixelError(left.fx, left.fy, left.skew);
    rightPixelError = new NormalizedToPixelError(right.fx, right.fy, right.skew);
}
Also used : CameraPinholeRadial(boofcv.struct.calib.CameraPinholeRadial) NormalizedToPixelError(boofcv.alg.geo.NormalizedToPixelError)

Aggregations

NormalizedToPixelError (boofcv.alg.geo.NormalizedToPixelError)1 CameraPinholeRadial (boofcv.struct.calib.CameraPinholeRadial)1