Skip to content

Fix and cleanup of patch sampling code

Alessandro Motta requested to merge fix-patch-sampling into master

Previously, the elements of the offset vector were of type uint8. As a result, the random integers sampled using np.random.randint were truncated to the interval [0, 255] upon assignment to offset.

This bug caused portions of the target volume never to be sampled (for sufficiently large target sizes).

Merge request reports