Documentation

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.

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

To determine the location and value of individual pixels in an image, use the Pixel Region tool of the Image Viewer app.

Measure Distance Between Pixels in Image Viewer

To measure distance between pixels, use the Distance tool of the Image Viewer app.

Labeling and Measuring Objects in a Binary Image

Describes functions that return information about a binary 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

To compute standard statistics of an image, use the two-dimensional 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 theimpixel function.

Image Region Properties

A region in an image can have properties, such as an area, center of mass, orientation, and bounding box.

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. To create an intensity profile, use the improfile function.

Contour Plot of Image Data

A contour is a path in an image along which the intensity values are constant. To create a contour plot of a grayscale image, use the imcontour function.

Correct Nonuniform Background Illumination and Analyze Foreground Objects

This example shows how to enhance an image as a preprocessing step before analysis.

Was this topic helpful?