Calculate the sum of pixel in a BW image per row and col

you can use reduce() for this

1 Like