此为 Mathematica 8 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

CUDAImageConvolve


gives the convolution of img with kern.

gives the convolution of list with kern.

gives the convolution of mem with kern.
  • The CUDALink application must be loaded using Needs.
  • works with binary, grayscale, and other images.
  • If multiple image channels are present, 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
First, load the CUDALink application:
This performs a mean filter:
Use on a grayscale image with a Sobel mask to detect vertical edges:
Using on a graphics object will automatically rasterize the graphic:
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 on a grayscale image with a Sobel mask to detect vertical edges:
In[1]:=
Click for copyable input
Out[1]=
 
Using on a graphics object will automatically rasterize the graphic:
In[1]:=
Click for copyable input
Out[1]=
can be used to perform heat diffusion:
can be used to process geographic elevation data: