Skip to content

Commit ab74a53

Browse files
committed
ENH: Temper bias field simulation.
1 parent 0828714 commit ab74a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ants/deeplearn/data_augmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def data_augmentation(input_image_list,
272272
number_of_fitting_levels=2,
273273
mesh_size=10)
274274
log_field = log_field.iMath("Normalize")
275-
bias_field_array = np.power(np.exp(log_field.numpy()), random.sample((2, 3, 4), 1)[0])
275+
bias_field_array = np.power(np.exp(log_field.numpy()), random.sample((1, 1.5), 1)[0])
276276
image = image * ants.from_numpy_like(bias_field_array, image)
277277

278278
# Histogram intensity warping

0 commit comments

Comments
 (0)