Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
havardlovas committed Apr 18, 2024
2 parents eea2ba3 + c05ae5e commit 1e41fd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion gref4hsi/scripts/coregistration.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def main(config_path, mode):

# Establish reference data
path_orthomosaic_reference_folder = config['Absolute Paths']['orthomosaic_reference_folder']
orthomosaic_reference_fn = os.listdir(path_orthomosaic_reference_folder)[0] # Grab the only file in folder
orthomosaic_reference_fn = [f for f in os.listdir(path_orthomosaic_reference_folder) if f.endswith('tif')][0] # Grab the only file in folder that ends with *.tif
ref_ortho_path = os.path.join(path_orthomosaic_reference_folder, orthomosaic_reference_fn)

dem_path = config['Absolute Paths']['dem_path']
Expand Down Expand Up @@ -496,6 +496,8 @@ def main(config_path, mode):
for file_count, hsi_composite_file in enumerate(hsi_composite_files):

file_base_name = hsi_composite_file.split('.')[0]



# The match data (hyperspectral)
hsi_composite_path = os.path.join(path_composites_match, hsi_composite_file)
Expand Down
8 changes: 4 additions & 4 deletions gref4hsi/tests/specim_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ def main(config_yaml, specim_mission_folder, geoid_path, config_template_path, l
# into an h5 file. The nav data is written to "raw/nav/" subfolders, whereas hyperspectral data and calibration data
# written to "processed/hyperspectral/" and "processed/calibration/" subfolders
specim_parsing_utils.main(config=config,
config_specim=config_specim_preprocess)"""
config_specim=config_specim_preprocess)

"""# Time interpolates and reformats the pose (of the vehicle body) to "processed/nav/" folder.
# Time interpolates and reformats the pose (of the vehicle body) to "processed/nav/" folder.
config = parsing_utils.export_pose(config_file_mission)

# Formats model to triangular mesh and an earth centered earth fixed / geocentric coordinate system
Expand All @@ -206,8 +206,8 @@ def main(config_yaml, specim_mission_folder, geoid_path, config_template_path, l


## Visualize the data 3D photo model from RGB images and the time-resolved positions/orientations
if ENABLE_VISUALIZE:
visualize.show_mesh_camera(config, show_mesh = True, show_pose = True, ref_frame='ENU')
#if ENABLE_VISUALIZE:
# visualize.show_mesh_camera(config, show_mesh = True, show_pose = True, ref_frame='ENU')

# Georeference the line scans of the hyperspectral imager. Utilizes parsed data
georeference.main(config_file_mission)
Expand Down

0 comments on commit 1e41fd6

Please sign in to comment.