Possible Duplicate:
How do I calculate the area with matlab (unit : m*h)?
Don't take the blue,red lines into account, what's the simplest solution to calculate the area of the green box unit(width and height in pixels) with MATLAB?
Possible Duplicate:
How do I calculate the area with matlab (unit : m*h)?
Don't take the blue,red lines into account, what's the simplest solution to calculate the area of the green box unit(width and height in pixels) with MATLAB?
Since the grid is perfectly well aligned in the horizontal/vertical, you can use the following algorithm: