Fix and cleanup of patch sampling code
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).