This program is the implementation of the paper "Anisotropic Superpixel Generation Based on Mahalanobis Distance".

Acknowledgement:
The "merging-swapping" optimization code is built on the basis of source code release by Dr. Michael Garland (http://mgarland.org/papers.html)

Dependency:
OpenCV	http://opencv.org/

Configuration:
Set up the corresponding OpenCV include and lib paths for the VS project.
It should work on most windows systems.

Command Line Usage: The bin folder provides the compiled .exe file to use our algorithm.
Superpixel_Gaussian_MCVT.exe  in_folder  out_folder  #superpixel  location_ratio
in_folder: folder for the set of images
out_folder: folder to store the superpixels and partition results
#superpixel: the desired number of superpixels
loation_ratio: the ratio between the color homogenity energy and the location regularity energy. Typical values ranges from 0.1 to 5 depending on the application.
