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.
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.
更多信息和选项
- 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" Automatic device used for CUDA computation Padding "Fixed" value used on boundary "OutputMemory" None CUDAMemory where output is stored
范例
基本范例 (6)
First, load the CUDALink application:
Needs["CUDALink`"]This removes smaller, dark features:
CUDADilation[[image], 1]CUDADilation[[image], 3]CUDADilation[[image], 3]Dilation can be used to perform a min filter on an input list:
MatrixForm[CUDADilation[RandomInteger[{0, 255}, {5, 5, 3}], 1]]CUDADilation works with graphics objects:
CUDADilation[\!\(\*Graphics3DBox[«7»]\), 5]Using CUDAMemory, one can speed up computation by reducing the amount of memory operations. This loads memory onto the CPU:
mem = CUDAMemoryLoad[[image]];This performs the dilation operation:
CUDADilation[mem, 1]This gets the memory back to the CPU:
CUDAMemoryGet[%]CUDAMemoryUnload[mem]相关指南
-
▪
- CUDALink
文本
Wolfram Research (2010),CUDADilation,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html.
CMS
Wolfram 语言. 2010. "CUDADilation." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html.
APA
Wolfram 语言. (2010). CUDADilation. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html 年
BibTeX
@misc{reference.wolfram_2026_cudadilation, author="Wolfram Research", title="{CUDADilation}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html}", note=[Accessed: 13-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_cudadilation, organization={Wolfram Research}, title={CUDADilation}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDADilation.html}, note=[Accessed: 13-August-2026]}