To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Visvalingam–Whyatt algorithm

From Wikipedia, the free encyclopedia

The Visvalingam–Whyatt algorithm, also known as the Visvalingam's algorithm, is an algorithm that decimates a curve composed of line segments to a similar curve with fewer points.

Idea

Given a polygonal chain (often called a Polyline), the algorithm attempts to find a similar chain composed of fewer points.

Points are assigned an importance based on local conditions, and points are removed from the least important to most important.

In Visvalingam's algorithm, the importance is related to the triangular area added by each point.

Algorithm

Given a chain of 2d points , the importance of each interior point is computed by finding the area of the triangle formed by it and its immediate neighbors. This can be done quickly using a matrix determinant.[1] Alternatively, the equivalent formula below can be used[2]

The minimum importance point is located and marked for removal (note that and will need to be recomputed). This process is repeated until either the desired number of points is reached, or the contribution of the least important point is large enough to not neglect.

Advantages

  • The algorithm is easy to understand and explain, but is often competitive with much more complex approaches.
  • With the use of a priority queue, the algorithm is performant on large inputs, since the importance of each point can be computed using only its neighbors, and removing a point only requires recomputing the importance of two other points.
  • It is simple to generalize to higher dimensions, since the area of the triangle between points has a consistent meaning.

Disadvantages

  • The algorithm does not differentiate between sharp spikes and shallow features, meaning that it will clean up sharp spikes that may be important.
  • The algorithm simplifies the entire length of the curve evenly, meaning that curves with high and low detail areas will likely have their fine details eroded.

See also

Alternative algorithms for line simplification include:

References

  1. ^ "6.5 – Applications of Matrices and Determinants". people.richland.edu. Retrieved 2020-07-07.
  2. ^ "Untitled Document". people.richland.edu. Retrieved 2020-07-07.

External links

This page was last edited on 5 August 2022, at 19:05
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.