Criterion to leave or discard pixel is updated: now we check for Bin1D boundaries, not just center.
Bin1D