Example code taken from the OpenFlexure Microscope software, showing flat-field calibration of the Raspberry Pi camera module.