| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Image Processing Toolbox |
| Contents | Index |
| Learn more about Image Processing Toolbox |
imcontour(I)
imcontour(I,n)
imcontour(I,v)
imcontour(x,y,...)
imcontour(...,LineSpec)
[C,handle] = imcontour(...)
imcontour(I) draws a contour plot of the grayscale 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 grayscale 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,handle] = imcontour(...) returns the contour matrix C and a handle to an hggroup object.
The input image can be of class uint8, uint16, int16, single, double, or logical.
I = imread('circuit.tif');
imcontour(I,3)

clabel, contour, LineSpec in the MATLAB Function Reference
![]() | imcomplement | imcontrast | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |