Added Density function
Added Despeckle function