pyramid-reduce

pyramid_reduce

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

Smooth and then downsample image.

Parameters:

image : array

Input image.

downscale : float, optional

Downscale factor.

sigma : float, optional

Sigma for Gaussian filter. Default is 2 * downscale / 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 downsampling. 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

Smoothed and downsampled float image.

References

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

Please login to continue.