Contour image in MATLAB

  • MATLAB
  • Thread starter Az83
  • Start date
  • #1
8
0
I'm not sure why its doing this, but I am following the example in MATLAB help for Create contour plot of image data, which is

I = imread('circuit.tif');
imcontour(I,3)

But I am using a jpg image in place of the 'circuit.tif' (just a simple black image with white dots), and I am getting the follwoing error:

??? Function IMCONTOUR expected its first input, I, to be two-dimensional.

Error in ==> imcontour>ParseInputs at 112
iptcheckinput(a,{'uint8','int16','uint16','double','logical','single'}, ...

Error in ==> imcontour at 44
[x,y,a,extra_args] = ParseInputs(varargin{:});



What does this mean?
 

Answers and Replies

Related Threads on Contour image in MATLAB

  • Last Post
Replies
4
Views
713
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
3
Views
3K
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
0
Views
7K
Replies
2
Views
5K
Replies
6
Views
7K
  • Last Post
Replies
4
Views
29K
Replies
0
Views
3K
Replies
1
Views
749
Top