%This function implements the gaussian smooth for an histogram an then it
%can be used to find the thershold. It uses the COUNTS variable that is
%returned by the imhist funcion an w is the size of the window that you
%want to use. It has to be a odd number. if not, the funcion will not run
%properly.
1