CSR implementation:

seems to be faster than lut even with using masks and rois for 1d integration
LUT is still the fastest method for 2d integration