Python scripts to perform image analysis