Machine Vision Mathematica Code