|
SOLUTIONS
|
CUDALINK SYMBOL
CUDAOpening
gives the morphological opening of img with respect to a range-r square.
![]()
gives the morphological opening of list with respect to a range-r square.
![]()
gives the morphological opening of mem with respect to a range-r square.
DetailsDetails
- The CUDALink application must be loaded using Needs["CUDALink`"].
works with binary, grayscale, and other images.
is equivalent to Opening[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
ExamplesExamplesopen allclose all
Basic Examples (5)Basic Examples (5)
First, load the CUDALink application:
| In[1]:= |
Use morphological opening to extract objects larger than the structuring element:
| In[2]:= |
| Out[2]= | ![]() |
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
Out[1]//MatrixForm= | |
![]() | |
| In[1]:= |
| Out[1]= | ![]() |
Using CUDAMemory, you can speed up computation by reducing the time spent on memory operations. This loads memory onto the GPU:
| In[1]:= |
This performs the opening 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 »








