aws.osml.photogrammetry.composite_sensor_model module
- class aws.osml.photogrammetry.composite_sensor_model.CompositeSensorModel(approximate_sensor_model: SensorModel, precision_sensor_model: SensorModel)[source]
Bases:
SensorModel
A CompositeSensorModel is a SensorModel that combines an approximate but fast model with an accurate but slower model.
- image_to_world(image_coordinate: ImageCoordinate, elevation_model: ElevationModel | None = None, options: Dict[str, Any] | None = None) GeodeticWorldCoordinate [source]
This function first calls the approximate model’s image_to_world function to get an initial guess and then passes that information to the more accurate model through the options parameter’s ‘initial_guess’ and ‘initial_search_distance’ options.
- Parameters:
image_coordinate – the x, y image coordinate
elevation_model – an optional elevation model used to transform the coordinate
options – the options that will be augmented and then passed along
- Returns:
the longitude, latitude, elevation world coordinate
- world_to_image(world_coordinate: GeodeticWorldCoordinate) ImageCoordinate [source]
This is just a pass through to the more accurate sensor model’s world_to_image. These calculations tend to be quicker so there is no need to involve the approximate model.
- Parameters:
world_coordinate – the longitude, latitude, elevation world coordinate
- Returns:
the x, y image coordinate