Main Content

plot

Plot MSER regions

Description

example

plot(points)plots points in the current axis.

plot(points,ax)plots points in the specified axis.

plot(points,ax,Name,Value)sets properties using one or more name-value pairs. Enclose each property name in quotes. For example,plot('ShowOrientation',true)

Examples

collapse all

Extract MSER features and plot the regions.

Read image and extract MSER features.

I = imread('cameraman.tif'); regions = detectMSERFeatures(I); imshow(I); holdon; plot(regions);

Figure contains an axes object. The axes object contains 475 objects of type image, line.

Plot MSER Regions.

figure; imshow(I); holdon; plot(regions,'showPixelList',true,'showEllipses',false); holdoff;

Figure contains an axes object. The axes object contains 238 objects of type image, line.

Input Arguments

collapse all

Points, specified as a points object. The object contains information about the feature points detected in the 2-D grayscale input image.

Handle to use for display. You can set the handle usinggca.

Name-Value Arguments

Example:'ShowOrientation','true'

Display ellipsis around feature, specified astrueorfalse. When you set this value totrue, the object draws an ellipse with the same 2nd order moments as the region. When you set this value tofalse,只有一个椭圆中心re plotted.

Display feature point orientation, specified astrueorfalse. When you set this value totrue, the object draws a line corresponding to the point's orientation. The object draws the line from the feature point location to the edge of the circle, indicating the scale.

Display regions using JET colormap, specified astrueorfalse.

Version History

Introduced in R2012a