My first official (read paid) software development jobs was to create an application to calculate a contact angle for a droplet on a surface from an image of the droplet as a part of a research project at the University of Toronto.
Indeed, it is this project in particular that spurred on many future years of creating software.
In case someone finds it useful, I've put the code online (see below). It is certainly not my best work, (I would hope I've learned a few things over the last decade), and it won't run as is due to some data corruption. It might be a good starting point for someone with similar needs (if it is, please let me know).
In addition to this, there was also code for generating graphs from thousands of pictures in Excel, but that is long lost.
Files:
Languages and Technologies
MATLAB, Visual Basic for Applications