aws.osml.photogrammetry.projective_sensor_model module

class aws.osml.photogrammetry.projective_sensor_model.ProjectiveSensorModel(world_coordinates: List[GeodeticWorldCoordinate], image_coordinates: List[ImageCoordinate])[source]

Bases: SensorModel

This sensor model is used when we have a set of 2D tie point correspondences (longitude, latitude) -> (x, y) for an image.

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 image.

Parameters:
  • image_coordinate – the x, y image coordinate

  • elevation_model – optional elevation model used to transform the coordinate

  • options – optional dictionary of hints, this camera does not support any hints

Returns:

the longitude, latitude, elevation world coordinate

world_to_image(world_coordinate: GeodeticWorldCoordinate) ImageCoordinate[source]

This function returns the x, y image coordinate associated with a given longitude, latitude, elevation world coordinate.

Parameters:

world_coordinate – the longitude, latitude, elevation world coordinate

Returns:

the x, y image coordinate