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.
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.
更多信息和选项
- 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" 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`"]Morphological closing removes thin, dark features:
CUDAClosing[[image], 2]Use morphological closing to remove salt-and-pepper noise from a color photo:
CUDAClosing[[image], 1]Remove small holes in foreground objects:
CUDAClosing[[image], 1]MatrixForm[CUDAClosing[RandomInteger[{0, 255}, {5, 5, 3}], 1]]CUDAClosing works with graphics objects:
CUDAClosing[\!\(\*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 closing operation:
CUDAClosing[mem, 1]This gets the memory back to the CPU:
CUDAMemoryGet[%]CUDAMemoryUnload[mem]相关指南
-
▪
- CUDALink
文本
Wolfram Research (2010),CUDAClosing,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAClosing.html.
CMS
Wolfram 语言. 2010. "CUDAClosing." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDAClosing.html.
APA
Wolfram 语言. (2010). CUDAClosing. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CUDALink/ref/CUDAClosing.html 年
BibTeX
@misc{reference.wolfram_2026_cudaclosing, author="Wolfram Research", title="{CUDAClosing}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDAClosing.html}", note=[Accessed: 16-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_cudaclosing, organization={Wolfram Research}, title={CUDAClosing}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDAClosing.html}, note=[Accessed: 16-August-2026]}