user3501963
user3501963

Reputation: 9

How to calculate the area of a lake using binary image?

Matlab - At I'm trying to use is the following:

  1. Load image, transform to binary ; Using BWboundaries.
  2. Find edge/perimeter ;
  3. Attempt to join edges ;
  4. Fill perimeter with red ;
  5. Measure Area and Perimeter using regionprops
  6. Plot line horizontal or vertical ;
  7. Stipulate value of axis of that coordinates on the edges, and distance in pixels (after converting for meters).

enter image description here

Upvotes: 0

Views: 535

Answers (1)

enric.cornella
enric.cornella

Reputation: 150

If you have the image that you have posted already segmented why don't you just count your black pixels? This is going to give you the area.

Otherwise take a look at regionprops of Matlab (http://www.mathworks.es/es/help/images/ref/regionprops.html#bqkf8hc)

Upvotes: 1

Related Questions