pyramid-expand

pyramid_expand

skimage.transform.pyramid_expand(image, upscale=2, sigma=None, order=1, mode='reflect', cval=0) [source]

Upsample and then smooth image.

Parameters:

image : array

Input image.

upscale : float, optional

Upscale factor.

sigma : float, optional

Sigma for Gaussian filter. Default is 2 * upscale / 6.0 which corresponds to a filter mask twice the size of the scale factor that covers more than 99% of the Gaussian distribution.

order : int, optional

Order of splines used in interpolation of upsampling. See skimage.transform.warp for detail.

mode : {‘reflect’, ‘constant’, ‘edge’, ‘symmetric’, ‘wrap’}, optional

The mode parameter determines how the array borders are handled, where cval is the value when mode is equal to ‘constant’.

cval : float, optional

Value to fill past edges of input if mode is ‘constant’.

Returns:

out : array

Upsampled and smoothed float image.

References

[R376] http://web.mit.edu/persci/people/adelson/pub_pdfs/pyramid83.pdf
doc_scikit_image
2017-01-12 17:22:54
Comments
Leave a Comment

Please login to continue.