MATLAB Contour image in MATLAB

  • Thread starter Az83
  • Start date
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');

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?

Want to reply to this thread?

"Contour image in MATLAB" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving