CUDALink`
CUDALink`

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.

Details and Options

  • 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"$CUDADeviceCUDA device used to perform computation
    "OutputMemory"Noneoutput memory provided to avoid creating new memory location

Examples

open allclose all

Basic Examples  (5)

First, load the CUDALink application:

This performs color negation on the input color image:

This inverts a grayscale image:

This inverts a binary image:

This performs color negation on the input list:

If the input is CUDAMemory, then memory is returned as output:

This negates the input:

Memory is retrieved using CUDAMemoryGet:

Interactive Examples  (1)

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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