Commit 2a82551d authored by Pierre Paleo's avatar Pierre Paleo
Browse files

More conditional imports

parent e23c788a
Pipeline #26958 failed with stages
in 55 seconds
import numpy as np
from os.path import dirname
from silx.image.utils import gaussian_kernel
import pycuda.gpuarray as garray
from pycuda.compiler import SourceModule
from ..utils import updiv, get_cuda_srcfile
from ..utils import updiv, get_cuda_srcfile, __has_pycuda__
from ..misc.utils import ConvolutionInfos
from .processing import CudaProcessing
if __has_pycuda__:
import pycuda.gpuarray as garray
from pycuda.compiler import SourceModule
class Convolution(CudaProcessing):
"""
......
import pycuda.gpuarray as garray
from ..cuda.utils import __has_pycuda__
from ..cuda.convolution import Convolution
from pycuda.elementwise import ElementwiseKernel
from ..cuda.processing import CudaProcessing
from .unsharp import UnsharpMask
if __has_pycuda__:
import pycuda.gpuarray as garray
from pycuda.elementwise import ElementwiseKernel
class CudaUnsharpMask(UnsharpMask, CudaProcessing):
def __init__(self, shape, sigma, coeff, mode="reflect", method="gaussian",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment