CUDALink`
CUDALink`

CUDADilation

CUDADilation[img,r]

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

CUDADilation[mem,r]

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

CUDADilation[mem,r]

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

Details and Options

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • CUDADilation works with binary, grayscale, and other images.
  • CUDADilation works with CUDAMemory and lists.
  • CUDADilation[image,r] is equivalent to Dilation[image,r].
  • If multiple image channels are present, CUDADilation 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

Examples

Basic Examples  (6)

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:

CUDADilation 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:

Wolfram Research (2010), CUDADilation, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html.

Text

Wolfram Research (2010), CUDADilation, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html.

CMS

Wolfram Language. 2010. "CUDADilation." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html.

APA

Wolfram Language. (2010). CUDADilation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html

BibTeX

@misc{reference.wolfram_2024_cudadilation, author="Wolfram Research", title="{CUDADilation}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html}", note=[Accessed: 12-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_cudadilation, organization={Wolfram Research}, title={CUDADilation}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html}, note=[Accessed: 12-November-2024 ]}