Documentation Center

  • Trial Software
  • Product Updates

plot

Class: MSERRegions

Plot MSER regions

Syntax

MSERRegions.plot
MSERRegions.plot(AXES_HANDLE,...)
MSERRegions.plot(AXES_HANDLE,Name,Value)

Description

MSERRegions.plot plots MSER points in the current axis.

MSERRegions.plot(AXES_HANDLE,...) plots using axes with the handle AXES_HANDLE.

MSERRegions.plot(AXES_HANDLE,Name,Value) Additional control for the plot method requires specification of parameters and corresponding values. An additional option is specified by one or more Name,Value pair arguments.

Input Arguments

AXES_HANDLE

Handle for plot method to use for display. You can set the handle using gca.

Name-Value Pair Arguments

showEllipses

Display ellipses around feature. Set this value to 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.

Default: true

showOrientation

Display a line corresponding to the region's orientation. Set this value to true or false. When you set this value to true, the object draws a line corresponding to the region's orientation. The object draws the line from the ellipse's centroid to the edge of the ellipse, which indicates the region's major axis.

Default: false

showPixelList

Display the MSER regions. Set this value to true or false. When you set this value to true, the object plots the MSER regions using the JET colormap.

Examples

expand all

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;
Was this topic helpful?