changing to 'reflect' mode when downsampling, there was a small issue using 'constant'
@@ -53,7 +53,7 @@ def to_vtk(im, path='./voxvtk', divide=False, downsample=False, voxel_size=1,
cellData={'im': np.ascontiguousarray(im2)},
spacing=(vs, vs, vs))
elif downsample:
- im = spim.interpolation.zoom(im, zoom=0.5, order=0)
+ im = spim.interpolation.zoom(im, zoom=0.5, order=0, mode='reflect')
bp.imageToVTK(path, cellData={'im': np.ascontiguousarray(im)},
spacing=(2*vs, 2*vs, 2*vs))
else:
