Adding otsu automatic threshold

@isivigno I duplicate the PR of also DGtal.
It also the same that i use in ImaGene, it looks ok but we can perhaps just wait the integration in the ipol demo. I look it now.