Reconstructing Edges and Blending

The way geometric edges are reconstructed from discontinuities differs slightly between the various methods of analytical AA, but they all perform some manner of pattern matching on horizontal and vertical discontinuities to identify the typical "staircase" pattern of aliasing artifacts. Figure 10 illustrates the patterns used in MLAA as described by Reshetov, and how edges are reconstructed from them.

Figure 10: MLAA patterns and their reconstructed edges
Detected patterns | Discontinuity patterns used in MLAA

Once the geometrical edges have been reconstructed, it is relatively simple to calculate how much the upper/lower or left/right pixels along the edge should each contribute to the blended pixel colour in order to generate an anti-aliased appearance.