sumit3203 / jfeaturelib

Automatically exported from code.google.com/p/jfeaturelib
0 stars 0 forks source link

Mean and variance in Haralick computed wrong? #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
        // mean values
        for (int i = 0; i < NUM_GRAY_VALUES; i++) {
            mu_x += i * p_x[i];
            mu_y += i * p_y[i];
        }

that doesn't compute the mean - and subsequently the variance is wrong as well

Original issue reported on code.google.com by franz.graf on 13 May 2012 at 9:00

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r296.

Original comment by franz.graf on 13 May 2012 at 9:15