CUDAColorNegate[image]
performs color negation on image.
CUDAColorNegate[list]
performs color negation on list.
CUDAColorNegate[mem]
performs color negation on memory referenced by mem.
CUDAColorNegate
CUDAColorNegate[image]
performs color negation on image.
CUDAColorNegate[list]
performs color negation on list.
CUDAColorNegate[mem]
performs color negation on memory referenced by mem.
更多信息和选项
- The CUDALink package must be loaded using Needs["CUDALink`"].
- CUDAColorNegate works with binary, grayscale, and other images.
- CUDAColorNegate works with CUDAMemory and lists.
- If multiple image channels are present, CUDAColorNegate operates on each of them separately.
- If the input type is Real, then the input is subtracted from 1.0, not 255.
- CUDAColorNegate does not work on fixed vector structure types like "Float[2]", "Integer32[2]", ….
- The following options can be given:
-
"Device" $CUDADevice CUDA device used to perform computation "OutputMemory" None output memory provided to avoid creating new memory location
范例
打开所有单元 关闭所有单元基本范例 (5)
First, load the CUDALink application:
Needs["CUDALink`"]This performs color negation on the input color image:
CUDAColorNegate[[image]]This inverts a grayscale image:
CUDAColorNegate[[image]]CUDAColorNegate[[image]]This performs color negation on the input list:
CUDAColorNegate[{{1.0, 0.5, 0.0}}]If the input is CUDAMemory, then memory is returned as output:
m = CUDAMemoryLoad[[image]]res = CUDAColorNegate[m]Memory is retrieved using CUDAMemoryGet:
CUDAMemoryGet[res]Interactive Examples (1)
Animate[CUDAImageAdd[CUDAImageMultiply[[image], ii], CUDAImageMultiply[CUDAColorNegate[[image]], jj]], {ii, 1.0, 0.0}, {jj, 0.0, 1.0}]相关指南
-
▪
- CUDALink
文本
Wolfram Research (2010),CUDAColorNegate,Wolfram 语言函数,https://reference.wolfram.com/language/CUDALink/ref/CUDAColorNegate.html.
CMS
Wolfram 语言. 2010. "CUDAColorNegate." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDAColorNegate.html.
APA
Wolfram 语言. (2010). CUDAColorNegate. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CUDALink/ref/CUDAColorNegate.html 年
BibTeX
@misc{reference.wolfram_2026_cudacolornegate, author="Wolfram Research", title="{CUDAColorNegate}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDAColorNegate.html}", note=[Accessed: 09-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_cudacolornegate, organization={Wolfram Research}, title={CUDAColorNegate}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDAColorNegate.html}, note=[Accessed: 09-August-2026]}