Function Reference


Image Display and ExplorationDisplay, import, and export images
GUI ToolsModular interactive tools and associated utility functions.
Spatial Transformation and Image RegistrationSpatial transformation and image registration
Image Analysis and StatisticsImage analysis, texture analysis, view pixel values, and calculate image statistics
Image ArithmeticAdd, subtract, multiply, and divide images
Image Enhancement and RestorationEnhance and restore images
Linear Filtering and TransformsLinear filters, filter design, and image transforms
Morphological OperationsMorphological image processing
ROI-Based, Neighborhood, and Block ProcessingROI-based, neighborhood, and block operations
Colormap and Color Space FunctionsManipulate image color
Miscellaneous FunctionsArray operations, demos, preferences and other toolbox utility functions

Image Display and Exploration

Image Display and ExplorationDisplay and explore images
Image File I/O Import and export images
Image Types and Type ConversionsConvert between the various image types

Image Display and Exploration

colorbarDisplay color bar
immovieMake movie from multiframe image
implayPlay movies, videos, or image sequences
imshowDisplay image
imtoolImage Tool
montageDisplay multiple image frames as rectangular montage
subimageDisplay multiple images in single figure
warpDisplay image as texture-mapped surface

Image File I/O

analyze75infoRead metadata from header file of Analyze 7.5 data set
analyze75readRead image data from image file of Analyze 7.5 data set
dicomanonAnonymize DICOM file
dicomdictGet or set active DICOM data dictionary
dicominfoRead metadata from DICOM message
dicomlookupFind attribute in DICOM data dictionary
dicomreadRead DICOM image
dicomuidGenerate DICOM unique identifier
dicomwriteWrite images as DICOM files
hdrreadRead high dynamic range (HDR) image
hdrwriteWrite Radiance high dynamic range (HDR) image file
interfileinfoRead metadata from Interfile file
interfilereadRead images in Interfile format
makehdrCreate high dynamic range image
nitfinfoRead metadata from National Imagery Transmission Format (NITF) file
nitfreadRead image from National Imagery Transmission Format (NITF) file
tonemapRender high dynamic range image for viewing

Image Types and Type Conversions

demosaicConvert Bayer pattern encoded image to truecolor image
ditherConvert image, increasing apparent color resolution by dithering
doubleConvert data to double precision
gray2indConvert grayscale or binary image to indexed image
graysliceConvert grayscale image to indexed image using multilevel thresholding
graythreshGlobal image threshold using Otsu's method
im2bwConvert image to binary image, based on threshold
im2doubleConvert image to double precision
im2int16Convert image to 16-bit signed integers
im2javaConvert image to Java image
im2java2dConvert image to Java buffered image
im2singleConvert image to single precision
im2uint16Convert image to 16-bit unsigned integers
im2uint8Convert image to 8-bit unsigned integers
ind2grayConvert indexed image to grayscale image
ind2rgbConvert indexed image to RGB image
label2rgbConvert label matrix into RGB image
mat2grayConvert matrix to grayscale image
rgb2grayConvert RGB image or colormap to grayscale
rgb2indConvert RGB image to indexed image
uint16Convert data to unsigned 16-bit integers
uint8Convert data to unsigned 8-bit integers

GUI Tools

Modular Interactive ToolsModular interactive tool creation functions
Navigational tools for Image Scroll PanelModular interactive navigational tools
Utility Functions for Interactive ToolsModular interactive tool utility functions

Modular Interactive Tools

imageinfoImage Information tool
imcontrastAdjust Contrast tool
imdisplayrangeDisplay Range tool
imdistlineDistance tool
impixelinfoPixel Information tool
impixelinfovalPixel Information tool without text label
impixelregionPixel Region tool
impixelregionpanelPixel Region tool panel

Navigational tools for Image Scroll Panel

immagboxMagnification box for scroll panel
imoverviewOverview tool for image displayed in scroll panel
imoverviewpanelOverview tool panel for image displayed in scroll panel
imscrollpanelScroll panel for interactive image navigation

