Materials scientists make use of image processing tools more and more as technology advances and the data volume that needs to be analyzed increases. We propose a method to optically measure magnetic eld induced strain (MFIS) as well as twin boundary movement in Ni2MnGa single crystal shape memory alloys to facilitate spatially resolved tracking of deformation. Current magneto-mechanical experiments used to measure MFIS can measure strain only in one direction and do not provide information about the movement of individual twin boundaries. A sequence of images captured from a high resolution camera is analyzed by a boundary detection algorithm to provide strain data in multiple directions. Subsequent motion detection and Hough feature extra...