Skip to content

Commit

Permalink
fix: wrong dimension used in getSegsInCircle
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Feb 24, 2024
1 parent f04b686 commit 1590e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microviewer/datacube.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ class SegmentationVolume extends MonoVolume {
let x0 = Math.max(0, Math.trunc(cx - rx) + 0.5),
xf = Math.min(width, Math.trunc(cx + rx) + 0.5),
y0 = Math.max(0, Math.trunc(cy - ry) + 0.5),
yf = Math.min(width, Math.trunc(cy + ry) + 0.5);
yf = Math.min(height, Math.trunc(cy + ry) + 0.5);

const ZERO = _this.getSegmentation().cast(0);
let segid = ZERO,
Expand Down

0 comments on commit 1590e70

Please sign in to comment.