TomographicImaging / CILViewer

A simple Viewer for 3D data built with VTK
Apache License 2.0
8 stars 6 forks source link

Downsampling should use round rather than int #359

Closed paskino closed 8 months ago

paskino commented 11 months ago

When calculating the downsampling on the Z axis we use int

https://github.com/vais-ral/CILViewer/blob/b6b0eb4ae2aa375bbaf5df8e11bd76cb1d739b28/Wrappers/Python/ccpi/viewer/utils/conversion.py#L1015-L1016

It should be using round


num_slices_per_chunk = int(np.round(1 / xy_axes_magnification))  # number of slices in the z direction we are resampling together.