I am Image Analyst - the #2 most highly rated contributor on the Mathworks MATLAB Answers forum. I have 40 years of image processing experience, and am the foremost expert on using MATLAB for image processing. I will provide a half hour of programming to make a little script that you can adapt into your program. I can provide turnkey solutions with a graphical user interface for extra money.