Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Contour image in MATLAB

  1. May 3, 2008 #1
    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?
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted