|
SOLUTIONS
|
CUDALINK 符号
CUDAClosing
gives the closing of img with respect to a range-r square.
![]()
gives the closing of list with respect to a range-r square.
![]()
gives the closing of mem with respect to a range-r square.
更多信息更多信息
- The CUDALink application must be loaded using Needs["CUDALink`"].
works with binary, grayscale, and other images.
works with CUDAMemory and lists.
is equivalent to Closing[image, r].- If multiple image channels are present,
operates on each of them separately. - The following options can be given:
-
"Device" Automatic device used for CUDA computation Padding "Fixed" value used on boundary "OutputMemory" None CUDAMemory where output is stored
范例范例打开所有单元关闭所有单元
基本范例 (6)基本范例 (6)
First, load the CUDALink application:
| In[1]:= |
Morphological closing removes thin, dark features:
| In[2]:= |
| Out[2]= | ![]() |
Use morphological closing to remove salt-and-pepper noise from a color photo:
| In[1]:= |
| Out[1]= | ![]() |
Remove small holes in foreground objects:
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
Out[1]//MatrixForm= | |
![]() | |
| In[1]:= |
| Out[1]= | ![]() |
Using CUDAMemory, one can speed up computation by reducing the amount of memory operations. This loads memory onto the CPU:
| In[1]:= |
This performs the closing operation:
| In[2]:= |
| Out[2]= |
This gets the memory back to the CPU:
| In[3]:= |
| Out[3]= | ![]() |
| In[4]:= |
| Out[4]= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »










