Skip to content

3. Script Descriptions: A_formatIntrinsics

Jenna Brown edited this page Jul 1, 2020 · 4 revisions
  • A_formatIntrinsics

    • Description:

    This function initializes the intrinsics matrix for a given camera. It is to be run first in the progression. It should be run for each camera in a multi-camera fixed station, every time the focus is adjusted, a new lens is added, or a new enclosure is introduced. For a UAS camera, it should be run for each type of recording mode (4K Video, 12MP snapshot, etc). It can entered manually or refer to a Cal-Tech Camera Calibration file, a third-party MATLAB repository to perform camera intrinsic calculations [3]. Note, this function assumes the calib_results is for a standard distortion model, not fish eye. Model is outlined in Section 5.

    • Input:

    Input is entered by user into the script in Section 1, 2, and possibly 3.

    Section 1: Loading and Saving Information

    Variable Description
    oname Output string for the basename for the intrinsic matfile to be saved under.
    odir Output filepath where the intrinsic mat file will be saved.

    Section 2: Intrinsics

    Variable Description
    iopath Filepath of the saved Caltech calibration results (Calib_result.mat). If user is going to enter manually, this should be left empty {} and entered in Section 3.

    Section 3: Manually Entered Intrinsics (Optional)

    Variable Description
    intrinsics A [1x11] vector describing the focal lengths and distortion of the camera/lens combination. Distortion coefficients are defined by [3] and defined in Section 5.
    • Output:

    A .mat file saved as oname_IO.mat in odir. Will contain following variables.

    Variable Description
    intrinsics A [1x11] vector describing the focal lengths and distortion of the camera/lens combination. Distortion coefficients are defined by [3] and defined in Section 5.
    • Required Core Sub-Functions:

      • caltech2CIRN
Clone this wiki locally