def radiometric_calibrate(shot_id, image):
     photo = reconstruction.get_photo(shot_id)
     return multispectral.dn_to_reflectance(
         photo,
         image,
         use_sun_sensor=args.radiometric_calibration ==
         "camera+sun")
Beispiel #2
0
 def radiometric_calibrate(shot_id, image):
     photo = reconstruction.get_photo(shot_id)
     if photo.is_thermal():
         return thermal.dn_to_temperature(photo, image)
     else:
         return multispectral.dn_to_reflectance(photo, image,
                                                use_sun_sensor=args.radiometric_calibration == "camera+sun")