generate_cam_file.pro


Procedure to generate a CAM formatted file for a directory of images. For the input directory, a random sample of all the images will be selected to check for consistent values for the focal length of the sensor.

If the camera make and model are present, then the output CAM file will be named as model.cam and will either be found in the directory specified by INPUTDIR or, if OUTPUTDIR is set, then it will be found there.

Example One

This first example will search inputdir for files and the CAM file will be generated in outputdir:

inputdir = 'C:\Users\username\images'
outputdir = 'C:\Users\username\images_out'
generate_cam_file, INPUTDIR = inputdir, OUTPUTDIR = outputdir

Example Two

This second example illustrates how to create a CAM file and have it be generated in inputdir:

inputdir = 'C:\Users\username\images'
generate_cam_file, INPUTDIR = inputdir


generate_cam_file

Syntax

generate_cam_file, INPUTDIR = string, [ EXTENSION = string ], [ OUTPUTDIR = string ]

Keywords

INPUTDIR

in, required, type=string

Directory to be searched for images to get sensor information from.

EXTENSION

in, optional, type=string, default=‘tif’

File extension that will match the files found in INPUTDIR. The default value is ‘tif’ and should be specified if another file extension is used.

OUTPUTDIR

in, optional, type=string, default=INPUTDIR

Set this keyword to the location where you would like the output CAM file to be written to. If you set this keyword and the directory does not exist, then it will be created.

Author

Zachary Norman


Copyright © 2019 Harris Geospatial Solutions, Inc.

Licensed under MIT. See LICENSE.txt for additional details and information.