Because measuring area from images has numerous applications – medical research (i.e. cancer cells), remote sensing (i.e. land area estimation) and quality control (i.e. solder leads in circuit boards, grains) – that was what we had to do for this activity.
Although there are many equations available for area computation, these are only applicable to regular shapes. Like anyone would tell you, the real world isn’t made up wholly of regular shapes. As humans, we have a tendency to complicate the simple things. Thus, a way to measure the area of irregular shapes would be to take the points bounding the shape and use Green’s Theorem whose mathematical representation is shown below
Figure 1. Mathematical expression for Green’s Theorem
To test the accuracy of this method, I created shapes in MS Paint whose area can be computed for with the appropriate equations and saved these images into .BMP files. In the process, I also took the pixel coordinates of the corners or edges and computed the area values for these shapes. I then adapted Green’s Theorem into a Scilab 4.1.2 code making use of the SIP Toolbox. If I must say so myself, the computed areas from the implementation of the theorem are not so far off from the values I manually obtained.
Figure 2. The geometric shapes used to test Green’s Theorem.
Note that these shapes are contained in individual images and are only presented as a stack.
Figure 3. Adaptation of Green’s Theorem in Scilab 4.1.2
Figure 4. Results of the area computation using Green’s Theorem (Scilab)
and manual computation (MS Paint ) and the corresponding deviation values
Because the place holds so many good memories for me, I decided to use the Quezon Memorial Circle (QMC) for my attempt at using Green’s Theorem estimation. I isolated the said land mass using Google Maps and I had the option of choosing the satellite or the map version of the image. If it’s not too clear from the picture below, I used the map version.
Figure 5. Screen grab of the Quezon Memorial Circle from Google Maps
After making a duplicate of the screen grab for reference purposes, I then went on to crop the screen grab so that only the QMC would be shown. Using techniques gained from previous activities (see here), I was able to isolate the shape of QMC itself and thus, find it’s area using a modified version of the code I presented earlier.
Figure 6. Shape of the Quezon Memorial Circle
The Green’s Theorem algorithm came up with an area value of 50560. I rejoiced for two seconds thinking I was done and then realized that this value was expressed in square pixels, not in a physical measurable unit. I used the scale in Figure 6, determining that a distance of 200 m in the real world equaled 87 pixels in the Google map world – at least by my estimation. With the concept of unit conversion, the QMC then had a physical world area of 267195.1 square meters.
I realized too late that I forgot to search for a theoretical value of the area and when I did, no source could give me an answer. I then had to adapt the method used for the geometric shapes. Once again using unit conversion, I came up with an area value of 269320.5 square meters.
I give myself a 8/10. Seeing my results and my presentation of the figures, I would have given myself a ten were it not for my rather inaccurate “theoretical value” of the QMC area and my overall disappointment in my performance. On a lighter note, I’m very pleased to know that I retain information from previous activities and am able to apply them to . Rest assured, the fresh concepts I came to face with in this activity are going in my memory bank.
REFERENCES:
Google Maps
Activity 4 Area Estimation for Images with Defined Edges, Applied Physics 186 Manual