File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ def conform(
320
320
out_shape = (256 , 256 , 256 ),
321
321
voxel_size = (1.0 , 1.0 , 1.0 ),
322
322
order = 3 ,
323
+ mode = 'constant' ,
323
324
cval = 0.0 ,
324
325
orientation = 'RAS' ,
325
326
out_class = None ,
@@ -353,6 +354,10 @@ def conform(
353
354
order : int, optional
354
355
The order of the spline interpolation, default is 3. The order has to
355
356
be in the range 0-5 (see ``scipy.ndimage.affine_transform``)
357
+ mode : str, optional
358
+ Points outside the boundaries of the input are filled according to the
359
+ given mode ('constant', 'nearest', 'reflect' or 'wrap'). Default is
360
+ 'constant' (see :func:`scipy.ndimage.affine_transform`)
356
361
cval : scalar, optional
357
362
Value used for points outside the boundaries of the input if
358
363
``mode='constant'``. Default is 0.0 (see
@@ -393,7 +398,7 @@ def conform(
393
398
from_img = from_img ,
394
399
to_vox_map = (out_shape , out_aff ),
395
400
order = order ,
396
- mode = 'constant' ,
401
+ mode = mode ,
397
402
cval = cval ,
398
403
out_class = out_class ,
399
404
)
You can’t perform that action at this time.
0 commit comments