A MATLAB code which reads numbers in a video, references, and calculates drop dynamics' characteristics
The MATLAB code reads a number in a video frame using template matching (normalized cross-correlation algorithm). Further, it references the pixels accordingly considering the parallax between the scale and the object (drop). Finally, it calculates the object (drop) characteristics such as height from the free surface, velocity, aspect ratio, etc. In a nutshell, the code can be used where the camera moves with the object but a fixed ruler in the image can be used for referencing.
Template images, sample .avi color video for analysis, Matlab code file
Color video .avi (2000X2000 pixels) and associated parameters in the code; Output: Analyzed video and MATLAB data file
After downloading, what to do: Extract the Archive and RUN THE CODE! Comments provided in the code.
Sample_analyzed.mov
Shadab, M.A., Divoux, T. and Bischofberger, I., 2018. Drop-dynamics, Zenodo DOI: 10.5281/zenodo.6581760