maple_area


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 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.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

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

Related Data and Programs:

maple_area_test

hand_area, a MATLAB code which estimates the area of a curve which outlines a person's hand.

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

polygon, an Octave code which computes properties of an arbitrary polygon in the plane, defined by a sequence of vertices, including interior angles, area, centroid, containment of a point, convexity, counter clockwise ordering, diameter, distance to a point, inradius, lattice area, nearest point in set, outradius, uniform sampling, and triangulation.

Reference:

Source Code:


Last revised on 31 December 2024.