Main Content

plot

Plot MSER regions

Description

plot(points) plots points in the current axis.

example

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

plot(points,ax,Name=Value) specifies options using one or more name-value arguments in addition to any combination of arguments from previous syntaxes. For example, plot(points,ax,ShowOrientation=true) sets the logical value to true to show the orientation.

Examples

collapse all

Read image and extract MSER features.

I = imread("cameraman.tif");
regions = detectMSERFeatures(I);
imshow(I); hold on;
plot(regions);

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

Plot MSER Regions.

figure; imshow(I);
hold on;
plot(regions,showPixelList=true,showEllipses=false);
hold off;

Figure contains an axes object. The hidden 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 using gca.

Name-Value Arguments

Example: plot(points,ax,ShowOrientation=true) sets the logical value to true to show the orientation.

Display ellipsis around feature, specified as true or false. When you set this value to true, the object draws an ellipse with the same 2nd order moments as the region. When you set this value to false, only the ellipses centers are plotted.

Display feature point orientation, specified as true or false. When you set this value to true, 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 as true or false.

Version History

Introduced in R2012a