Added getCountourline makeFD and parameters for threshold and erosion