0% found this document useful (0 votes)
19 views26 pages

Image Processing Toolbox - Functions

The document provides a comprehensive list of functions available in the Image Processing Toolbox, categorized by their application such as importing/exporting images, working with DICOM and RAW files, processing high dynamic range images, and performing geometric transformations. Each function is briefly described along with its capabilities and any version-specific notes. This toolbox is essential for users working with image data in MATLAB, offering a wide range of tools for image manipulation and analysis.

Uploaded by

zineraj44
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views26 pages

Image Processing Toolbox - Functions

The document provides a comprehensive list of functions available in the Image Processing Toolbox, categorized by their application such as importing/exporting images, working with DICOM and RAW files, processing high dynamic range images, and performing geometric transformations. Each function is briefly described along with its capabilities and any version-specific notes. This toolbox is essential for users working with image data in MATLAB, offering a wide range of tools for image manipulation and analysis.

Uploaded by

zineraj44
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

23/07/2025, 12:34 Image Processing Toolbox — Functions

Resources 

Image Processing Toolbox — Functions

By Category Alphabetical List

Import, Export, and Conversion


Read and Write Image Data from Files
Generic File Import and Export

imfinfo Information about graphics file

imread Read image from graphics file

imwrite Write image to graphics file

Work with DICOM Files

dicomanon Anonymize DICOM file

dicomCollection Gather details about related series of DICOM files

dicomContours Extract ROI data from DICOM-RT structure set

dicomdict Get or set active DICOM data dictionary

dicomdisp Display DICOM file structure

dicomfind Find location and value of target attribute in DICOM metadata


(Since R2021b)

dicominfo Read metadata from DICOM message

dicomlookup Find attribute in DICOM data dictionary

dicomread Read DICOM image

dicomreadVolume Create 4-D volume from set of DICOM images

dicomuid Generate DICOM globally unique identifier

dicomupdate Update value of target attribute in DICOM metadata (Since


R2021b)

dicomwrite Write images as DICOM files

images.dicom.decodeUID Get information about DICOM unique identifier

images.dicom.parseDICOMDIR Extract metadata from DICOMDIR file

Work with RAW Files

planar2raw Combine planar sensor images into full Bayer pattern CFA (Since
R2021a)

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 1/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

raw2planar Separate Bayer pattern color filter array (CFA) image into sensor element
images (Since R2021a)

raw2rgb Transform color filter array (CFA) image in RAW file into RGB image
(Since R2021a)

rawinfo Read metadata from RAW file (Since R2021a)

rawread Read color filter array (CFA) image from RAW file (Since R2021a)

Work with Specialized File Formats

analyze75info Read metadata from header file of Analyze 7.5 data set

analyze75read Read image data from image file of Analyze 7.5 data set

dpxinfo Read metadata from DPX file

dpxread Read DPX image

exrHalfAsSingle Convert numeric values into half-precision values (Since R2022b)

exrinfo Read metadata from EXR file (Since R2022b)

exrread Read image data from EXR file (Since R2022b)

exrwrite Write image data to EXR file (Since R2022b)

interfileinfo Read metadata from Interfile file

interfileread Read images in Interfile format

isexr Check if file is valid EXR file (Since R2022b)

isnitf Check if file is National Imagery Transmission Format (NITF) file

niftiinfo Read metadata from NIfTI file

niftiread Read NIfTI image

niftiwrite Write volume to file using NIfTI format

nitfinfo Read metadata from National Imagery Transmission Format (NITF) file

nitfread Read image from NITF file

tiffreadVolume Read volume or time series image stack from TIFF file (Since R2020b)

High Dynamic Range Images


blendexposure Create well-exposed image from images with different exposures

camresponse Estimate camera response function

hdrread Read high dynamic range (HDR) image

hdrwrite Write high dynamic range (HDR) image file

localtonemap Render HDR image for viewing while enhancing local contrast

makehdr Create high dynamic range image

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 2/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

tonemap Render high dynamic range image for viewing

tonemapfarbman Convert HDR image to LDR using edge-preserving multiscale


decompositions

Blocked Images
Create Blocked Images

blockedImage Big or multiresolution image made from discrete blocks (Since R2021a)

concatenateLevels Concatenate levels from multiple blocked images (Since R2023a)

makeMultiLevel2D 2-D multilevel blocked image (Since R2023a)

makeMultiLevel3D 3-D multilevel blocked image (Since R2023a)

polyToBlockedImage Create labeled blockedImage object from set of ROIs (Since


R2021b)

Select Blocks

blockLocationSet List of block locations in large images

mergeBlockLocationSets Merge block location sets (Since R2023a)

selectBlockLocations Select blocks from blocked images (Since R2020b)

Display Blocked Images

bigimageshow Display 2-D blockedImage object

imageshow Display image in 2-D viewer (Since R2024b)

showlabels Display label overlay on bigimageshow object (Since R2021b)

showmask Show mask overlay at specified inclusion threshold

viewer2d Create viewer for 2-D image display (Since R2024b)

Process Blocked Images

apply Process blocks of blocked image (Since R2021a)

blockedImageDatastore Datastore for use with blocks from blockedImage objects (Since
R2021a)

countEachLabel Counts number of pixel labels for each class (Since R2021a)

crop Create cropped version of blocked image (Since R2021a)

Image Type Conversion


Convert Between Image Types

cmap2gray Convert RGB colormap to grayscale colormap (Since R2020b)

demosaic Convert Bayer image to truecolor image

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 3/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

gray2ind Convert grayscale or binary image to indexed image

im2gray Convert RGB image to grayscale (Since R2020b)

imsplit Split multichannel image into its individual channels

ind2gray Convert indexed image to grayscale image

ind2rgb Convert indexed image to RGB image

label2rgb Convert label matrix into RGB image

mat2gray Convert matrix to grayscale image

rgb2gray Convert RGB image or colormap to grayscale

rgb2ind Convert RGB image to indexed image

rgb2lightness Convert RGB color values to lightness values

Convert to Binary Image Using Thresholding

adaptthresh Adaptive image threshold using local first-order statistics

graythresh Global image threshold using Otsu's method

imbinarize Binarize 2-D grayscale image or 3-D volume by thresholding

otsuthresh Global histogram threshold using Otsu's method

Convert to Indexed Image Using Quantization

grayslice Convert grayscale image to indexed image using multilevel thresholding

imquantize Quantize image using specified quantization levels and output values

multithresh Multilevel image thresholds using Otsu’s method

Convert Between Data Types

im2double Convert image to double precision

im2int16 Convert image to 16-bit signed integers

im2single Convert image to single precision

im2uint16 Convert image to 16-bit unsigned integers

im2uint8 Convert image to 8-bit unsigned integers

Image Sequences and Batch Processing


montage Display multiple images as rectangular montage

Color
Color Space Conversion

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 4/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

colorcloud Display 3-D color gamut as point cloud in specified color space

hsv2rgb Convert HSV colors to RGB

lab2rgb Convert CIE 1976 L*a*b* to RGB

lab2xyz Convert CIE 1976 L*a*b* to CIE 1931 XYZ

ntsc2rgb Convert NTSC values to RGB color space

rgb2hsv Convert RGB colors to HSV

rgb2lab Convert RGB to CIE 1976 L*a*b*

rgb2ntsc Convert RGB color values to NTSC color space

rgb2xyz Convert RGB to CIE 1931 XYZ

rgb2ycbcr Convert RGB color values to YCbCr color space

rgbwide2xyz Convert wide-gamut RGB color values to CIE 1931 XYZ color values
(Since R2020b)

rgbwide2ycbcr Convert wide-gamut RGB color values to YCbCr color values (Since
R2020b)

xyz2lab Convert CIE 1931 XYZ to CIE 1976 L*a*b*

xyz2rgb Convert CIE 1931 XYZ to RGB

xyz2rgbwide Convert CIE 1931 XYZ color values to wide-gamut RGB color values
(Since R2020b)

ycbcr2rgb Convert YCbCr color values to RGB color space

ycbcr2rgbwide Convert YCbCr color values to wide-gamut RGB color values (Since
R2020b)

Color Values to Data Type Conversion

lab2double Convert L*a*b* color values to double

lab2uint16 Convert L*a*b color values to uint16

lab2uint8 Convert L*a*b color values to uint8

xyz2double Convert XYZ color values to double

xyz2uint16 Convert XYZ color values to uint16

International Color Consortium (ICC) Profile

iccfind Find ICC profiles

iccread Read ICC profile

iccroot Find system default ICC profile repository

iccwrite Write ICC color profile data

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 5/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

isicc Check for valid ICC profile data

Color Transformation

applycform Apply device-independent color space transformation

imapprox Approximate indexed image by reducing number of colors

makecform Create color transformation structure

Automatic White Balance

chromadapt Adjust color balance of RGB image with chromatic adaptation

illumgray Estimate illuminant using gray world algorithm

illumpca Estimate illuminant using principal component analysis (PCA)

illumwhite Estimate illuminant using White Patch Retinex algorithm

lin2rgb Apply gamma correction to linear RGB values

rgb2lin Linearize gamma-corrected RGB values

whitepoint XYZ color values of standard illuminants

Measure Color Differences

colorangle Angle between two RGB vectors

deltaE Color difference based on CIE76 standard (Since R2020b)

imcolordiff Color difference based on CIE94 or CIE2000 standard (Since R2020b)

Synthetic Images
checkerboard Create checkerboard image

imnoise Add noise to image

phantom Create head phantom image

Display and Exploration


Basic Display
Display Images and Image Sequences

imageshow Display image in 2-D viewer (Since R2024b)

imblend Blend two images (Since R2024b)

imfuse Composite of two images

immovie Make movie from multiframe image

imshow Display image

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 6/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

imshowpair Compare differences between images

montage Display multiple images as rectangular montage

viewer2d Create viewer for 2-D image display (Since R2024b)

warp Display image as texture-mapped surface

Display Volumes

Light Light source (Since R2023b)

Line Line annotation (Since R2024a)

obliqueslice Extract oblique slice from 3-D volumetric data

orthosliceViewer Browse orthogonal slices in grayscale or RGB volume

Point Point annotation (Since R2024a)

sliceViewer Browse image slices

Surface Display surface in 3-D viewer (Since R2022b)

viewer3d Create viewer for 3-D image display (Since R2022b)

volshow Display volume

Set Image Display Settings

iptgetpref Get values of Image Processing Toolbox settings

iptprefs Display Image Processing Toolbox Settings window

iptsetpref Set Image Processing Toolbox setting or display valid values

Explore and Edit Images with Image Viewer App


iptgetpref Get values of Image Processing Toolbox settings

iptprefs Display Image Processing Toolbox Settings window

iptsetpref Set Image Processing Toolbox setting or display valid values

Explore Volumetric Image Data with Volume Viewer App


iptgetpref Get values of Image Processing Toolbox settings

iptprefs Display Image Processing Toolbox Settings window

iptsetpref Set Image Processing Toolbox setting or display valid values

Build Interactive Tools


Interactive Tools for Image Display and Exploration

imageinfo Image Information tool

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 7/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

imcolormaptool Choose Colormap tool

imcontrast Adjust Contrast tool

imcrop Crop image

imcrop3 Crop 3-D image

imdisplayrange Display Range tool

imdistline Distance tool

immagbox Magnification box for image displayed in scroll panel

imoverview Overview tool for image displayed in scroll panel

imoverviewpanel Overview tool panel for image displayed in scroll panel

impixelinfo Pixel Information tool

impixelinfoval Pixel Information tool without text label

impixelregion Pixel Region tool

impixelregionpanel Pixel Region tool panel

imsave Save image using interactive dialog window

imscrollpanel Scroll panel for interactive image navigation

Get Image Properties

getimage Image data from axes

getimagemodel Image model object from image object

imagemodel Image model object

imattributes Information about image attributes

imhandles Get all image objects

Create Custom Modular Tools

axes2pix Convert axes coordinates to pixel coordinates

imgca Get current axes containing image

imgcf Get current figure containing image

imgetfile Display Open Image dialog box to get filename of image file

imputfile Display Save Image dialog box to set filename of image file

iptaddcallback Add function handle to callback list

iptcheckhandle Check validity of handle

iptcheckmap Check validity of colormap

iptgetapi Get Application Programmer Interface (API) for handle

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 8/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

iptGetPointerBehavior Retrieve pointer behavior from graphics object

ipticondir Directories containing Image Processing Toolbox and MATLAB


icons

iptPointerManager Create pointer manager in figure

iptremovecallback Delete function handle from callback list

iptSetPointerBehavior Store pointer behavior structure in graphics object

iptwindowalign Align figure windows

makeConstrainToRectFcn Create rectangularly bounded drag constraint function

truesize Adjust display size of image

Geometric Transformation and Image Registration


Common Geometric Transformations
imcrop Crop image

imcrop3 Crop 3-D image

impyramid Image pyramid reduction and expansion

imresize Resize image

imresize3 Resize 3-D volumetric intensity image

imrotate Rotate image

imrotate3 Rotate 3-D volumetric grayscale image

imtranslate Translate image

Generic Geometric Transformations


Create 2-D and 3-D Geometric Transformations

affinetform2d 2-D affine geometric transformation (Since R2022b)

affinetform3d 3-D affine geometric transformation (Since R2022b)

fitgeotform2d Fit 2-D geometric transformation to control point pairs


(Since R2022b)

geometricTransform2d 2-D geometric transformation object

geometricTransform3d 3-D geometric transformation object

LocalWeightedMeanTransformation2D 2-D local weighted mean geometric transformation

PiecewiseLinearTransformation2D 2-D piecewise linear geometric transformation

PolynomialTransformation2D 2-D polynomial geometric transformation

projtform2d 2-D projective geometric transformation (Since


R2022b)

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 9/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

rigidtform2d 2-D rigid geometric transformation (Since R2022b)

rigidtform3d 3-D rigid geometric transformation (Since R2022b)

simtform2d 2-D similarity geometric transformation (Since R2022b)

simtform3d 3-D similarity geometric transformation (Since R2022b)

transltform2d 2-D translation geometric transformation (Since


R2022b)

transltform3d 3-D translation geometric transformation (Since


R2022b)

Apply 2-D and 3-D Geometric Transformations

imwarp Apply geometric transformation to image

transformPointsForward Apply forward geometric transformation

transformPointsInverse Apply inverse geometric transformation

Warper Apply same geometric transformation to many images efficiently

Create and Apply N-D Spatial Transformations

findbounds Find output bounds for spatial transformation

fliptform Flip input and output roles of spatial transformation structure

makeresampler Create resampling structure

maketform Create N-D spatial transformation structure ( TFORM )

tformarray Apply spatial transformation to N-D array

tformfwd Apply forward N-D spatial transformation

tforminv Apply inverse N-D spatial transformation

Define Spatial Referencing Between Coordinate Systems

affineOutputView Create output view for warping images

imref2d Reference 2-D image to world coordinates

imref3d Reference 3-D image to world coordinates

Image Registration
Automatic Registration

imregconfig Configurations for intensity-based registration

imregcorr Estimate geometric transformation that aligns two 2-D images


using cross correlation

imregdemons Estimate displacement field that aligns two 2-D or 3-D images

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 10/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

imregister Intensity-based image registration

imregmtb Register 2-D images using median threshold bitmaps

imregtform Estimate geometric transformation that aligns two 2-D or 3-D


images

MattesMutualInformation Mattes mutual information metric configuration

MeanSquares Mean square error metric configuration

normxcorr2 Normalized 2-D cross-correlation

OnePlusOneEvolutionary One-plus-one evolutionary optimizer configuration

RegularStepGradientDescent Regular step gradient descent optimizer configuration

Control Point Registration

cpcorr Tune control point locations using cross-correlation

cpselect Control Point Selection tool

cpstruct2pairs Extract valid control point pairs from cpstruct structure

fitgeotform2d Fit 2-D geometric transformation to control point pairs (Since R2022b)

imwarp Apply geometric transformation to image

Spatial Referencing

imref2d Reference 2-D image to world coordinates

imref3d Reference 3-D image to world coordinates

Image Filtering and Enhancement


Image Filtering
Basic Image Filtering

entropyfilt Local entropy of grayscale image

fibermetric Enhance elongated or tubular structures in image using Frangi


vesselness filter

imboxfilt 2-D box filtering of images

imboxfilt3 3-D box filtering of 3-D images

imfilter N-D filtering of multidimensional images

imgaussfilt 2-D Gaussian filtering of images

imgaussfilt3 3-D Gaussian filtering of 3-D images

maxhessiannorm Maximum of Frobenius norm of Hessian of matrix

medfilt2 2-D median filtering

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 11/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

medfilt3 3-D median filtering

modefilt 2-D and 3-D mode filtering

nlfilter General sliding-neighborhood operations

ordfilt2 2-D order-statistic filtering

padarray Pad array

rangefilt Local range of image

roifilt2 Filter region of interest (ROI) in grayscale image

stdfilt Local standard deviation of image

wiener2 2-D adaptive noise-removal filtering

Edge-Preserving Filtering

burstinterpolant Create high-resolution image from set of low-resolution burst mode


images

imbilatfilt Bilateral filtering of images with Gaussian kernels

imdiffuseest Estimate parameters for anisotropic diffusion filtering

imdiffusefilt Anisotropic diffusion filtering of images

imguidedfilter Guided filtering of images

imnlmfilt Non-local means filtering of image

Texture Filtering

gabor Create Gabor filter or Gabor filter bank

imgaborfilt Apply Gabor filter or filter bank to 2-D image

Filtering By Property Characteristics

bwareafilt Extract objects from binary image by size

bwpropfilt Extract objects from binary image using properties

Integral Image Domain Filtering

integralBoxFilter 2-D box filtering of integral images

integralBoxFilter3 3-D box filtering of 3-D integral images

integralImage Calculate 2-D integral image

integralImage3 Calculate 3-D integral image

Design Image Filters

convmtx2 2-D convolution matrix


https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 12/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

freqspace Frequency spacing for frequency response

freqz2 2-D frequency response

fsamp2 2-D FIR filter using frequency sampling

fspecial Create predefined 2-D filter

fspecial3 Create predefined 3-D filter

ftrans2 2-D FIR filter using frequency transformation

fwind1 2-D FIR filter using 1-D window method

fwind2 2-D FIR filter using 2-D window method

Contrast Adjustment
adapthisteq Contrast-limited adaptive histogram equalization (CLAHE)

decorrstretch Apply decorrelation stretch to multichannel image

histeq Enhance contrast using histogram equalization

imadjust Adjust image intensity values or colormap

imadjustn Adjust intensity values in N -D volumetric image

imcontrast Adjust Contrast tool

imflatfield 2-D image flat-field correction

imhistmatch Adjust histogram of 2-D image to match histogram of reference image

imhistmatchn Adjust histogram of N-D image to match histogram of reference image

imlocalbrighten Brighten low-light image

