If you already have the images on your machine, then you could use either Image processing Toolbox or Computer Vision System Toolbox in MATLAB to analyze the properties of your image.
Refer to the following documentation links:
There are many examples provided in the following documentation pages that can help you find the best techniques for your workflow: