aws.osml.photogrammetry.defaulted_sensor_model module

class aws.osml.photogrammetry.defaulted_sensor_model.DefaultedSensorModel(inner_sensor_model: SensorModel, elevation_model: ElevationModel | None = None, options: Dict[str, Any] | None = None)[source]

Bases: SensorModel

Sensor model wrapper that adds default options for image_to_world.

image_to_world(image_coordinate: ImageCoordinate, elevation_model: ElevationModel | None = None, options: Dict[str, Any] | None = None) GeodeticWorldCoordinate[source]

This function returns the longitude, latitude, elevation world coordinate associated with the x, y coordinate of any pixel in the full image.

Parameters:
  • image_coordinate – the x, y full image coordinate

  • elevation_model – optional elevation model used to transform the coordinate

  • options – optional dictionary of hints, passed to nested sensor models

Returns:

the longitude, latitude, elevation world coordinate

world_to_image(world_coordinate: GeodeticWorldCoordinate) ImageCoordinate[source]

This function returns the x, y full image coordinate associated with a given longitude, latitude, elevation world coordinate. If elevation is NaN, it will be set by the default elevation model if it exists.

Parameters:

world_coordinate – the longitude, latitude, elevation world coordinate

Returns:

the x, y full image coordinate