Scientific analysis of visual data using OOP MATLAB