Class RemoveBrownNtoN_F32

  • All Implemented Interfaces:
    boofcv.struct.distort.Point2Transform2_F32

    public class RemoveBrownNtoN_F32
    extends java.lang.Object
    implements boofcv.struct.distort.Point2Transform2_F32
    Converts the observed distorted normalized image coordinates into undistorted normalized image coordinates.
    • Constructor Detail

      • RemoveBrownNtoN_F32

        public RemoveBrownNtoN_F32()
      • RemoveBrownNtoN_F32

        public RemoveBrownNtoN_F32​(float tol)
    • Method Detail

      • setTolerance

        public void setTolerance​(float tol)
      • setDistortion

        public RemoveBrownNtoN_F32 setDistortion​(double[] radial,
                                                 double t1,
                                                 double t2)
      • compute

        public void compute​(float x,
                            float y,
                            georegression.struct.point.Point2D_F32 out)
        Removes radial distortion
        Specified by:
        compute in interface boofcv.struct.distort.Point2Transform2_F32
        Parameters:
        x - Distorted x-coordinate normalized image coordinate
        y - Distorted y-coordinate normalized image coordinate
        out - Undistorted normalized coordinate.
      • copyConcurrent

        public RemoveBrownNtoN_F32 copyConcurrent()
        Specified by:
        copyConcurrent in interface boofcv.struct.distort.Point2Transform2_F32
      • removeRadial

        public static void removeRadial​(float x,
                                        float y,
                                        float[] radial,
                                        float t1,
                                        float t2,
                                        georegression.struct.point.Point2D_F32 out,
                                        float tol)
        Static function for removing radial and tangential distortion
        Parameters:
        x - Distorted x-coordinate normalized image coordinate
        y - Distorted y-coordinate normalized image coordinate
        radial - Radial distortion parameters
        t1 - tangential distortion
        t2 - tangential distortion
        out - Undistorted normalized image coordinate
        tol - convergence tolerance