MIC-DKFZ / batchgenerators

A framework for data augmentation for 2D and 3D image classification and segmentation
Apache License 2.0
1.1k stars 221 forks source link

fix recentering #83

Closed Kobalt93 closed 3 years ago

Kobalt93 commented 3 years ago

As the numpy np.round function has a special feature, I corrected the recentering after the transformations. ( np.round([0.5, 1.5, 2.5, 3.5, 4.5]) --> array([0., 2., 2., 4., 4.]) )