Utility Functions for Interactive Tools

axes2pixConvert axes coordinates to pixel coordinates
getimageImage data from axes
getimagemodelImage model object from image object
imattributesInformation about image attributes
imellipseCreate draggable ellipse
imfreehandCreate draggable freehand region
imgcaGet handle to current axes containing image
imgcfGet handle to current figure containing image
imgetfileOpen Image dialog box
imhandlesGet all image handles
imlineCreate draggable, resizable line
impointCreate draggable point
impolyCreate draggable, resizable polygon
imrectCreate draggable rectangle
imroiRegion-of-interest (ROI) base class
iptaddcallbackAdd function handle to callback list
iptcheckhandleCheck validity of handle
iptgetapiGet Application Programmer Interface (API) for handle
iptGetPointerBehaviorRetrieve pointer behavior from HG object
ipticondirDirectories containing IPT and MATLAB® icons
iptPointerManagerCreate pointer manager in figure
iptremovecallbackDelete function handle from callback list
iptSetPointerBehaviorStore pointer behavior structure in Handle Graphics object
iptwindowalignAlign figure windows
makeConstrainToRectFcnCreate rectangularly bounded drag constraint function
truesizeAdjust display size of image

Spatial Transformation and Image Registration

Spatial TransformationsSpatial transformation of images and multidimensional arrays
Image RegistrationAlign two images using control points

Spatial Transformations

checkerboardCreate checkerboard image
findboundsFind output bounds for spatial transformation
fliptformFlip input and output roles of TFORM structure
imcropCrop image
impyramidImage pyramid reduction and expansion
imresizeResize image
imrotateRotate image
imtransformApply 2-D spatial transformation to image
makeresamplerCreate resampling structure
maketformCreate spatial transformation structure (TFORM)
tformarrayApply spatial transformation to N-D array
tformfwdApply forward spatial transformation
tforminvApply inverse spatial transformation

Image Registration

cp2tformInfer spatial transformation from control point pairs
cpcorrTune control-point locations using cross correlation
cpselectControl Point Selection Tool
cpstruct2pairsConvert CPSTRUCT to valid pairs of control points
normxcorr2Normalized 2-D cross-correlation

Image Analysis and Statistics

Image AnalysisTrace boundaries, detect edges, and perform quadtree decomposition
Texture AnalysisEntropy, range, and standard deviation filtering; gray-level co-occurrence matrix
Pixel Values and StatisticsCreate histograms, contour plots, and get statistics on image regions

Image Analysis

bwboundariesTrace region boundaries in binary image
bwtraceboundaryTrace object in binary image
edgeFind edges in grayscale image
houghHough transform
houghlinesExtract line segments based on Hough transform
houghpeaksIdentify peaks in Hough transform
qtdecompQuadtree decomposition
qtgetblkBlock values in quadtree decomposition
qtsetblkSet block values in quadtree decomposition

Texture Analysis

entropyEntropy of grayscale image
entropyfiltLocal entropy of grayscale image
graycomatrixCreate gray-level co-occurrence matrix from image
graycopropsProperties of gray-level co-occurrence matrix
rangefiltLocal range of image
stdfiltLocal standard deviation of image

Pixel Values and Statistics

corr22-D correlation coefficient
imcontourCreate contour plot of image data
imhistDisplay histogram of image data
impixelPixel color values
improfilePixel-value cross-sections along line segments
mean2Average or mean of matrix elements
pixvalDisplay information about image pixels
regionpropsMeasure properties of image regions (blob analysis)
std2Standard deviation of matrix elements

Image Arithmetic

imabsdiffAbsolute difference of two images
imaddAdd two images or add constant to image
imcomplementComplement image
imdivideDivide one image into another or divide image by constant
imlincombLinear combination of images
immultiplyMultiply two images or multiply image by constant
imsubtractSubtract one image from another or subtract constant from image

Image Enhancement and Restoration

