Skip to content

Commit

Permalink
bugfix: (again) type issue when counting non-zero pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Feb 27, 2024
1 parent f0384c1 commit 46f9899
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static double countNonZeroPixels(CLIJ2 clij2, ClearCLBuffer clImage) {
Cursor cursor = Views.iterable(rai).cursor();
long sum = 0;
while (cursor.hasNext()) {
sum += ((RealType) cursor.next()).getRealFloat();
sum += (long) ((RealType) cursor.next()).getRealFloat();
}

if (clImage != clReducedImage) {
Expand Down

0 comments on commit 46f9899

Please # to comment.