imnoise Add noise to image

imreducehaze Reduce atmospheric haze

imsharpen Sharpen image using unsharp masking

intlut Convert integer values using lookup table

localcontrast Edge-aware local contrast manipulation of images

locallapfilt Fast local Laplacian filtering of images

localtonemap Render HDR image for viewing while enhancing local contrast

stretchlim Find limits to contrast stretch image

ROI-Based Processing
Represent ROIs as Geometric Shapes

AssistedFreehand Assisted freehand region of interest

Circle Circular region of interest

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 13/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

Crosshair Crosshair region of interest

Cuboid Cuboidal region of interest

Ellipse Elliptical region of interest

Freehand Freehand region of interest

Line Line region of interest

Point Point region of interest

Polygon Polygonal region of interest

Polyline Polyline region of interest

Rectangle Rectangular region of interest

Create ROI Shapes

drawassisted Create customizable freehand ROI with assistance from object edges

drawcircle Create customizable circular ROI

drawcrosshair Create customizable crosshair ROI

drawcuboid Create customizable cuboidal ROI

drawellipse Create customizable elliptical ROI

drawfreehand Create customizable freehand ROI

drawline Create customizable linear ROI

drawpoint Create customizable point ROI

drawpolygon Create customizable polygonal ROI

drawpolyline Create customizable polyline ROI

drawrectangle Create customizable rectangular ROI

Customize ROI Shapes

beginDrawingFromPoint Begin drawing ROI from specified point

bringToFront Bring ROI to front of Axes stacking order

draw Begin drawing ROI interactively

inROI Query if points are located in ROI

reduce Reduce density of points in ROI

wait Block MATLAB command line until ROI operation is finished

Create Mask from ROI

createMask Create binary mask image from ROI

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 14/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

poly2mask Convert region of interest (ROI) polygon to region mask

roipoly Specify polygonal region of interest (ROI)

Filter Image Using ROI

inpaintCoherent Restore specific image regions using coherence transport based image
inpainting

inpaintExemplar Restore specific image regions using exemplar-based image inpainting

reducepoly Reduce density of points in ROI using Ramer–Douglas–Peucker


algorithm

regionfill Fill specified regions in image using inward interpolation

roicolor Select region of interest (ROI) based on color

roifilt2 Filter region of interest (ROI) in grayscale image

Morphological Operations
Perform Morphological Operations

bwhitmiss Binary hit-miss operation

bwmorph Morphological operations on binary images

bwmorph3 Morphological operations on binary volume

bwperim Find perimeter of objects in binary image

bwskel Reduce all objects to lines in 2-D binary image or 3-D binary volume

bwulterode Ultimate erosion

imbothat Bottom-hat filtering

imclearborder Suppress light structures connected to image border

imclose Morphologically close image

imdilate Dilate image

imerode Erode image

imfill Fill image regions and holes

imkeepborder Retain light structures connected to image border (Since R2023b)

imopen Morphologically open image

imtophat Top-hat filtering

Perform Morphological Reconstruction

imextendedmax Extended-maxima transform

imextendedmin Extended-minima transform

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 15/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

imhmax Suppress regional maxima in image using H-maxima transform

imhmin Suppress regional minima in image using H-minima transform

imimposemin Impose minima

imreconstruct Morphological reconstruction

imregionalmax Regional maxima

imregionalmin Regional minima

Create Structuring Elements and Connectivity Arrays

conndef Create connectivity array

iptcheckconn Check validity of connectivity argument

offsetstrel Morphological offset structuring element

strel Morphological structuring element

Create and Use Lookup Tables

applylut Neighborhood operations on binary images using lookup tables

bwlookup Nonlinear filtering using lookup tables

makelut Create lookup table for use with bwlookup

Pack Binary Images

bwpack Pack binary image

bwunpack Unpack binary image

Deblurring
deconvblind Deblur image using blind deconvolution

deconvlucy Deblur image using Lucy-Richardson method

deconvreg Deblur image using regularized filter

deconvwnr Deblur image using Wiener filter

edgetaper Taper discontinuities along image edges

otf2psf Convert optical transfer function to point-spread function

padarray Pad array

psf2otf Convert point-spread function to optical transfer function

Neighborhood and Block Processing


apply Process blocks of blocked image (Since R2021a)

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 16/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

bestblk Determine optimal block size for block processing

blockedImage Big or multiresolution image made from discrete blocks (Since R2021a)

blockproc Distinct block processing for image

col2im Rearrange matrix columns into blocks

colfilt Column-wise neighborhood operations

im2col Rearrange image blocks into columns

nlfilter General sliding-neighborhood operations

Image Arithmetic
imabsdiff Absolute difference of two images

imadd Add two images or add constant to image

imapplymatrix Linear combination of color channels

imcomplement Complement image

imdivide Divide one image into another or divide image by constant

