Skip to content

Commit

Permalink
ENH: changed pad mode from constant to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelschwier committed Feb 21, 2018
1 parent 7ff0548 commit 67845cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiomics/imageoperations.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ def _swt3(inputImage, wavelet='coif1', level=1, start_level=0, axes=(2, 1, 0)):
original_shape = matrix.shape
padding = tuple([(0, 1 if dim % 2 != 0 else 0) for dim in original_shape])
data = matrix.copy()
data = numpy.pad(data, padding, 'constant')
data = numpy.pad(data, padding, 'wrap')

if not isinstance(wavelet, pywt.Wavelet):
wavelet = pywt.Wavelet(wavelet)
Expand Down

0 comments on commit 67845cf

Please sign in to comment.