Documentation

This is machine translation

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

Region and Image Properties

Get information about the objects in an image

Functions

regionprops Measure properties of image regions
bwarea Area of objects in binary image
bwareafilt Extract objects from binary image by size
bwconncomp Find connected components in binary image
bwconvhull Generate convex hull image from binary image
bwdist Distance transform of binary image
bwdistgeodesic Geodesic distance transform of binary image
bweuler Euler number of binary image
bwperim Find perimeter of objects in binary image
bwpropfilt Extract objects from binary image using properties
bwselect Select objects in binary image
graydist Gray-weighted distance transform of grayscale image
imcontour Create contour plot of image data
imhist Histogram of image data
impixel Pixel color values
improfile Pixel-value cross-sections along line segments
corr2 2-D correlation coefficient
mean2 Average or mean of matrix elements
std2 Standard deviation of matrix elements
bwlabel Label connected components in 2-D binary image
bwlabeln Label connected components in binary image
labelmatrix Create label matrix from bwconncomp structure
bwpack Pack binary image
bwunpack Unpack binary image

Apps

Image Region Analyzer Browse and filter connected components in an image

Examples and How To

Get Pixel Information in Image Viewer App

Image Viewer's pixel information tools, including the Pixel Region tool and the Pixel Information tool

Measure Distance Between Pixels in Image Viewer

Image Viewer's Distance tool

Labeling and Measuring Objects in a Binary Image

Describes functions that return information about a binary image

Determine Values of Individual Pixels in Images

This example shows how to use impixel interactively to get pixel values.

Create an Intensity Profile of an Image

This example shows how to create an intensity profile for an image interactively using improfile.

Create Contour Plot of Image Data

This example shows how to create a contour plot of an image.

Create Image Histogram

This example shows how to create a histogram for an image using the imhist function.

Image Mean, Standard Deviation, and Correlation Coefficient

You can compute standard statistics of an image using the mean2, std2, and corr2 functions.

Calculate Region Properties Using Image Region Analyzer

This example shows how to calculate the properties of regions in binary images using the Image Region Analyzer app.

Concepts

Pixel Values

To determine the values of one or more pixels in an image and return the values in a variable, use the impixel function.

Image Region Properties

Image regions, also called objects, connected components, or blobs, can be contiguous or discontiguous.

Distance Transform

Describes how to use the bwdist function to compute the distance transform of an image

Intensity Profile of Images

The intensity profile of an image is the set of intensity values taken from regularly spaced points along a line segment or multiline path in an image.

Contour Plot of Image Data

A contour is a path in an image along which the image intensity values are equal to a constant.

Was this topic helpful?