Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
CUDALink >

CUDADilation


gives the morphological dilation of img with respect to a range-r square.

gives the morphological dilation of list with respect to a range-r square.

gives the morphological dilation of mem with respect to a range-r square.
  • 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 removes smaller, dark features:
Dilation of a binary image:
Grayscale dilation:
Dilation can be used to perform a min filter on an input list:
works with graphics objects:
Using CUDAMemory, one can speed up computation by reducing the amount of memory operations. This loads memory onto the CPU:
This performs the dilation operation:
This gets the memory back to the CPU:
Memory must be deleted:
First, load the CUDALink application:
In[1]:=
Click for copyable input
This removes smaller, dark features:
In[2]:=
Click for copyable input
Out[2]=
 
Dilation of a binary image:
In[1]:=
Click for copyable input
Out[1]=
 
Grayscale dilation:
In[1]:=
Click for copyable input
Out[1]=
 
Dilation can be used to perform a min filter on an input list:
In[1]:=
Click for copyable input
Out[1]//MatrixForm=
 
works with graphics objects:
In[1]:=
Click for copyable input
Out[1]=
 
Using CUDAMemory, one can speed up computation by reducing the amount of memory operations. This loads memory onto the CPU:
In[1]:=
Click for copyable input
This performs the dilation operation:
In[2]:=
Click for copyable input
Out[2]=
This gets the memory back to the CPU:
In[3]:=
Click for copyable input
Out[3]=
Memory must be deleted:
In[4]:=
Click for copyable input
Out[4]=
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF