maple_area, an Octave code which estimates the area of a maple leaf using an image.

For a discussion of quasirandom sampling, Brian Hayes published a picture of a maple leaf and considered how its area could be estimated using a regular grid of points, random sampling, or quasirandom sampling.

The maple_boundary() functions used various MATLAB procedures to turn the maple leaf image into a polygonal curve definining the boundary. The functions in maple_area() use various sampling techniques to estimate the area of the maple leaf, given the boundary curve.


The computer code and data files made available on this web page are distributed under the MIT license


maple_area is available in a MATLAB version and an Octave version.

Related Data and Programs:


maple_boundary, an Octave code which reads an image of a maple leaf and extracts the list of pixels that form the boundary.


Source Code:

Last revised on 09 November 2022.