def test_spectral_to_aces_relative_exposure_values(self): """ Tests :func:`colour.models.rgb.aces_it. spectral_to_aces_relative_exposure_values` definition. """ shape = ACES_RICD.shape grey_reflector = constant_spd(0.18, shape) np.testing.assert_almost_equal( spectral_to_aces_relative_exposure_values(grey_reflector), np.array([0.18, 0.18, 0.18])) perfect_reflector = ones_spd(shape) np.testing.assert_almost_equal( spectral_to_aces_relative_exposure_values(perfect_reflector), np.array([0.97783784, 0.97783784, 0.97783784])) dark_skin = (COLOURCHECKERS_SPDS['ColorChecker N Ohta']['dark skin']) np.testing.assert_almost_equal( spectral_to_aces_relative_exposure_values(dark_skin), np.array([0.11876978, 0.08708666, 0.0589442]))
def test_spectral_to_aces_relative_exposure_values(self): """ Tests :func:`colour.models.rgb.aces_it. spectral_to_aces_relative_exposure_values` definition. """ shape = ACES_RICD.shape grey_reflector = constant_spd(0.18, shape) np.testing.assert_almost_equal( spectral_to_aces_relative_exposure_values(grey_reflector), np.array([0.18, 0.18, 0.18])) perfect_reflector = ones_spd(shape) np.testing.assert_almost_equal( spectral_to_aces_relative_exposure_values(perfect_reflector), np.array([0.97783784, 0.97783784, 0.97783784])) dark_skin = ( COLOURCHECKERS_SPDS.get('ColorChecker N Ohta').get('dark skin')) np.testing.assert_almost_equal( spectral_to_aces_relative_exposure_values(dark_skin), np.array([0.11876978, 0.08708666, 0.0589442]))