List of Supported Functions with Limitations and Other Notes

The following table lists all the Image Processing Toolbox™ functions that have been enabled to run on a GPU. In most cases, the functions support the same syntaxes and operate the same, but in some cases there are certain differences. This table lists these limitations, if any.

FunctionRemarks/Limitations
bwdistInputs must be 2-D and have less than 232-1 elements. Euclidean is the only distance metric supported.
bwlabel

bwlookup

bwmorph
corr2
edgeCanny method is not supported on the GPU.
histeq
im2double
im2int16
im2single
im2uint8
im2uint16
imabsdiffOnly single and double are supported
imadjust

imbothat

gpuArray input must be of type uint8 or logical and the structuring element must be flat and two-dimensional.

imclose

gpuArray input must be of type uint8 or logical and the structuring element must be flat and two-dimensional.

imcomplement

imdilate

gpuArray input must be of type uint8 or logical and the structuring element must be flat and two-dimensional

The PACKOPT syntaxes are not supported on the GPU.

imerode

gpuArray input must be of type uint8 or logical and the structuring element must be flat and two-dimensional

The PACKOPT syntaxes are not supported on the GPU.

imfillInputs must be 2-D, supporting only the 2-D connectivities, 4 and 8. Does not support the interactive hole filling syntax.

imfilter

Input kernel must be 2-D
imgradient
imgradientxy
imhistWhen running on a GPU, imhist does not display the histogram. To display the histogram, use stem(X,counts).
imlincomb
imnoise

imopen

gpuArray input must be of type uint8 or logical and the structuring element must be flat and two-dimensional.

imreconstruct
imregdemonsThe parameter 'PyramidLevels' is not supported on the GPU.
imresizeOnly cubic interpolation is supported on GPU and function always performs antialiasing.

imrotate

The 'bicubic' interpolation mode used in the GPU implementation of this function differs from the default (CPU) bicubic mode. The GPU and CPU versions of this function are expected to give slightly different results.

imshow

imtophat

gpuArray input must be of type uint8 or logical and the structuring element must be flat and two-dimensional.

iradonThe GPU implementation of this function supports only Nearest-neighbor and linear interpolation methods.
mat2gray
mean2
medfilt2Padding options are not supported on the GPU
normxcorr2

padarray

radon
rgb2gray
rgb2ycbcr

std2

stdfilt
stretchlim
ycbcr2rgb

Was this topic helpful?