CUDALink`
CUDALink`

CUDAErosion

CUDAErosion[img,r]

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

CUDAErosion[list,r]

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

CUDAErosion[mem,r]

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

更多信息和选项

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

范例

基本范例  (6)

First, load the CUDALink application:

Erosion reduces smaller, light features:

Erosion of a grayscale image:

Erosion operates on each color channel independently:

Erosion can be used to perform a max filter on an input list:

CUDAErosion 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 erosion operation:

This gets the memory back to the CPU:

Memory must be deleted:

Wolfram Research (2010),CUDAErosion,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAErosion.html.

文本

Wolfram Research (2010),CUDAErosion,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAErosion.html.

CMS

Wolfram 语言. 2010. "CUDAErosion." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDAErosion.html.

APA

Wolfram 语言. (2010). CUDAErosion. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CUDALink/ref/CUDAErosion.html 年

BibTeX

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

BibLaTeX

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