5 void (*func) (CELL, CELL, CELL))
17 if (min1 > max1 || min2 > max2)
27 if (cat == 0 && !zero)
35 range2 = max2 - min2 + 1;
36 span = total / range2;
47 if (cat == 0 && !zero)
50 x = (sum + (count / 2.0)) / span;
61 else if (newcat != x) {
62 func(prev, cat - 1, newcat);
68 func(prev, cat, newcat);
69 if (!zero && min1 <= 0 && max1 >= 0)
70 func((CELL) 0, (CELL) 0, (CELL) 0);
int G_next_cell_stat(CELL *cat, long *count, struct Cell_stats *s)
retrieve sorted cell stats
int G_rewind_cell_stats(struct Cell_stats *s)
reset/rewind cell stats
int G_cell_stats_histo_eq(struct Cell_stats *statf, CELL min1, CELL max1, CELL min2, CELL max2, int zero, void(*func)(CELL, CELL, CELL))