Added erosion filter, but did not intergrate