Hey Stef, I think I have sorted out the white shading data but the black is still a mystery. I have uploaded some files to the project site (here http://sites.google.com/site/bez625/updates-1/update240210 ) these are at shading lines set to 400 but for the scan to work even a little bit I needed to change the lines to 20 (this removes the light blue lines at the bottom of the white_shading.pnm).
As you will be able to see the black_shading400.pnm is all white, I have no idea how to alter this. You can see from the white_shading400.pnm the full calibration area so I am at a loss really. Have you encountered this problem before? Thanks Chris -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.