CUDALink`
CUDALink`

CUDAImageConvolve

CUDAImageConvolve[img,kern]

gives the convolution of img with kern.

CUDAImageConvolve[list,kern]

gives the convolution of list with kern.

CUDAImageConvolve[mem,kern]

gives the convolution of mem with kern.

更多信息和选项更多信息
  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • CUDAImageConvolve works with binary, grayscale, and other images.
  • CUDAImageConvolve works with CUDAMemory and lists.
  • CUDAImageConvolve[image,kern] is equivalent to ImageConvolve[image,kern].
  • If multiple image channels are present, CUDAImageConvolve operates on each of them separately.
  • The following options can be given:
  • "Device"Automaticdevice used for CUDA computation
    Padding"Fixed"value used on boundary
    "OutputMemory"NoneCUDAMemory where output is stored
  • 范例

    打开所有单元关闭所有单元

    基本范例  (3)

    First, load the CUDALink application:

    In[1]:=
    Click for copyable input

    This performs a mean filter:

    In[2]:=
    Click for copyable input
    Out[2]=

    Use CUDAImageConvolve on a grayscale image with a Sobel mask to detect vertical edges:

    In[1]:=
    Click for copyable input
    Out[1]=

    Using CUDAImageConvolve on a graphics object will automatically rasterize the graphic:

    In[1]:=
    Click for copyable input
    Out[1]=

    Applications  (2)

    参见

    ImageConvolve  CUDABoxFilter

    教程