
There are 5 demos in this folder, demo1, demo2,..., demo5.

For each demo, the points marked by the user are saved in Matlab variables to
regenerate the results provided in the paper.

The software is tested on Matlab R2012a and should work on later version too. 
However, few functions might not be available in the earlier versions of the Matlab
like 'bwlabel' used in connected component analysis.

Note: Before you run any demo, you need to compile bestexemplarhelper.c file 
using MEX command of Matlab.

Run any demo script to see the defencing results.

The results are saved in folder Results_Demoi (where i is demo number) in the current working folder.
Results at each stage of the algorithm are saved. Final defenced image is saved 
with name: expi_restored.bmp (where i is experiment number)
The detils of the parameters is printed on the Matlab command line.

demo 1: Removing Occluded Fence   
demo 2: Removing Regular Fence     (Freeing chimpanzee Exp.)
demo 3: Removing multi-color fence (First instance only)
demo 4: Removing Texture           (De-texturing the wall)
demo 5: Removing irregular Fence   (De-fencing Thistle flower)