imlincomb Linear combination of images

immultiply Multiply two images or multiply image by constant

imsubtract Subtract one image from another or subtract constant from image

Image Segmentation and Analysis


Image Segmentation
Segmentation Using Segment Anything Model (SAM)

imsegsam Perform automatic full image segmentation using Segment Anything


Model (SAM) (Since R2024b)

segmentAnythingModel Pretrained Segment Anything Model (SAM) for semantic segmentation


(Since R2024a)

Segmentation Techniques

activecontour Segment image into foreground and background using active contours
(snakes) region growing technique

adaptthresh Adaptive image threshold using local first-order statistics

grabcut Segment image into foreground and background using iterative graph-
based segmentation

gradientweight Calculate weights for image pixels based on image gradient

grayconnected Select contiguous image region with similar gray values using flood-fill
technique

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 17/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

graydiffweight Calculate weights for image pixels based on grayscale intensity


difference

graythresh Global image threshold using Otsu's method

imsegfmm Binary image segmentation using fast marching method

imseggeodesic Segment image into two or three regions using geodesic distance-based
color segmentation

imsegisodata ISODATA clustering based image segmentation (Since R2024b)

imsegkmeans K-means clustering based image segmentation

imsegkmeans3 K-means clustering based volume segmentation

lazysnapping Segment image into foreground and background using graph-based


segmentation

multithresh Multilevel image thresholds using Otsu’s method

otsuthresh Global histogram threshold using Otsu's method

superpixels 2-D superpixel oversegmentation of images

superpixels3 3-D superpixel oversegmentation of 3-D image

watershed Watershed transform

Display Segmentation Results

boundarymask Find region boundaries of segmentation

imoverlay Burn binary mask into 2-D image

label2idx Convert label matrix to cell array of linear indices

labeloverlay Overlay label matrix regions on 2-D image

Evaluate Segmentation Accuracy

bfscore Contour matching score for image segmentation

dice Sørensen-Dice similarity coefficient for image segmentation

jaccard Jaccard similarity coefficient for image segmentation

Object Analysis
Display Boundaries

bwboundaries Trace object boundaries in binary image

bwtraceboundary Trace object in binary image

visboundaries Plot region boundaries

Detect Circles

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 18/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

circles2mask Create binary masks from circles (Since R2024a)

imfindcircles Find circles using circular Hough transform

viscircles Create circle

Detect Edges and Gradients

edge Find edges in 2-D grayscale image

edge3 Find edges in 3-D grayscale volume

imgradient Find gradient magnitude and direction of 2-D image

imgradient3 Find gradient magnitude and direction of 3-D image

imgradientxy Find directional gradients of 2-D image

imgradientxyz Find directional gradients of 3-D image

Detect Lines

hough Hough transform

houghlines Extract line segments based on Hough transform

houghpeaks Identify peaks in Hough transform

iradon Inverse Radon transform

radon Radon transform

Detect Homogenous Blocks Using Quadtree Decomposition

qtdecomp Quadtree decomposition

qtgetblk Block values in quadtree decomposition

qtsetblk Set block values in quadtree decomposition

Region and Image Properties


Measure Properties of Image Regions

bwarea Area of objects in binary image

bwconvhull Generate convex hull image from binary image

bweuler Euler number of binary image

bwferet Measure Feret properties

bwperim Find perimeter of objects in binary image

regionprops Measure properties of image regions

regionprops3 Measure properties of 3-D volumetric image regions

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 19/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

Measure Properties of Pixels and Paths

imcontour Create contour plot of image data

impixel Pixel color values

improfile Pixel-value cross-sections along line segments

Measure Properties of Images

bwdist Distance transform of binary image

bwdistgeodesic Geodesic distance transform of binary image

corr2 2-D correlation coefficient

graydist Gray-weighted distance transform of grayscale image

imhist Histogram of image data

mean2 Average or mean of matrix elements

std2 Standard deviation of matrix elements

Find, Select, and Label Objects in Binary Images

bwareafilt Extract objects from binary image by size

bwareaopen Remove small objects from binary image

bwconncomp Find and count connected components in binary image

bwlabel Label connected components in 2-D binary image

bwlabeln Label connected components in binary image

bwpropfilt Extract objects from binary image using properties

bwselect Select objects in binary image

bwselect3 Select objects in binary volume

cc2bw Convert connected components to binary image (Since R2024a)

label2rgb Convert label matrix into RGB image

labelmatrix Create label matrix from objects in connected components

poly2label Create label matrix from set of ROIs (Since R2020b)

poly2mask Convert region of interest (ROI) polygon to region mask

Texture Analysis
entropy Entropy of grayscale image

entropyfilt Local entropy of grayscale image

graycomatrix Create gray-level co-occurrence matrix from image

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 20/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

graycoprops Properties of gray-level co-occurrence matrix (GLCM)

