Documentation of 'boofcv.struct.calib.IntrinsicParameters' Java class
IntrinsicParameters
boofcv.struct.calib

Class IntrinsicParameters

  • All Implemented Interfaces:
    java.io.Serializable


    public class IntrinsicParameters
    extends java.lang.Object
    implements java.io.Serializable

    Intrinsic camera parameters for a calibrated camera. Specifies the calibration matrix K and distortion parameters.

         [ fx skew  cx ]
     K = [  0   fy  cy ]
         [  0    0   1 ]
     

    Radial and Tangental Distortion:
    xd = xn + xn[k1 r2 + ... + kn r2n] + dx
    dxu = [ 2t1 u v + t2(r2 + 2u2)]
    dxv = [ t1(r2 + 2v2) + 2 t2 u v]

    r2 = u2 + v2
    where xd is the distorted coordinates, xn=(u,v) is undistorted normalized image coordinates. Pixel coordinates are found x = K*[u;v]

    See Also:
    Serialized Form
    • Field Detail

      • width

        public int width
        image shape (units: pixels)
      • height

        public int height
        image shape (units: pixels)
      • fx

        public double fx
        focal length along x and y axis (units: pixels)
      • fy

        public double fy
        focal length along x and y axis (units: pixels)
      • skew

        public double skew
        skew parameter, typically 0 (units: pixels)
      • cx

        public double cx
        image center (units: pixels)
      • cy

        public double cy
        image center (units: pixels)
      • radial

        public double[] radial
        radial distortion parameters
      • t1

        public double t1
        tangential distortion parameters
      • t2

        public double t2
        tangential distortion parameters
    • Constructor Detail

      • IntrinsicParameters

        public IntrinsicParameters()
        Default constructor. flipY is false and everything else is zero or null.
      • IntrinsicParameters

        public IntrinsicParameters(double fx,
                                   double fy,
                                   double skew,
                                   double cx,
                                   double cy,
                                   int width,
                                   int height)
    • Method Detail

      • fsetK

        public IntrinsicParameters fsetK(double fx,
                                         double fy,
                                         double skew,
                                         double cx,
                                         double cy,
                                         int width,
                                         int height)
      • isDistorted

        public boolean isDistorted()
        If true then distortion parameters are specified.
      • getCx

        public double getCx()
      • setCx

        public void setCx(double cx)
      • getCy

        public double getCy()
      • setCy

        public void setCy(double cy)
      • getFx

        public double getFx()
      • setFx

        public void setFx(double fx)
      • getFy

        public double getFy()
      • setFy

        public void setFy(double fy)
      • getRadial

        public double[] getRadial()
      • setRadial

        public void setRadial(double[] radial)
      • getSkew

        public double getSkew()
      • setSkew

        public void setSkew(double skew)
      • getWidth

        public int getWidth()
      • setWidth

        public void setWidth(int width)
      • getHeight

        public int getHeight()
      • setHeight

        public void setHeight(int height)
      • getT1

        public double getT1()
      • setT1

        public void setT1(double t1)
      • getT2

        public double getT2()
      • setT2

        public void setT2(double t2)
      • print

        public void print()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.