OpenCVModel.adjust_temperature¶
giant.camera_models.opencv_model
:
- OpenCVModel.adjust_temperature(pixel_locations, old_temperature, new_temperature)¶
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 (Sequence | ndarray) – the pixel locations to change the temperature for
old_temperature (Real) – the temperature the current pixel locations reflect
new_temperature (Real) – the new desired temperature
- Returns:
the updated pixel locations
- Return type:
ndarray