10/10/23, 12:08 AM Image Filtering and Enhancement — Functions
Image Filtering and Enhancement — Functions
By Category Alphabetical List
Image Filtering
Basic Image Filtering
imfilter N-D filtering of multidimensional images
roifilt2 Filter region of interest (ROI) in grayscale image
nlfilter General sliding-neighborhood operations
imgaussfilt 2-D Gaussian filtering of images
imgaussfilt3 3-D Gaussian filtering of 3-D images
wiener2 2-D adaptive noise-removal filtering
medfilt2 2-D median filtering
medfilt3 3-D median filtering
modefilt 2-D and 3-D mode filtering (Since R2020a)
ordfilt2 2-D order-statistic filtering
stdfilt Local standard deviation of image
rangefilt Local range of image
entropyfilt Local entropy of grayscale image
imboxfilt 2-D box filtering of images
imboxfilt3 3-D box filtering of 3-D images
fibermetric Enhance elongated or tubular structures in image using Frangi vesselness filter
maxhessiannorm Maximum of Frobenius norm of Hessian of matrix
padarray Pad array
Edge-Preserving Filtering
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
burstinterpolant Create high-resolution image from set of low-resolution burst mode images (Since
R2019a)
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
https://www.mathworks.com/help/images/referencelist.html?type=function&listtype=cat&category=image-enhancement-and-restoration&blocktype=all… 1/6
10/10/23, 12:08 AM Image Filtering and Enhancement — Functions
bwareafilt Extract objects from binary image by size
bwpropfilt Extract objects from binary image using properties
Integral Image Domain Filtering
integralImage Calculate 2-D integral image
integralImage3 Calculate 3-D integral image
integralBoxFilter 2-D box filtering of integral images
integralBoxFilter3 3-D box filtering of 3-D integral images
Design Image Filters
fspecial Create predefined 2-D filter
fspecial3 Create predefined 3-D filter
convmtx2 2-D convolution matrix
freqz2 2-D frequency response
fsamp2 2-D FIR filter using frequency sampling
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
imadjust Adjust image intensity values or colormap
imadjustn Adjust intensity values in N-D volumetric image
imcontrast Adjust Contrast tool
imsharpen Sharpen image using unsharp masking
imflatfield 2-D image flat-field correction
imlocalbrighten Brighten low-light image (Since R2019b)
imreducehaze Reduce atmospheric haze
locallapfilt Fast local Laplacian filtering of images
localcontrast Edge-aware local contrast manipulation of images
localtonemap Render HDR image for viewing while enhancing local contrast
histeq Enhance contrast using histogram equalization
adapthisteq Contrast-limited adaptive histogram equalization (CLAHE)
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
decorrstretch Apply decorrelation stretch to multichannel image
stretchlim Find limits to contrast stretch image
intlut Convert integer values using lookup table
imnoise Add noise to image
https://www.mathworks.com/help/images/referencelist.html?type=function&listtype=cat&category=image-enhancement-and-restoration&blocktype=all… 2/6
10/10/23, 12:08 AM Image Filtering and Enhancement — Functions
ROI-Based Processing
Represent ROIs as Geometric Shapes
AssistedFreehand Assisted freehand region of interest
Circle Circular region of interest
Crosshair Crosshair region of interest (Since R2019b)
Cuboid Cuboidal region of interest (Since R2019a)
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 (Since R2019b)
drawcuboid Create customizable cuboidal ROI (Since R2019a)
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
draw Begin drawing ROI interactively
reduce Reduce density of points in ROI (Since R2019b)
beginDrawingFromPoint Begin drawing ROI from specified point
inROI Query if points are located in ROI
bringToFront Bring ROI to front of Axes stacking order (Since R2019a)
wait Block MATLAB command line until ROI operation is finished (Since R2019b)
Create Mask from ROI
createMask Create binary mask image from ROI
roipoly Specify polygonal region of interest (ROI)
poly2mask Convert region of interest (ROI) polygon to region mask
https://www.mathworks.com/help/images/referencelist.html?type=function&listtype=cat&category=image-enhancement-and-restoration&blocktype=all… 3/6
10/10/23, 12:08 AM Image Filtering and Enhancement — Functions
Filter Image Using ROI
regionfill Fill specified regions in image using inward interpolation
inpaintCoherent Restore specific image regions using coherence transport based image inpainting (Since
R2019a)
inpaintExemplar Restore specific image regions using exemplar-based image inpainting (Since R2019b)
roicolor Select region of interest (ROI) based on color
roifilt2 Filter region of interest (ROI) in grayscale image
reducepoly Reduce density of points in ROI using Ramer–Douglas–Peucker algorithm (Since R2019b)
Morphological Operations
Perform Morphological Operations
imerode Erode image
imdilate Dilate image
imopen Morphologically open image
imclose Morphologically close image
imtophat Top-hat filtering
imbothat Bottom-hat filtering
imclearborder Suppress light structures connected to image border
imkeepborder Retain light structures connected to image border (Since R2023b)
imfill Fill image regions and holes
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
Perform Morphological Reconstruction
imreconstruct Morphological reconstruction
imregionalmax Regional maxima
imregionalmin Regional minima
imextendedmax Extended-maxima transform
imextendedmin Extended-minima transform
imhmax H-maxima transform
imhmin H-minima transform
imimposemin Impose minima
Create Structuring Elements and Connectivity Arrays
strel Morphological structuring element
https://www.mathworks.com/help/images/referencelist.html?type=function&listtype=cat&category=image-enhancement-and-restoration&blocktype=all… 4/6
10/10/23, 12:08 AM Image Filtering and Enhancement — Functions
offsetstrel Morphological offset structuring element
conndef Create connectivity array
iptcheckconn Check validity of connectivity argument
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
psf2otf Convert point-spread function to optical transfer function
padarray Pad array
Neighborhood and Block Processing
blockproc Distinct block processing for image
bestblk Determine optimal block size for block processing
nlfilter General sliding-neighborhood operations
col2im Rearrange matrix columns into blocks
colfilt Column-wise neighborhood operations
im2col Rearrange image blocks into columns
blockedImage Big or multiresolution image made from discrete blocks (Since R2021a)
apply Process blocks of blocked image (Since R2021a)
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
https://www.mathworks.com/help/images/referencelist.html?type=function&listtype=cat&category=image-enhancement-and-restoration&blocktype=all… 5/6
10/10/23, 12:08 AM Image Filtering and Enhancement — Functions
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
https://www.mathworks.com/help/images/referencelist.html?type=function&listtype=cat&category=image-enhancement-and-restoration&blocktype=all… 6/6