This program displays the contour plot of an mxn (m ~= n) matrix, and then calculates the area for regions above a given level. This is a brute force implementation. It probably has some bugs, and there are probably more elegant ways to do this, but it does what I need. I am open to feedback on how to improve the code.

I want to use the code to find area of a intensity image ,the intensity values ranges from 0-255. How should I make the axes for the code? Any help is highly appreciated.

10 Apr 2008

Tommy Frank

Thanks Phillip

24 Apr 2007

n chandrasekhar

excellent

12 Jun 2006

Dimiter Prodanov

clears workspace; not a function;
very trivial

19 Nov 2005

Duane Hanselman

Warning this is not a function. It is a script that clears the base workspace!

26 Oct 2005

Manjunath Shantharamu

It is good and can we appy this to calculate an area of any irregular shape, is so how? Thank U

12 Apr 2005

Ira B

Updates

16 Feb 2005

Updated the program to calculate the area above (not below) a certain contour level. Also modified the program to accept any mxn matrix

17 Feb 2005

Minor modifications to code.
Tried to add screenshot.

18 Feb 2005

Fixed potential problem when last point in a contour line/polygon is (0,0).

22 Feb 2005

Found out how to correctly plot only a single contour in Matlab. Added an example xls data file.