Data extraction and processing of optical images in the medical and biological sciences