IDL code to preprocess canopy photos for use in CAN-EYE