CUDALink`
CUDALink`

CUDABoxFilter

CUDABoxFilter[img,r]

gives the box filter of img with radius r.

CUDABoxFilter[list,r]

gives the box filter of list with radius r.

CUDABoxFilter[mem,r]

gives the box filter of mem with radius r.

更多信息和选项更多信息
  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • CUDABoxFilter works with binary, grayscale, and other images.
  • CUDABoxFilter works with CUDAMemory and lists.
  • CUDABoxFilter[image,r] is equivalent to CUDAImageConvolve[image,BoxMatrix[r]].
  • If multiple image channels are present, CUDABoxFilter 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]=

    This finds the sum of values in a neighborhood of a list:

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

    CUDABoxFilter on a graphics object will automatically rasterize the graphic:

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

    Applications  (1)

    参见

    CUDAImageConvolve  BoxMatrix  CUDAErosion  CUDADilation  CUDAImageAdd

    教程