bisweb
bisweb copied to clipboard
Math.floor v Math.round when setting slices
Hi,
Great piece of software - really enjoyed using it!
I think though that I have found an issue when setting overlay slices:
3DOrthogonalSlice:
var sl=Math.floor(slmm/internal.imagespa[internal.plane]);
OrthogonalViewerElement:
let sl = [util.range(Math.round(coords[0] / this.internal.imagespa[0]), 0, this.internal.imagedim[0] - 1),
I have some data where the affines differ in the 8th decimal place, this is enough to send the overlay to a different slice (floor vs round).
Will take a look. Thanks. Could you share the images?
Hi, really sorry but I am not able to share the images.
If it helps, I could probably create some test cases that would reproduce the problem.