b8092368305c2518c06fc0de2dbbe00fb7368d97,ants/contrib/sampling/affine3d.py,RandomZoom3D,transform,#RandomZoom3D#,605
Before Change
// random draw in zoom range
zoom_x = random.uniform(self.zoom_range[0], self.zoom_range[1])
zoom_y = random.uniform(self.zoom_range[0], self.zoom_range[1])
zoom_z = random.uniform(self.zoom_range[0], self.zoom_range[1])
self.params = (zoom_x, zoom_y, zoom_z)
tx = Zoom3D((zoom_x,zoom_y,zoom_z),
reference=self.reference,
lazy=self.lazy)
After Change
zoom_x = np.exp( random.gauss(
np.log( self.zoom_range[0] ),
np.log( self.zoom_range[1] ) ) )
zoom_y = np.exp( random.gauss(
np.log( self.zoom_range[0] ),
np.log( self.zoom_range[1] ) ) )
zoom_z = np.exp( random.gauss(
np.log( self.zoom_range[0] ),
np.log( self.zoom_range[1] ) ) )
self.params = (zoom_x, zoom_y, zoom_z)
tx = Zoom3D((zoom_x,zoom_y,zoom_z),
reference=self.reference,
lazy=self.lazy)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 9
Instances
Project Name: ANTsX/ANTsPy
Commit Name: b8092368305c2518c06fc0de2dbbe00fb7368d97
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine3d.py
Class Name: RandomZoom3D
Method Name: transform
Project Name: ANTsX/ANTsPy
Commit Name: b8092368305c2518c06fc0de2dbbe00fb7368d97
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine3d.py
Class Name: RandomZoom3D
Method Name: transform
Project Name: ANTsX/ANTsPy
Commit Name: b8092368305c2518c06fc0de2dbbe00fb7368d97
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine2d.py
Class Name: RandomZoom2D
Method Name: transform