public void Apply(PinholeCamera camera, CeresCamera cc) { PosRuis?.Apply(ref cc.External.t[0], ref cc.External.t[1], ref cc.External.t[2]); camera.Intrinsics.fx *= .95; camera.Intrinsics.fy *= .95; camera.Intrinsics.cx = camera.Intrinsics.PictureSize.Width / 2; camera.Intrinsics.cy = camera.Intrinsics.PictureSize.Height / 2; camera.Intrinsics.SetDistortionsZero(); cc.Internal.ZeroDistortions(); }
public static CeresCamera toCeresCamera(this PinholeCamera camera) { var cc = new CeresCamera(camera.Intrinsics.toCeresParameter(), camera.toCeresParameter()); return(cc); }