Point Cloud Generation (Stage 2)¶
The Point Cloud Generation module contains supporting functions to prepare data for processing with SfM Computer Vision programs
Utilities¶
- generate.utilities.interpolate_gps_positions_for_cams(log_file, msl_float, cam_filepath, pscan_cam_xyz_file=None, ecosynther_xyz_file=None)¶
This script interpolates the GPS position from a GPS list onto the camera list
Parameters: - log_file (file) –
- msl_float (float) –
- cam_filepath (string) – Assumes .JPG extensions are capitalized for all photos
- pscan_cam_xyz_file (file) – (Optional) Photoscan output file with header and JPG names
- ecosynther_xyz_file (file) – (Optional) Ecosynther output file with just xyz dimensions
NotesThis function assumes that the GPS_file.txt and list of picturesare in the same order: i.e., that the first GPS point in theGPS list corresponds to the first GPS flight of the main flight,the last point is the last of the flight, and similarly that thefirst photo (based on an alphabetical A-Z sort) is the first photoin the main flight and the last is the last.Example>>> log_file = open(log_filepath, ‘r’)>>> msl_float = 5.6>>> cam_filepath = ‘/path/to/cams’>>> cam_xyz_file = open(cam_xyz_filepath, ‘w’)>>> generate.utilities.interpolate_gps_positions_for_cams(log_file, msl_float, cam_filepath, pscan_cam_xyz_file=cam_xyz_file)>>> cam_xyz_file.close()Example pscan_cam_xyz_file Output# <label> <x> <y> <z>a.JPG 364754.663290 4305831.506730 136.543925...Example ecosynther_xyz_file Output (no header)364754.663290 4305831.506730 136.543925...