aws.osml.photogrammetry.chipped_image_sensor_model module

class aws.osml.photogrammetry.chipped_image_sensor_model.ChippedImageSensorModel(original_image_coordinates: List[ImageCoordinate], chipped_image_coordinates: List[ImageCoordinate], full_image_sensor_model: SensorModel)[source]

Bases: SensorModel

This sensor model should be used when we have pixels for only a portion of the image, but we have a sensor model that describes the full image. In this case the image coordinates need to be converted to those of the full image before being used by the full sensor model.

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 – an elevation model used to transform the coordinate

  • options – a dictionary of options that will be passed on to the full image sensor model

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