Matlab code for creating an edge map written as a part of my blog ahumaninmachinesworld.blogspot.in