Module Import alias Import alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Ellipsis Index NameLoad NameLoad keyword SubscriptLoad NameLoad ExtSlice Ellipsis Index NameLoad keyword NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareLtE NameLoad Num body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Num Str Num body Expr Str Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpDiv BinOpMult Num NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad TupleLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Num Str Num body Expr Str Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpDiv BinOpMult Num NameLoad Num Assign NameStore Call NameLoad NameLoad TupleLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad Num Str Num body Expr Str Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore NameLoad Expr Yield NameLoad While CompareNotEq NameLoad NameLoad body AugAssignAdd NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Break Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad Num Str Num body Expr Str Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpDiv BinOpMult Num NameLoad Num Assign NameStore Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Yield BinOpSub NameLoad NameLoad While CompareNotEq NameLoad NameLoad body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad TupleLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Break Expr Yield BinOpSub NameLoad NameLoad decorator_list
N/A N/A math N/A numpy np scipy ndimage ndi transform resize util img_as_float _smooth N/A N/A image sigma mode cval N/A N/A N/A Return image with each channel smoothed by the Gaussian filter. N/A smoothed N/A N/A np empty N/A image shape dtype N/A np double N/A N/A N/A image ndim 3 N/A N/A dim N/A range N/A N/A image shape N/A 2 N/A N/A N/A N/A ndi gaussian_filter N/A image N/A N/A N/A dim sigma output N/A smoothed N/A N/A N/A dim mode mode cval cval N/A N/A N/A N/A ndi gaussian_filter image sigma output smoothed mode mode cval cval N/A smoothed N/A _check_factor N/A N/A factor N/A N/A N/A N/A factor 1 N/A N/A N/A ValueError scale factor must be greater than 1 N/A pyramid_reduce N/A N/A image downscale sigma order mode cval N/A 2 None 1 reflect 0 N/A N/A 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
    ----------
    .. [1] http://web.mit.edu/persci/people/adelson/pub_pdfs/pyramid83.pdf

     N/A N/A _check_factor downscale N/A image N/A img_as_float image N/A rows N/A N/A image shape N/A 0 N/A cols N/A N/A image shape N/A 1 N/A out_rows N/A N/A math ceil N/A rows N/A float downscale N/A out_cols N/A N/A math ceil N/A cols N/A float downscale N/A N/A sigma None N/A N/A sigma N/A N/A 2 downscale 6.0 N/A smoothed N/A _smooth image sigma mode cval N/A out N/A resize smoothed N/A out_rows out_cols order order mode mode cval cval N/A out N/A pyramid_expand N/A N/A image upscale sigma order mode cval N/A 2 None 1 reflect 0 N/A N/A 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
    ----------
    .. [1] http://web.mit.edu/persci/people/adelson/pub_pdfs/pyramid83.pdf

     N/A N/A _check_factor upscale N/A image N/A img_as_float image N/A rows N/A N/A image shape N/A 0 N/A cols N/A N/A image shape N/A 1 N/A out_rows N/A N/A math ceil N/A upscale rows N/A out_cols N/A N/A math ceil N/A upscale cols N/A N/A sigma None N/A N/A sigma N/A N/A 2 upscale 6.0 N/A resized N/A resize image N/A out_rows out_cols order order mode mode cval cval N/A out N/A _smooth resized sigma mode cval N/A out N/A pyramid_gaussian N/A N/A image max_layer downscale sigma order mode cval N/A -1 2 None 1 reflect 0 N/A N/A Yield images of the Gaussian pyramid formed by the input image.

    Recursively applies the `pyramid_reduce` function to the image, and yields
    the downscaled images.

    Note that the first image of the pyramid will be the original, unscaled
    image. The total number of images is `max_layer + 1`. In case all layers
    are computed, the last image is either a one-pixel image or the image where
    the reduction does not change its shape.

    Parameters
    ----------
    image : array
        Input image.
    max_layer : int
        Number of layers for the pyramid. 0th layer is the original image.
        Default is -1 which builds all possible layers.
    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
    -------
    pyramid : generator
        Generator yielding pyramid layers as float images.

    References
    ----------
    .. [1] http://web.mit.edu/persci/people/adelson/pub_pdfs/pyramid83.pdf

     N/A N/A _check_factor downscale N/A image N/A img_as_float image N/A layer 0 N/A rows N/A N/A image shape N/A 0 N/A cols N/A N/A image shape N/A 1 N/A prev_layer_image image N/A N/A image N/A N/A layer max_layer N/A N/A layer 1 N/A layer_image N/A pyramid_reduce prev_layer_image downscale sigma order mode cval N/A prev_rows rows N/A prev_cols cols N/A prev_layer_image layer_image N/A rows N/A N/A layer_image shape N/A 0 N/A cols N/A N/A layer_image shape N/A 1 N/A N/A N/A prev_rows rows N/A prev_cols cols N/A N/A N/A N/A layer_image N/A pyramid_laplacian N/A N/A image max_layer downscale sigma order mode cval N/A -1 2 None 1 reflect 0 N/A N/A Yield images of the laplacian pyramid formed by the input image.

    Each layer contains the difference between the downsampled and the
    downsampled, smoothed image::

        layer = resize(prev_layer) - smooth(resize(prev_layer))

    Note that the first image of the pyramid will be the difference between the
    original, unscaled image and its smoothed version. The total number of
    images is `max_layer + 1`. In case all layers are computed, the last image
    is either a one-pixel image or the image where the reduction does not
    change its shape.

    Parameters
    ----------
    image : array
        Input image.
    max_layer : int
        Number of layers for the pyramid. 0th layer is the original image.
        Default is -1 which builds all possible layers.
    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
    -------
    pyramid : generator
        Generator yielding pyramid layers as float images.

    References
    ----------
    .. [1] http://web.mit.edu/persci/people/adelson/pub_pdfs/pyramid83.pdf
    .. [2] http://sepwww.stanford.edu/data/media/public/sep/morgan/texturematch/paper_html/node3.html

     N/A N/A _check_factor downscale N/A image N/A img_as_float image N/A N/A sigma None N/A N/A sigma N/A N/A 2 downscale 6.0 N/A layer 0 N/A rows N/A N/A image shape N/A 0 N/A cols N/A N/A image shape N/A 1 N/A smoothed_image N/A _smooth image sigma mode cval N/A N/A N/A image smoothed_image N/A N/A layer max_layer N/A N/A layer 1 N/A out_rows N/A N/A math ceil N/A rows N/A float downscale N/A out_cols N/A N/A math ceil N/A cols N/A float downscale N/A resized_image N/A resize smoothed_image N/A out_rows out_cols order order mode mode cval cval N/A smoothed_image N/A _smooth resized_image sigma mode cval N/A prev_rows rows N/A prev_cols cols N/A rows N/A N/A resized_image shape N/A 0 N/A cols N/A N/A resized_image shape N/A 1 N/A N/A N/A prev_rows rows N/A prev_cols cols N/A N/A N/A N/A N/A resized_image smoothed_image N/A