This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

GPU Computing

Run image processing code on a graphics processing unit (GPU)

To take advantage of the performance benefits offered by a modern Graphics Processing Unit (GPU), certain Image Processing Toolbox™ functions have been enabled to perform image processing operations on a GPU. This can provide GPU acceleration for complicated image processing workflows.


bwdist Distance transform of binary image
bwlabel Label connected components in 2-D binary image
bwlookup Nonlinear filtering using lookup tables
bwmorph Morphological operations on binary images
corr2 2-D correlation coefficient
edge Find edges in intensity image
histeq Enhance contrast using histogram equalization
im2double Convert image to double precision
im2single Convert image to single precision
im2uint8 Convert image to 8-bit unsigned integers
im2uint16 Convert image to 16-bit unsigned integers
imabsdiff Absolute difference of two images
imadjust Adjust image intensity values or colormap
imbothat Bottom-hat filtering
imclose Morphologically close image
imcomplement Complement image
imdilate Dilate image
imerode Erode image
imfill Fill image regions and holes
imfilter N-D filtering of multidimensional images
imgradient Gradient magnitude and direction of an image
imgradientxy Directional gradients of an image
imhist Histogram of image data
imlincomb Linear combination of images
imnoise Add noise to image
ycbcr2rgb Convert YCbCr color values to RGB color space
imopen Morphologically open image
imreconstruct Morphological reconstruction
imregdemons Estimate displacement field that aligns two 2-D or 3-D images
imresize Resize image
imrotate Rotate image
imshow Display image
imtophat Top-hat filtering
iradon Inverse Radon transform
mat2gray Convert matrix to grayscale image
mean2 Average or mean of matrix elements
medfilt2 2-D median filtering
normxcorr2 Normalized 2-D cross-correlation
padarray Pad array
radon Radon transform
regionprops Measure properties of image regions
rgb2gray Convert RGB image or colormap to grayscale
rgb2ycbcr Convert RGB color values to YCbCr color space
std2 Standard deviation of matrix elements
stdfilt Local standard deviation of image
stretchlim Find limits to contrast stretch image


Image Processing on a GPU

Certain Image Processing Toolbox™ functions are enabled to perform accelerated image processing operations on a Graphics Processing Unit (GPU).

Perform Thresholding and Morphological Operations on a GPU

This example shows how to perform image processing operations on a GPU.

List of Supported Functions with Limitations and Other Notes

This list describes the functions that support GPU computing.

Was this topic helpful?