Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/a/g/agpy-0.1.3/AG_fft_tools/smooth_tools.py   agpy(Download)
import numpy as np
from AG_image_tools.downsample import downsample as downsample_2d
from convolve_nd import convolvend as convolve
 
def smooth(image, kernelwidth=3, kerneltype='gaussian', trapslope=None,
    if downsample:
        if downsample_factor is None: downsample_factor = kernelwidth
        if return_kernel: return downsample_2d(temp,downsample_factor),downsample_2d(kernel,downsample_factor)
        else: return downsample_2d(temp,downsample_factor)
    else: