def load_spatial_filters(packed=True):
 names = ('Bilinear', 'Hanning', 'Hamming', 'Hermite', 'Kaiser', 'Quadric', 'Bicubic', 'CatRom', 'Mitchell', 'Spline16', 'Spline36', 'Gaussian', 'Bessel', 'Sinc', 'Lanczos', 'Blackman', 'Nearest')
 kernel = np.load(op.join(DATA_DIR, 'spatial-filters.npy'))
 if packed:
  kernel = pack_unit(kernel)
 return (kernel, names)

def load_spatial_filters ( packed = True ) : names = ( 'Bilinear' , 'Hanning' , 'Hamming' , 'Hermite' , 'Kaiser' , 'Quadric' , 'Bicubic' , 'CatRom' , 'Mitchell' , 'Spline16' , 'Spline36' , 'Gaussian' , 'Bessel' , 'Sinc' , 'Lanczos' , 'Blackman' , 'Nearest' ) kernel = np . load ( op . join ( DATA_DIR , 'spatial-filters.npy' ) ) if packed : kernel = pack_unit ( kernel ) return ( kernel , names )
load spatial-filters kernel parameters packed : bool whether or not the data should be in "packed" representation for use in glsl code .