maple_data


maple_data, a MATLAB code which takes an image of a maple leaf and determines the pixels that form the boundary.

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.

For various reasons, it will be interesting to have a copy of this maple leaf image accessible. MATLAB procedures are used to turn the maple leaf image into a polygonal curve definining the boundary, following which various calculations may be made.

Licensing:

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

Languages:

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

Related Data and Programs:

maple_data_test

convhull_test, a MATLAB code which demonstrates the computation of the convex hull of a set of 2D points.

florida_cvt_geo, a MATLAB code which creates a centroidal Voronoi Tessellation (CVT) of the state of Florida, based solely on geometric considerations.

florida_cvt_pop, a MATLAB code which creates a centroidal Voronoi Tessellation (CVT) of the state of Florida, based on population density.

hand_data, a MATLAB code which creates a data set of 59 (x,y) coordinates of points that outline a user's hand which has been pressed to the screen.

house_data, a MATLAB code which returns the coordinates of 11 points which are the vertices of a (degenerate) polygon which has the shape of a house.

human_data, a MATLAB code which starts with an image of simple outline of a human body, tabulates a sequence of points on the outline, creating numerical data defining the boundary. It is then able to fill the region with mesh points and triangulate the region. This allows the region to be analyzed by the finite element method (FEM).

maple_area, a MATLAB code which takes the list of pixels that form the boundary of the image of a maple leaf within a picture, and uses grid, Monte Carlo, and Quasi Monte Carlo sampling to estimate the area of the leaf.

mesh_boundary, a MATLAB code which is given a mesh of a 2D region, formed by polygonal elements, and determines a sequence of pairs of polygonal vertices that define the boundary of the region.

profile_data, a MATLAB code which carries out some numerical exercises based on data that came from tracing the profile of a face.

triangulate, a MATLAB code which triangulates a polygonal region.

Reference:

Source Code:


Last revised on 10 February 2019.