Image Processing Toolbox User's Guide Previous page   Next Page
imcontour

Create a contour plot of image data

Syntax

Description

imcontour(I) draws a contour plot of the intensity image I, automatically setting up the axes so their orientation and aspect ratio match the image.

imcontour(I,n) draws a contour plot of the intensity image I, automatically setting up the axes so their orientation and aspect ratio match the image. n is the number of equally spaced contour levels in the plot; if you omit the argument, the number of levels and the values of the levels are chosen automatically.

imcontour(I,v) draws a contour plot of I with contour lines at the data values specified in vector v. The number of contour levels is equal to length(v).

imcontour(x,y,...) uses the vectors x and y to specify the x- and y-axis limits.

imcontour(...,LineSpec) draws the contours using the line type and color specified by LineSpec. Marker symbols are ignored.

[C,h] = imcontour(...) returns the contour matrix C and a vector of handles to the objects in the plot. (The objects are actually patches, and the lines are the edges of the patches.) You can use the clabel function with the contour matrix C to add contour labels to the plot.

Class Support

The input image can be of class uint8, uint16, int16, single, double, or logical.

Example

See Also

clabel, contour, LineSpec in the MATLAB Function Reference


Previous page  imcomplement imcontrast Next page

© 1994-2005 The MathWorks, Inc.