def run_impl(self, dataset, args): undistort.run_dataset( dataset, args.reconstruction, args.reconstruction_index, args.tracks, args.output, )
def convert_and_undistort(self, rerun=False, imageFilter=None): log.ODM_INFO("Undistorting %s ..." % self.opensfm_project_path) undistorted_images_path = self.path("undistorted", "images") if not io.dir_exists(undistorted_images_path) or rerun: undistort.run_dataset(DataSet(self.opensfm_project_path), "reconstruction.json", 0, None, "undistorted", imageFilter) else: log.ODM_WARNING("Found an undistorted directory in %s" % undistorted_images_path)
def convert_and_undistort(self, rerun=False, imageFilter=None, image_list=None, runId="nominal"): log.ODM_INFO("Undistorting %s ..." % self.opensfm_project_path) done_flag_file = self.path("undistorted", "%s_done.txt" % runId) if not io.file_exists(done_flag_file) or rerun: ds = DataSet(self.opensfm_project_path) if image_list is not None: ds._set_image_list(image_list) undistort.run_dataset(ds, "reconstruction.json", 0, None, "undistorted", imageFilter) self.touch(done_flag_file) else: log.ODM_WARNING("Already undistorted (%s)" % runId)
def run_impl(self, dataset: DataSet, args: argparse.Namespace) -> None: undistort.run_dataset(dataset, args.reconstruction, args.reconstruction_index, args.tracks, args.output, args.skip_images)