Java -> C++ Codeint MaxEntropy(float* histo, int n_length) { // Implements Kapur-Sahoo-Wong (Maximum Entropy) thresholding method // Kapur J.N., Sahoo P.K., and Wong A.K.C. (1985) "A New Method for // Gray-Level Picture Thresholding Using the Entropy of the Histogram" // Graphical Models and Image Processing, 29(3): 273-285 // M. Emre Celebi // 06.15.2007 // Ported to ImageJ plugin by G.Landini ..