rangefilt Local range of image

stdfilt Local standard deviation of image

Image Quality
Full Reference Quality Metrics

immse Mean-squared error

multissim Multiscale structural similarity (MS-SSIM) index for image quality

multissim3 Multiscale structural similarity (MS-SSIM) index for volume quality

psnr Peak signal-to-noise ratio (PSNR)

ssim Structural similarity (SSIM) index for measuring image quality

No-Reference Quality Metrics

brisque Blind/Referenceless Image Spatial Quality Evaluator (BRISQUE) no-


reference image quality score

brisqueModel Blind/Referenceless Image Spatial Quality Evaluator (BRISQUE) model

fitbrisque Fit custom model for BRISQUE image quality score

fitniqe Fit custom model for NIQE image quality score

niqe Naturalness Image Quality Evaluator (NIQE) no-reference image quality


score

niqeModel Naturalness Image Quality Evaluator (NIQE) model

piqe Perception based Image Quality Evaluator (PIQE) no-reference image


quality score

Test Chart Based Quality Measurements

colorChecker Calibrite ColorChecker test chart (Since R2020b)

displayChart Display test chart with overlaid regions of interest

displayColorPatch Display measured and reference color as color patches

esfrChart Imatest edge spatial frequency response (eSFR) test chart

measureChromaticAberration Measure chromatic aberration at slanted edges

measureColor Measure color reproduction using test chart

measureIlluminant Measure scene illuminant using test chart

measureNoise Measure noise of test chart

measureSharpness Measure spatial frequency response using test chart

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 21/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

measureTexture Measure sharpness of texture using Dead Leaves test chart


(Since R2024b)

plotChromaticity Plot color reproduction on chromaticity diagram

plotSFR Plot spatial frequency response of edge

Image Transforms
dct2 2-D discrete cosine transform

dctmtx Discrete cosine transform matrix

fan2para Convert fan-beam projections to parallel-beam

fanbeam Fan-beam transform

fft2 2-D fast Fourier transform

fftshift Shift zero-frequency component to center of spectrum

hough Hough transform

houghlines Extract line segments based on Hough transform

houghpeaks Identify peaks in Hough transform

idct2 2-D inverse discrete cosine transform

ifanbeam Inverse fan-beam transform

ifft2 2-D inverse fast Fourier transform

ifftshift Inverse zero-frequency shift

iradon Inverse Radon transform

para2fan Convert parallel-beam projections to fan-beam

radon Radon transform

Deep Learning for Image Processing


Create Datastores for Image Preprocessing
augmentedImageDatastore Transform batches to augment image data

blockedImageDatastore Datastore for use with blocks from blockedImage


objects (Since R2021a)

combine Combine data from multiple datastores

denoisingImageDatastore Denoising image datastore

imageDatastore Datastore for image data

randomPatchExtractionDatastore Datastore for extracting random 2-D or 3-D random patches


from images or pixel label images

transform Transform datastore

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 22/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

Augment Images
affineOutputView Create output view for warping images

centerCropWindow2d Create rectangular center cropping window

centerCropWindow3d Create cuboidal center cropping window

Cuboid Spatial extents of 3-D cuboidal region

imerase Remove image pixels within rectangular region of interest (Since


R2021a)

jitterColorHSV Randomly alter color of pixels

randomAffine2d Create randomized 2-D affine transformation

randomAffine3d Create randomized 3-D affine transformation

randomCropWindow3d Create randomized cuboidal cropping window

randomWindow2d Randomly select rectangular region in image (Since R2021a)

Rectangle Spatial extents of 2-D rectangular region

Resize and Reshape Deep Learning Input


depthToSpace Rearrange dlarray data from depth dimension into spatial blocks
(Since R2021a)

DepthToSpace2DLayer Depth to space layer (Since R2021a)

dlresize Resize spatial dimensions of dlarray object (Since R2020b)

resize2dLayer 2-D resize layer (Since R2020b)

resize3dLayer 3-D resize layer (Since R2020b)

spaceToDepth Rearrange spatial blocks of dlarray data along depth dimension


(Since R2021a)

SpaceToDepthLayer Space to depth layer (Since R2020b)

Create Deep Learning Networks


addPix2PixHDLocalEnhancer Add local enhancer network to pix2pixHD generator network
(Since R2021a)

blockedNetwork Create network with repeating block structure (Since R2021a)

cycleGANGenerator Create CycleGAN generator network for image-to-image


translation (Since R2021a)

encoderDecoderNetwork Create encoder-decoder network (Since R2021a)

patchGANDiscriminator Create PatchGAN discriminator network (Since R2021a)

pix2pixHDGlobalGenerator Create pix2pixHD global generator network (Since R2021a)

pretrainedEncoderNetwork Create encoder network from pretrained network (Since R2021a)

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 23/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

unitGenerator Create unsupervised image-to-image translation (UNIT) generator


