CUDAImageDivide
This feature is not supported on the Wolfram Cloud.


divides each channel value in img by an amount x.


divides each channel value in mem by an amount x.


gives an image in which each pixel is the division of the corresponding pixels in and .


gives a CUDAMemory in which each pixel is the division of the corresponding pixels in and .

DetailsDetails

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • works with binary, grayscale, and other images.
  • works with CUDAMemory and lists.
  • is equivalent to CUDAImageMultiply[image1,1/x].
  • The image returned by has the same dimensions as image.
  • and must be the same dimensions in .
  • If is a single-channel image, each channel of is divided by in .
  • In , the number x is normally in the range 0 to 1 and is not defined at 0.
  • gives an image with the same underlying data type as image, clipping or truncating values if necessary.
  • gives an image with the type of , clipping or truncating values if necessary.
  • The following options can be given:
  • "Device"Automaticdevice used for CUDA computation
    "OutputMemory"NoneCUDAMemory where output is stored

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

First, load the CUDALink application:

In[1]:=
Click for copyable input

This divides each pixel of the input image by a constant value 0.5:

In[2]:=
Click for copyable input
Out[2]=

This divides each pixel of the input image by a constant value 2.0:

In[1]:=
Click for copyable input
Out[1]=

can be used to multiply rank 2 or 3 lists:

In[1]:=
Click for copyable input
Out[1]//MatrixForm=