def __init__( self, reconstruction: types.Reconstruction, reference: geo.TopocentricConverter, projection_max_depth: float, projection_noise: float, gps_noise: Union[Dict[str, float], float], causal_gps_noise: bool, on_disk_features_filename: Optional[str] = None, generate_projections: bool = True, ): self.reconstruction = reconstruction self.exifs = sg.generate_exifs(reconstruction, reference, gps_noise, causal_gps_noise=causal_gps_noise) if generate_projections: (self.features, self.tracks_manager) = sg.generate_track_data( reconstruction, projection_max_depth, projection_noise, on_disk_features_filename, ) else: self.features = sd.SyntheticFeatures(None) self.tracks_manager = pymap.TracksManager()
def __init__( self, reconstruction: types.Reconstruction, projection_max_depth: float, projection_noise: float, gps_noise: Union[Dict[str, float], float], causal_gps_noise: bool, generate_projections: bool = True, ): self.reconstruction = reconstruction self.exifs = sg.generate_exifs(reconstruction, gps_noise, causal_gps_noise=causal_gps_noise) if generate_projections: ( self.features, self.descriptors, self.colors, self.tracks_manager, ) = sg.generate_track_data(reconstruction, projection_max_depth, projection_noise) else: (self.features, self.descriptors, self.colors) = ( {}, {}, {}, )
def __init__( self, reconstruction: types.Reconstruction, projection_max_depth: float, projection_noise: float, gps_noise: Union[Dict[str, float], float], causal_gps_noise: bool, generate_projections: bool = True, ): self.reconstruction = reconstruction self.exifs = sg.generate_exifs(reconstruction, gps_noise, causal_gps_noise=causal_gps_noise) if generate_projections: (self.features, self.tracks_manager) = sg.generate_track_data( reconstruction, projection_max_depth, projection_noise) else: self.features = {} self.tracks_manager = pysfm.TracksManager()
def get_tracks_data(self, maximum_depth, noise): return sg.generate_track_data(self.get_reconstruction(), maximum_depth, noise)