Incorrect casting of double into unsigned long introduced by 2018 change of vtkOrderStatistics
Commit 56bf715c modified line 228 of
Filters/Statistics/vtkOrderStatistics.cxx as follows:
++ histogram[static_cast<unsigned long>(quantum)];
This casting of
quantum from a double into an unsigned long causes the histogram support to collapse into a singleton, when the
Quantize mode is turned ON.
Instead, this line should be fixed to its original implementation, as follows:
I confirm that returning this line to its previous state fixes the problem.
NB: It is not necessary to revert the entire commit