PinholeModel.adjust_temperature¶
giant.camera_models.pinhole_model
:
- PinholeModel.adjust_temperature(pixel_locations, old_temperature, new_temperature)[source]¶
This method adjusts a pixel location to reflect a new image temperature.
This is done by (a) converting back to the image frame by multiplying by the inverse camera matrix, (b) multiplying by the ratio of the new temperature scaling to the old temperature scaling, and (c) multiplying by the camera matrix to return to pixel space
- Parameters
pixel_locations (Union[Sequence, numpy.ndarray]) – the pixel locations to change the temperature for
old_temperature (numbers.Real) – the temperature the current pixel locations reflect
new_temperature (numbers.Real) – the new desired temperature
- Returns
the updated pixel locations
- Return type
numpy.ndarray