network (Since R2021a)

unitPredict Perform inference using unsupervised image-to-image translation


(UNIT) network (Since R2021a)

Denoise Images
denoiseImage Denoise image using deep neural network

denoisingNetwork Get image denoising network

dnCNNLayers Get denoising convolutional neural network layers

Hyperspectral Image Processing


Explore, Analyze, and Visualize
Read and Write

enviinfo Read metadata from ENVI header file

enviwrite Write hyperspectral data to ENVI file format

gather Read data cube of spectral image into workspace (Since R2025a)

geohypercube Read hyperspectral image with geospatial information (Since R2025a)

geomulticube Read multispectral image with geospatial information (Since R2025a)

hypercube Read hyperspectral data

imhypercube Read hyperspectral image (Since R2025a)

immulticube Read multispectral image (Since R2025a)

multicube Read multispectral data (Since R2025a)

ROI Selection

assignData Assign new data to spectral image data cube

cropData Crop regions-of-interest of spectral image

Band Selection, Removal, and Resampling

removeBands Remove spectral bands from spectral image

resampleBands Resample multispectral data (Since R2025a)

selectBands Select bands from spectral image

Color Transformation

colorize Estimate color image of spectral image

Block Processing

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 24/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

apply Apply function to each block of spectral image (Since R2025a)

Filtering and Enhancement


denoiseNGMeet Denoise hyperspectral images using non-local meets global approach
(Since R2020b)

sharpencnmf Sharpen hyperspectral data using coupled nonnegative matrix


factorization (CNMF) method (Since R2020b)

Data Correction
Radiometric Calibration

dn2radiance Convert digital number to radiance (Since R2020b)

dn2reflectance Convert digital number to reflectance (Since R2020b)

radiance2Reflectance Convert radiance to reflectance (Since R2020b)

Atmospheric Correction

correctOOB Correct out-of-band effect using sensor spectral response (Since


R2020b)

empiricalLine Empirical line calibration of hyperspectral data (Since R2020b)

fastInScene Perform fast in-scene atmospheric correction (Since R2020b)

flatField Apply flat field correction to spectral data (Since R2020b)

iarr Apply internal average relative reflectance (IARR) correction to spectral


data (Since R2020b)

logResiduals Apply log residual correction to spectral data (Since R2020b)

rrs Compute remote sensing reflectance (Since R2020b)

sharc Perform atmospheric correction using satellite hypercube atmospheric


rapid correction (SHARC) (Since R2020b)

subtractDarkPixel Subtract dark pixel value from spectral data (Since R2020b)

Spectral Correction

reduceSmile Reduce spectral smile effect in hyperspectral data cube (Since R2020b)

smileMetric Compute spectral smile metrics of hyperspectral data (Since R2021a)

Dimensionality Reduction
hypermnf Maximum noise fraction transform of hyperspectral data

hyperpca Principal component analysis of hyperspectral data

inverseProjection Reconstruct data cube from principal component bands

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 25/26
23/07/2025, 12:34 Image Processing Toolbox — Functions

Spectral Unmixing
countEndmembersHFC Find number of endmembers

estimateAbundanceLS Estimate abundance maps

fippi Extract endmember signatures using fast iterative pixel purity index

nfindr Extract endmember signatures using N-FINDR

ppi Extract endmember signatures using pixel purity index

Spectral Matching and Target Detection


anomalyRX Detect anomalies using Reed-Xiaoli detector

customSpectralIndex Compute spectral index using custom formula (Since R2023a)

detectTarget Detect target in hyperspectral and multispectral image (Since R2024a)

jmsam Measure spectral similarity using Jeffries Matusita-Spectral Angle


Mapper method (Since R2020b)

ndvi Normalized difference vegetation index

ns3 Measure normalized spectral similarity score (Since R2020b)

readEcostressSig Read data from ECOSTRESS spectral library

removeContinuum Normalize spectral signature (Since R2024a)

resampleSignature Resample spectral signature to required wavelengths (Since R2024a)

sam Measure spectral similarity using spectral angle mapper

sid Measure spectral similarity using spectral information divergence

sidsam Measure spectral similarity using spectral information divergence-


spectral angle mapper hybrid method (Since R2020b)

spectralIndices Compute spectral indices (Since R2020b)

spectralMatch Identify unknown regions or materials using spectral library

Segmentation
hyperseganchor Segment hyperspectral and multispectral images using fast spectral
clustering with anchor graphs (Since R2024a)

hyperslic 2-D superpixel oversegmentation of hyperspectral images (Since


R2023b)

Code Generation and GPU Support


GPU Computing
gather Transfer distributed array, Composite object, or gpuArray object to
local workspace

gpuArray Array stored on GPU

https://in.mathworks.com/help/images/referencelist.html?type=function&s_tid=CRUX_topnav 26/26

You might also like