Closed yamt closed 3 years ago
@dlbeer could you please take a look?
This looks like a good idea, but I'd suggest using long long for sum instead of double. We do use floating-point quite a bit, but not on a per-pixel basis so far.
This looks like a good idea, but I'd suggest using long long for sum instead of double. We do use floating-point quite a bit, but not on a per-pixel basis so far.
it isn't a per-pixel basis. it's per-histgram-buckets, for which we already use double below.
Sorry, yes you're right. Looks fine in that case.
i have no strong opinions either ways. if it's controversial, i can drop the commit because what actually matters to me is another commit in this PR.