Image EnhancementHistogram equalization, decorrelation stretching, and 2-D filtering
Image Restoration (Deblurring)Deconvolution for deblurring

Image Enhancement

adapthisteqContrast-limited adaptive histogram equalization (CLAHE)
decorrstretchApply decorrelation stretch to multichannel image
histeqEnhance contrast using histogram equalization
imadjustAdjust image intensity values or colormap
imnoiseAdd noise to image
intlutConvert integer values using lookup table
medfilt22-D median filtering
ordfilt22-D order-statistic filtering
stretchlimFind limits to contrast stretch image
wiener22-D adaptive noise-removal filtering

Image Restoration (Deblurring)

deconvblindDeblur image using blind deconvolution
deconvlucyDeblur image using Lucy-Richardson method
deconvregDeblur image using regularized filter
deconvwnrDeblur image using Wiener filter
edgetaperTaper discontinuities along image edges
otf2psfConvert optical transfer function to point-spread function
psf2otfConvert point-spread function to optical transfer function

Linear Filtering and Transforms

Linear FilteringConvolution, N-D filtering, and predefined 2-D filters
Linear 2-D Filter Design2-D FIR filters
Image TransformsFourier, Discrete Cosine, Radon, and Fan-beam transforms

Linear Filtering

conv22-D convolution
convmtx22-D convolution matrix
convnN-D convolution
filter22-D linear filtering
fspecialCreate predefined 2-D filter
imfilterN-D filtering of multidimensional images

Linear 2-D Filter Design

freqspaceDetermine frequency spacing for 2-D frequency response
freqz22-D frequency response
fsamp22-D FIR filter using frequency sampling
ftrans22-D FIR filter using frequency transformation
fwind12-D FIR filter using 1-D window method
fwind22-D FIR filter using 2-D window method

Image Transforms

dct22-D discrete cosine transform
dctmtxDiscrete cosine transform matrix
fan2paraConvert fan-beam projections to parallel-beam
fanbeamFan-beam transform
fft22-D fast Fourier transform
fftnN-D fast Fourier transform
fftshiftShift zero-frequency component of fast Fourier transform to center of spectrum
idct22-D inverse discrete cosine transform
ifanbeamInverse fan-beam transform
ifft22-D inverse fast Fourier transform
ifftnN-D inverse fast Fourier transform
iradonInverse Radon transform
para2fanConvert parallel-beam projections to fan-beam
phantomCreate head phantom image
radonRadon transform

Morphological Operations

Intensity and Binary ImagesDilate, erode, reconstruct, and perform other morphological operations
Binary ImagesLabel, pack, and perform morphological operations on binary images
Structuring Element (STREL) Creation and ManipulationCreate and manipulate structuring elements for morphological operations

Intensity and Binary Images

conndefCreate connectivity array
imbothatBottom-hat filtering
imclearborderSuppress light structures connected to image border
imcloseMorphologically close image
imdilateDilate image
imerodeErode image
imextendedmaxExtended-maxima transform
imextendedminExtended-minima transform
imfillFill image regions and holes
imhmaxH-maxima transform
imhminH-minima transform
imimposeminImpose minima
imopenMorphologically open image
imreconstructMorphological reconstruction
imregionalmaxRegional maxima
imregionalminRegional minima
imtophatTop-hat filtering
watershedWatershed transform

Binary Images

applylutNeighborhood operations on binary images using lookup tables
bwareaArea of objects in binary image
bwareaopenMorphologically open binary image (remove small objects)
bwdistDistance transform of binary image
bweulerEuler number of binary image
bwhitmissBinary hit-miss operation
bwlabelLabel connected components in binary image
bwlabelnLabel connected components in N-D binary image
bwmorphMorphological operations on binary images
bwpackPack binary image
bwperimFind perimeter of objects in binary image
bwselectSelect objects in binary image
bwulterodeUltimate erosion
bwunpackUnpack binary image
imregionalminRegional minima
imtophatTop-hat filtering
makelutCreate lookup table for use with applylut

