# make an art gallery illuminated by illuminant A
gallery = product( A.1nm, 'artwork', xyz1931.1nm, wave='auto')
# chromatically adapt the output XYZs to D50 white point, using Bradford matrix
gallery.D50 = calibrate( gallery, response=officialXYZ('D50') )
gallery.D50
# make a flatbead scanner from illuminant F11 and a Flea2 camera
scanner = product( subset(Fs.5nm,'F11'), 'paper', Flea2.RGB, wave='auto')
# adjust RGB gain factors so the perfect reflecting diffuser yields RGB=(1,1,1)
scanner = calibrate( scanner )
scanner
# same flatbead scanner, but this time with some "white headroom"
scanner = product( subset(Fs.5nm,'F11'), 'paper', Flea2.RGB, wave='auto' )
scanner = calibrate( scanner, response=0.95 )
scanner
Run the code above in your browser using DataLab