CUDALink`
CUDALink`

CUDAClosing

CUDAClosing[img,r]

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

CUDAClosing[list,r]

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

CUDAClosing[mem,r]

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

Details and Options

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

open allclose all

Basic Examples  (6)

First, load the CUDALink application:

Morphological closing removes thin, dark features:

Use morphological closing to remove salt-and-pepper noise from a color photo:

Remove small holes in foreground objects:

CUDAClosing works with lists:

CUDAClosing 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 closing operation:

This gets the memory back to the CPU:

Memory must be deleted:

Applications  (1)

Clean an astronomical image:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_cudaclosing, organization={Wolfram Research}, title={CUDAClosing}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDAClosing.html}, note=[Accessed: 21-December-2024 ]}