new operator to compute cumulative histogram and pixel classification