Structuring Element (STREL) Creation and Manipulation

getheightHeight of structuring element
getneighborsStructuring element neighbor locations and heights
getnhoodStructuring element neighborhood
getsequenceSequence of decomposed structuring elements
isflatTrue for flat structuring element
reflectReflect structuring element
strelCreate morphological structuring element (STREL)
translateTranslate structuring element (STREL)

ROI-Based, Neighborhood, and Block Processing

ROI-Based ProcessingDefine regions of interest (ROI) and perform operations on them
Neighborhood and Block ProcessingDefining neighborhoods and blocks and processing them

ROI-Based Processing

poly2maskConvert region of interest (ROI) polygon to region mask
roicolorSelect region of interest (ROI) based on color
roifillFill in specified region of interest (ROI) polygon in grayscale image
roifilt2Filter region of interest (ROI) in image
roipolySpecify polygonal region of interest (ROI)

Neighborhood and Block Processing

bestblkDetermine optimal block size for block processing
blkprocDistinct block processing for image
col2imRearrange matrix columns into blocks
colfiltColumnwise neighborhood operations
im2colRearrange image blocks into columns
nlfilterGeneral sliding-neighborhood operations

Colormap and Color Space Functions

Colormap ManipulationManipulate colormaps to brighten or change an image
Color Space ConversionsICC profile-based device independent color space conversions and device-dependent color space conversions

Colormap Manipulation

brightenBrighten or darken colormap
cmpermuteRearrange colors in colormap
cmuniqueEliminate duplicate colors in colormap; convert grayscale or truecolor image to indexed image
imapproxApproximate indexed image by one with fewer colors
rgbplotPlot colormap

Color Space Conversions

applycformApply device-independent color space transformation
hsv2rgbConvert hue-saturation-value (HSV) values to RGB color space
iccfindSearch for ICC profiles
iccreadRead ICC profile
iccrootFind system default ICC profile repository
iccwriteWrite ICC color profile to disk file
isiccTrue for valid ICC color profile
lab2doubleConvert L*a*b* data to double
lab2uint16Convert L*a*b* data to uint16
lab2uint8Convert L*a*b* data to uint8
makecformCreate color transformation structure
ntsc2rgbConvert NTSC values to RGB color space
rgb2hsvConvert RGB values to hue-saturation-value (HSV) color space
rgb2ntscConvert RGB color values to NTSC color space
rgb2ycbcrConvert RGB color values to YCbCr color space
whitepointXYZ color values of standard illuminants
xyz2doubleConvert XYZ color values to double
xyz2uint16Convert XYZ color values to uint16
ycbcr2rgbConvert YCbCr color values to RGB color space

Miscellaneous Functions

Toolbox PreferencesSet and determine the value of toolbox preferences
Toolbox Utility FunctionsCheck input arguments and perform other common programming tasks
Interactive Mouse Utility FunctionsRetrieve the values of lines, points, and rectangles defined interactively using the mouse
Array OperationsCircularly shift pixel values and pad arrays
DemosLaunch Image Processing Toolbox™ demos
PerformanceCheck for presence of Intel Performance Primitives Library (IPPL)

Toolbox Preferences

iptgetprefGet value of Image Processing Toolbox™ preference
iptsetprefSet Image Processing Toolbox™ preferences or display valid values

Toolbox Utility Functions

getrangefromclassDefault display range of image based on its class
iptcheckconnCheck validity of connectivity argument
iptcheckinputCheck validity of array
iptcheckmapCheck validity of colormap
iptchecknarginCheck number of input arguments
iptcheckstrsCheck validity of option string
iptnum2ordinalConvert positive integer to ordinal string

Interactive Mouse Utility Functions

getlineSelect polyline with mouse
getptsSpecify points with mouse
getrectSpecify rectangle with mouse

Array Operations

padarrayPad array

Demos

iptdemosIndex of Image Processing Toolbox™ demos

Performance

ipplCheck for presence of Intel Performance Primitives Library (IPPL)
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS