WMS:Linear Interpolation: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 21: Line 21:
which is the form of the plane equation used to compute the elevation at any  point on the triangle.
which is the form of the plane equation used to compute the elevation at any  point on the triangle.


Since a TIN only covers the convex hull of a scatter point set, extrapolation  beyond the convex hull is not possible with the linear interpolation scheme. Any  points outside the convex hull of the scatter point set are assigned the default  extrapolation value entered at the bottom of the Interpolation Options dialog.  The figure below shows a 2D scatter point set (small red triangles) being  interpolated to a 2D grid. The green lines represent a TIN constructed from a  scatter point set. The thick blue line represents the convex hull of the data  set. No extrapolation will occur outside of this thick blue line.
Since a TIN only covers the convex hull of a scatter point set, extrapolation  beyond the convex hull is not possible with the linear interpolation scheme. Any  points outside the convex hull of the scatter point set are assigned the default  extrapolation value entered at the bottom of the ''Interpolation Options'' dialog.  The figure below shows a 2D scatter point set (small red triangles) being  interpolated to a 2D grid. The green lines represent a TIN constructed from a  scatter point set. The thick blue line represents the convex hull of the dataset. No extrapolation will occur outside of this thick blue line.


[[Image:linear01.gif|frame|none|''Convex  Hull of a Data Set'']]
[[Image:linear01.gif|frame|none|''Convex  Hull of a Dataset'']]





Revision as of 16:55, 27 February 2013

If the linear interpolation scheme is selected, the 2D scatter points are first triangulated to form a temporary TIN. The TIN is a network of triangles connecting the scatter points together. It is used to interpolate from the scatter points to another object such as a grid or a mesh.

The equation of the plane defined by the three vertices of a triangle is as follows:

Linear eq1.jpg

where A, B, and C, and D are computed from the coordinates of the three vertices (x1,y1,z1), (x2,y2,z2), & (x3,y3,z3):

File:Linear eq2.jpg

File:Linear eq3.jpg

File:Linear eq4.jpg

File:Linear eq5.jpg

The plane equation can also be written as:

File:Linear eq6.jpg

which is the form of the plane equation used to compute the elevation at any point on the triangle.

Since a TIN only covers the convex hull of a scatter point set, extrapolation beyond the convex hull is not possible with the linear interpolation scheme. Any points outside the convex hull of the scatter point set are assigned the default extrapolation value entered at the bottom of the Interpolation Options dialog. The figure below shows a 2D scatter point set (small red triangles) being interpolated to a 2D grid. The green lines represent a TIN constructed from a scatter point set. The thick blue line represents the convex hull of the dataset. No extrapolation will occur outside of this thick blue line.

File:Linear01.gif
Convex Hull of a Dataset


Related Topics