Skip to content

Commit

Permalink
Merge pull request #139 from douglase/master
Browse files Browse the repository at this point in the history
rename scale to rescale to match sampling.py
  • Loading branch information
rjw57 committed Mar 7, 2018
2 parents 7b84189 + 2605459 commit ad9922d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/resampling_highpass_coefficients.py
Expand Up @@ -32,11 +32,11 @@

def scale_direct(im):
"""Scale image directly."""
return dtcwt.sampling.scale(im, (im.shape[0]*scale, im.shape[1]*scale), scale_method)
return dtcwt.sampling.rescale(im, (im.shape[0]*scale, im.shape[1]*scale), scale_method)

def scale_highpass(im):
"""Scale image assuming it to be wavelet highpass coefficients."""
return dtcwt.sampling.scale_highpass(im, (im.shape[0]*scale, im.shape[1]*scale), scale_method)
return dtcwt.sampling.rescale_highpass(im, (im.shape[0]*scale, im.shape[1]*scale), scale_method)

# Rescale mandrill directly using default (Lanczos) sampling
mandrill_direct = scale_direct(mandrill)
Expand Down

0 comments on commit ad9922d

Please sign in to comment.