MATLAB: Edge Tracking a beam between two images

beamdetectionedgepixelpixelstrackingtranslation

Hi, I am looking into tracking the edge of a beam which slightly moves between two images. I currently have been given a code which uses 'phase singularity tracking' which works but was wondering if there was a code which can simply track the edges of the beam in these images? I am pretty new to Matlab and have currently tried to use intensity of white to black across a line of pixels to try and pick up the beam edge and I require another technique (I have seen edge detection examples but can they be applied for tracking?).
Many Thanks, Graham

Best Answer

An edge filter should work just fine on this.
doc edge
or you do a simple threshold:
Imask = I<50;
the_edges = bwperim(Imask);
Related Question