CUDALink`
CUDALink`

CUDAImageConvolve

CUDAImageConvolve[img,kern]

gives the convolution of img with kern.

CUDAImageConvolve[list,kern]

gives the convolution of list with kern.

CUDAImageConvolve[mem,kern]

gives the convolution of mem with kern.

Details and Options

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • CUDAImageConvolve works with binary, grayscale, and other images.
  • CUDAImageConvolve works with CUDAMemory and lists.
  • CUDAImageConvolve[image,kern] is equivalent to ImageConvolve[image,kern].
  • If multiple image channels are present, CUDAImageConvolve 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

Examples

open allclose all

Basic Examples  (3)

First, load the CUDALink application:

This performs a mean filter:

Use CUDAImageConvolve on a grayscale image with a Sobel mask to detect vertical edges:

Using CUDAImageConvolve on a graphics object will automatically rasterize the graphic:

Applications  (2)

CUDAImageConvolve can be used to perform heat diffusion:

CUDAImageConvolve can be used to process geographic elevation data:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2023_cudaimageconvolve, organization={Wolfram Research}, title={CUDAImageConvolve}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDAImageConvolve.html}, note=[Accessed: 19-March-2024 ]}