plot
Plot MSER regions
Description
Examples
Plot MSER Regions
Extract MSER features and plot the regions.
Read image and extract MSER features.
I = imread('cameraman.tif'); regions = detectMSERFeatures(I); imshow(I); hold on; plot(regions);
Plot MSER Regions.
figure; imshow(I); hold on; plot(regions,'showPixelList',true,'showEllipses',false); hold off;
Input Arguments
points
— Points
MSERRegions
object
Points, specified as a points object. The object contains information about the feature points detected in the 2-D grayscale input image.
ax
— Axes handle
handle
Handle to use for display. You can set the handle using gca
.
Name-Value Arguments
Example: 'ShowOrientation'
,'true'
showEllipses
— Display ellipsis
true
(default) | false
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.
ShowOrientation
— Display orientation line
true
(default) | false
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.
showPixelList
— Display regions using JET colormap
true
(default) | false
Display regions using JET colormap, specified as true
or
false
.
Version History
See Also
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)