Calculating difference between two features

Calculating difference between two features

I have been working on a code in OpenFrameworks to calculate the difference between two features. Assuming that I already have two images of features that I want to compare this code will transform these images into greyscale version of them. In order to detect the difference between two features I decided to use difference of Gaussians as an edge detector. It will find the contours of the edges and crop the images to the bounding boxes of the contours. Finally it calculates the euclidian difference of the pixels between these processed images and returns the result. The code can be found here:

https://github.com/danaras/difference-of-gaussians

Screen Shot 2016-03-30 at 6.29.22 PM