Algorithm Search⌘K

Algorithmresearch

J-linkage

Also called multi-model fitting by J-linkage.

Fit several models at once: describe each point by the set of random hypotheses it supports, then cluster the points agglomeratively by the Jaccard distance.

Time
Θ(n^3 M) worstO(n^3 M) averageΘ(n^2 M) best
Space
Θ(n M) extra
Where
M = the number of random hypotheses; n = the number of data points
Properties
randomizednot exactofflineiterative
Origin
Roberto Toldo, Andrea Fusiello, 2008

J-linkage is a method to fit several models to the same data at once, for example several lines in a set of points, several planes in a 3D scan or several homographies between two images of a scene with many flat parts. RANSAC finds one model, and running it again on the points that remain often fails, because the outliers of one model are the inliers of another. J-linkage does not look for the models one by one. It draws many random hypotheses, as RANSAC does, and then describes each point by its preference set, the set of hypotheses that pass close to it. Points on the same structure prefer the same hypotheses. The method then puts the points in clusters by agglomerative clustering with the Jaccard distance between preference sets, and fits one model to each large cluster. Toldo and Fusiello introduced it in 2008. The number of models is an output, not an input.

In plain words

Imagine many random guesses of a line. Each point writes down the list of guesses that pass near it. Two points on the same true line have similar lists, because a guess near that line passes near both of them. A point that is noise has a short list that looks like no other list.

Now join points step by step. At each step, join the two groups whose lists are most alike. A group keeps only the guesses that every member has on its list. Stop when no two groups share a guess. Each big group is one structure, and a line fitted to it is one answer. Small groups are noise.

The problem

The input is a set of points D={x1,…,xn}D = \{x_1, \ldots, x_n\} that lie near an unknown number of models of one type, plus outliers. There is a minimal solver for samples of ss points, a residual r(h,x)r(h, x), an inlier threshold ε\varepsilon, a number of hypotheses MM, a locality scale σ\sigma and a least cluster size mmin⁡m_{\min}. The output is a list of models, each with the points it explains. This is the multi-model form of robust model fitting. The code fits lines in the plane, with s=2s = 2.

The algorithm

  1. J-LINKAGE(D, M, ε, σ, m_min) ▷ n = |D|
  2. 1for j = 1, …, M do
  3. 2S ← one uniform point x_i, then s − 1 other points, each x with weight exp(−‖x − x_i‖²/σ²)
  4. 3h_j ← FIT-MINIMAL(S)
  5. 4P(x) ← {h_j : r(h_j, x) < ε} for each x in D ▷ preference sets
  6. 5C ← {{x} : x ∈ D}, with P({x}) = P(x)
  7. 6loop
  8. 7(A, B) ← a pair of clusters in C of least d_J(P(A), P(B))
  9. 8if C has fewer than 2 clusters or d_J(P(A), P(B)) = 1 then exit the loop
  10. 9replace A and B in C by A ∪ B, with P(A ∪ B) = P(A) ∩ P(B)
  11. 10for each cluster A in C with |A| ≥ m_min do
  12. 11fit a model to A by least squares and output it with A
  13. 12return the models and the clusters

Here dJ(P,Q)=(∣P∪Q∣−∣P∩Q∣)/∣P∪Q∣d_J(P, Q) = (|P \cup Q| - |P \cap Q|)/|P \cup Q| is the Jaccard distance, one minus the Jaccard similarity. It is 1 exactly when the two sets have no hypothesis in common. Line L2 is the locality sampling of the paper: points of one structure are often near each other, so samples of nearby points are more likely to come from one structure. Line L9 keeps the hypotheses that all points of the new cluster prefer. The code stores each preference set as a bit mask of MM bits, so the union and the intersection are bit operations. It breaks ties at line L7 by the order of the clusters.

Example

Take the 8 points x0=(0,0)x_0 = (0,0), x1=(1,0)x_1 = (1,0), x2=(2,0)x_2 = (2,0), x3=(3,0)x_3 = (3,0) on the line y=0y = 0, x4=(4,1)x_4 = (4,1), x5=(4,2)x_5 = (4,2), x6=(4,3)x_6 = (4,3) on the line x=4x = 4, and the outlier x7=(1,3)x_7 = (1,3). Take the 8 hypotheses through the pairs (x0,x1)(x_0, x_1), (x1,x7)(x_1, x_7), (x4,x5)(x_4, x_5), (x2,x4)(x_2, x_4), (x3,x6)(x_3, x_6), (x2,x3)(x_2, x_3), (x5,x6)(x_5, x_6) and (x0,x7)(x_0, x_7), called h1h_1 to h8h_8, and ε=0.1\varepsilon = 0.1. The preference sets are:

point x0x_0 x1x_1 x2x_2 x3x_3 x4x_4 x5x_5 x6x_6 x7x_7
PP 1, 6, 8 1, 2, 6 1, 4, 6 1, 5, 6 3, 4, 7 3, 7 3, 5, 7 2, 8

The hypotheses h1h_1 and h6h_6 are both the line y=0y = 0, and h3h_3 and h7h_7 are both x=4x = 4. The merges are:

step merge dJd_J new preference set
1 {x4}\{x_4\} and {x5}\{x_5\} 1/3 3, 7
2 {x4,x5}\{x_4, x_5\} and {x6}\{x_6\} 1/3 3, 7
3 {x0}\{x_0\} and {x1}\{x_1\} 1/2 1, 6
4 {x0,x1}\{x_0, x_1\} and {x2}\{x_2\} 1/3 1, 6
5 {x0,x1,x2}\{x_0, x_1, x_2\} and {x3}\{x_3\} 1/3 1, 6

After step 5 the clusters have the preference sets {1,6}\{1, 6\}, {3,7}\{3, 7\} and {2,8}\{2, 8\}, which share no hypothesis, so every distance is 1 and the loop stops. With mmin⁡=3m_{\min} = 3, the method outputs the lines y=0y = 0 and x=4x = 4 and leaves x7x_7 as an outlier. The number of lines, 2, was not an input.

Correctness

The clustering has four properties for any set of hypotheses (proofs below). The clusters form a partition of the points. The preference set of a cluster is the intersection of the preference sets of its points. Every cluster of two or more points has a hypothesis that all its points prefer, because two clusters merge only when their distance is below 1, which means that their sets meet. At the end, no two clusters share a hypothesis. The loop ends after at most n−1n - 1 merges. Whether the clusters are the true structures depends on the hypotheses: a structure is found only if some hypotheses fit it, which the random sampling gives with high probability when MM is large enough. This last part is an empirical result.

Proof: J-linkage ends with a partition of the points in which every cluster of two or more points shares a hypothesis and no two clusters share onefull

We use the notation of the page. The data are D={x1,…,xn}D = \{x_1, \ldots, x_n\} with n≥1n \ge 1, the hypotheses are H={h1,…,hM}H = \{h_1, \ldots, h_M\}, and the preference set of a point is P(x)={h∈H:r(h,x)<ε}P(x) = \{h \in H : r(h, x) < \varepsilon\}. For finite sets AA and BB the Jaccard distance is dJ(A,B)=(∣A∪B∣−∣A∩B∣)/∣A∪B∣d_J(A, B) = (|A \cup B| - |A \cap B|)/|A \cup B|, with dJ(∅,∅)=1d_J(\emptyset, \emptyset) = 1. The model of computation is the real RAM.

Claim. After line L4, the loop of lines L6 to L9 ends after at most n−1n - 1 merges, and the clusters CC it returns have these properties. (a) CC is a partition of DD. (b) Each cluster AA has the preference set P(A)=⋂x∈AP(x)P(A) = \bigcap_{x \in A} P(x). (c) If ∣A∣≥2|A| \ge 2, then P(A)≠∅P(A) \ne \emptyset: some hypothesis has residual below ε\varepsilon at every point of AA. (d) For two distinct clusters AA and BB, P(A)∩P(B)=∅P(A) \cap P(B) = \emptyset: no hypothesis is preferred by all points of AA and all points of BB.

Lemma 1. For finite sets AA and BB, dJ(A,B)<1d_J(A, B) < 1 if and only if A∩B≠∅A \cap B \ne \emptyset.

Proof. If A∪B=∅A \cup B = \emptyset, then dJ=1d_J = 1 and A∩B=∅A \cap B = \emptyset. Otherwise dJ(A,B)=1−∣A∩B∣/∣A∪B∣d_J(A, B) = 1 - |A \cap B|/|A \cup B|, which is less than 1 exactly when ∣A∩B∣>0|A \cap B| > 0. □\square

Lemma 2 (invariant). At each test of line L8, properties (a), (b) and (c) hold for the current clusters.

Proof. Line L5 makes the clusters {x}\{x\} with P({x})=P(x)P(\{x\}) = P(x), so (a) and (b) hold, and (c) is empty. Suppose they hold, and line L9 merges AA and BB. It removes the two clusters and adds A∪BA \cup B. Since AA and BB are disjoint and the other clusters are not changed, (a) holds. The new preference set is P(A)∩P(B)=⋂x∈AP(x)∩⋂x∈BP(x)=⋂x∈A∪BP(x)P(A) \cap P(B) = \bigcap_{x \in A} P(x) \cap \bigcap_{x \in B} P(x) = \bigcap_{x \in A \cup B} P(x), so (b) holds. Line L9 runs only if line L8 did not stop, so dJ(P(A),P(B))<1d_J(P(A), P(B)) < 1, and by Lemma 1, P(A)∩P(B)≠∅P(A) \cap P(B) \ne \emptyset. This is P(A∪B)P(A \cup B), so (c) holds for the new cluster. The other clusters keep (b) and (c). □\square

Lemma 3 (termination). The loop makes at most n−1n - 1 merges.

Proof. There are nn clusters at the start, each merge lowers the number by 1, and line L8 stops when fewer than 2 clusters are left. □\square

Lemma 4 (stopping condition). Property (d) holds for the returned clusters.

Proof. The loop stops at line L8 in one of two cases. If fewer than 2 clusters are left, (d) holds trivially. Otherwise the least Jaccard distance over all pairs is at least 1, so every pair has distance 1. By Lemma 1, P(A)∩P(B)=∅P(A) \cap P(B) = \emptyset for every pair. □\square

Lemmas 2, 3 and 4 give the claim. Lines L10 and L11 then fit one model to each cluster with at least mmin⁡m_{\min} points. By (c), the points of such a cluster all lie within ε\varepsilon of at least one common hypothesis, so a model fitted to them explains them all if that hypothesis is close to the true model. By (d), no hypothesis explains all the points of two clusters, so the method does not keep two copies of the same structure as long as a hypothesis close to it is in HH.

Remark (what is not proved). The claim holds for any set of hypotheses. Whether the clusters are the true structures depends on the sampling: a structure is found only if HH contains hypotheses that fit it. Toldo and Fusiello support this with experiments, and the locality sampling makes such hypotheses more likely. The merge order is greedy, so the result is a local choice, not the best partition by any global cost.

Complexity

Line L2 costs O(s n)O(s\,n) for the locality weights, so lines L1 to L3 cost O(Mn)O(M n) for a fixed ss. Line L4 computes nMn M residuals, Θ(nM)\Theta(n M). The simple clustering of the code compares all pairs of clusters at each step, O(n2)O(n^2) pairs with O(M)O(M) bit work each, and makes at most n−1n - 1 merges, so it costs O(n3M)O(n^3 M) in the worst case. If no pair merges, one pass of Θ(n2M)\Theta(n^2 M) is enough. The extra space is Θ(nM)\Theta(n M) bits for the preference sets. A priority queue of pair distances lowers the time of the clustering, as for other forms of agglomerative clustering.

Properties

  • The number of models is an output. It is the number of clusters with at least mmin⁡m_{\min} points.
  • Robust to outliers. An outlier prefers few hypotheses, and these hypotheses are rarely shared by a structure, so it ends in a small cluster.
  • Randomized. The hypotheses are random. The clustering itself is deterministic for a given set of hypotheses.
  • Two thresholds. The method needs ε\varepsilon and mmin⁡m_{\min}, but no number of models.

Variants and improvements

  • T-linkage (Magri and Fusiello, 2014) replaces the binary preference set by a vector of soft preferences in [0,1][0, 1] and the Jaccard distance by the Tanimoto distance.
  • Sequential RANSAC runs RANSAC again and again and removes the inliers of each model found. It is simpler but can fail when structures cross.
  • Hough transform votes in a grid of model parameters and finds several models as peaks. It suits models with few parameters.
  • Efficient RANSAC for shape detection finds several primitive shapes in point clouds with a RANSAC loop and local sampling.

When to use it

Use J-linkage when the data contain several structures of the same model type and their number is not known, for example several planes in a scan of a building, several moving objects in two views or several lines in an image. Use it when the structures may cross or touch, where sequential RANSAC tends to fail. For one model, RANSAC and its variants are faster. For very large nn, the cubic clustering of a simple implementation is slow, so use a priority queue or subsample the points.

Pitfalls

  • Too few hypotheses. A structure with no good hypothesis among the MM samples is lost. Raise MM for small structures or many outliers.
  • The locality scale σ\sigma. If σ\sigma is too small, samples come from tiny neighborhoods and give poor hypotheses. If it is too large, the sampling is uniform and most samples mix structures.
  • The threshold ε\varepsilon. As in RANSAC, a too small ε\varepsilon splits a structure into pieces, and a too large one merges close structures.
  • Points at crossings. A point near two structures prefers the hypotheses of both, and it joins only one of the clusters.

Implementations

The Python code fits lines in the plane. The function locality_sample draws the samples of line L2, preference_sets gives the bit masks of line L4 and cluster is the loop of lines L5 to L9, with an optional callback for each merge. The tests check the example, the invariants of the proof on random data and the recovery of two crossing lines with outliers.

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

j_linkage.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/j-linkage/. The authors are listed in prov/ZDYX7K.jsonl.
"""J-linkage, Toldo and Fusiello 2008, for several lines in the plane.

1. Draw M minimal samples with locality: the first point is uniform, and each
   other point x_j is drawn with probability proportional to
   exp(-|x_j - x_i|^2 / sigma^2), where x_i is the first point.
2. The preference set of a point is the set of hypotheses whose residual at
   the point is below eps (stored as a bit mask).
3. Start with one cluster per point. The preference set of a cluster is the
   intersection of the preference sets of its points. Merge the two clusters
   of least Jaccard distance while that distance is below 1.
4. Keep the clusters with at least m_min points and fit one model to each.

Lines are (a, b, c) with a x + b y + c = 0 and a^2 + b^2 = 1, s = 2.
Standard library only.
"""

import math
import random


def line_through(sample):
    """The line through two points, as (a, b, c) with a^2 + b^2 = 1, or None if they coincide."""
    (x1, y1), (x2, y2) = sample
    a, b = y1 - y2, x2 - x1
    nrm = math.hypot(a, b)
    if nrm == 0.0:
        return None
    a, b = a / nrm, b / nrm
    if a < 0 or (a == 0 and b < 0):
        a, b = -a, -b
    return (a, b, -(a * x1 + b * y1))


def point_line_distance(line, pt):
    a, b, c = line
    return abs(a * pt[0] + b * pt[1] + c)


def fit_line_tls(points):
    """Total least squares line through the centroid; None for fewer than 2 distinct points."""
    n = len(points)
    if n < 2:
        return None
    mx = sum(p[0] for p in points) / n
    my = sum(p[1] for p in points) / n
    sxx = sum((p[0] - mx) ** 2 for p in points)
    syy = sum((p[1] - my) ** 2 for p in points)
    sxy = sum((p[0] - mx) * (p[1] - my) for p in points)
    if sxx + syy == 0.0:
        return None
    ang = 0.5 * math.atan2(2.0 * sxy, sxx - syy)  # direction of largest spread
    return line_through([(mx, my), (mx + math.cos(ang), my + math.sin(ang))])


def popcount(x):
    return bin(x).count("1")


def jaccard_distance(a, b):
    """(|A u B| - |A n B|) / |A u B| for bit masks; 1 when both are empty."""
    union = popcount(a | b)
    if union == 0:
        return 1.0
    return (union - popcount(a & b)) / union


def locality_sample(data, s, sigma, rng):
    """s distinct indices: the first uniform, the others with weight exp(-|x - x_first|^2 / sigma^2)."""
    first = rng.randrange(len(data))
    chosen = [first]
    x0 = data[first]
    rest = [j for j in range(len(data)) if j != first]
    while len(chosen) < s:
        wts = [math.exp(-((data[j][0] - x0[0]) ** 2 + (data[j][1] - x0[1]) ** 2) / (sigma * sigma)) for j in rest]
        if sum(wts) == 0.0:
            j = rng.choice(rest)
        else:
            j = rng.choices(rest, weights=wts)[0]
        chosen.append(j)
        rest.remove(j)
    return chosen


def make_hypotheses(data, M, sigma, rng, s=2, fit_minimal=line_through):
    hyps = []
    if len(data) < s:
        return hyps
    for _ in range(M):  # @line L1
        idx = locality_sample(data, s, sigma, rng)  # @line L2
        h = fit_minimal([data[j] for j in idx])  # @line L3
        if h is not None:
            hyps.append(h)
    return hyps


def preference_sets(data, hyps, eps, residual=point_line_distance):
    return [sum(1 << j for j, h in enumerate(hyps) if residual(h, x) < eps) for x in data]


def cluster(prefs, on_merge=None):
    """Agglomerative clustering by Jaccard distance. Return a list of (member indices, preference mask).

    Ties are broken by the order of the clusters, which are kept sorted by their least member.
    """
    clusters = [([i], ps) for i, ps in enumerate(prefs)]  # @line L5
    while True:  # @line L6
        best = None
        for i in range(len(clusters)):  # @line L7
            for j in range(i + 1, len(clusters)):
                d = jaccard_distance(clusters[i][1], clusters[j][1])
                if best is None or d < best[0]:
                    best = (d, i, j)
        if best is None or best[0] >= 1.0:  # @line L8
            return clusters
        d, i, j = best
        if on_merge is not None:
            on_merge(clusters[i][0], clusters[j][0], d)
        merged = (sorted(clusters[i][0] + clusters[j][0]), clusters[i][1] & clusters[j][1])  # @line L9
        clusters = [c for t, c in enumerate(clusters) if t not in (i, j)] + [merged]
        clusters.sort(key=lambda c: c[0][0])


def j_linkage(data, eps, M=500, sigma=1.0, m_min=3, rng=None, hypotheses=None, s=2,
              residual=point_line_distance, fit=fit_line_tls):
    """Return (models, clusters): one model per cluster with at least m_min points, and all clusters."""
    rng = rng if rng is not None else random.Random()
    hyps = list(hypotheses) if hypotheses is not None else make_hypotheses(data, M, sigma, rng, s)
    prefs = preference_sets(data, hyps, eps, residual)  # @line L4
    clusters = cluster(prefs)
    models = []
    for members, _ in clusters:  # @line L10
        if len(members) >= m_min:
            model = fit([data[i] for i in members])  # @line L11
            if model is not None:
                models.append((model, members))
    return models, clusters  # @line L12
test_j_linkage.py 108 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/j-linkage/. The authors are listed in prov/ZDYX7K.jsonl.

import math
import random

from j_linkage import (cluster, fit_line_tls, j_linkage, jaccard_distance, line_through, locality_sample,
                       make_hypotheses, point_line_distance, preference_sets)

POINTS = [(0, 0), (1, 0), (2, 0), (3, 0), (4, 1), (4, 2), (4, 3), (1, 3)]
PAIRS = [(0, 1), (1, 7), (4, 5), (2, 4), (3, 6), (2, 3), (5, 6), (0, 7)]
HYPS = [line_through([POINTS[a], POINTS[b]]) for a, b in PAIRS]


def mask(hyp_numbers):
    return sum(1 << (h - 1) for h in hyp_numbers)


def planted(rng):
    pts = []
    for _ in range(30):
        x = rng.uniform(0, 10)
        pts.append((x, 0.5 * x + 1 + rng.gauss(0, 0.03)))
    for _ in range(30):
        x = rng.uniform(0, 10)
        pts.append((x, -x + 8 + rng.gauss(0, 0.03)))
    for _ in range(15):
        pts.append((rng.uniform(0, 10), rng.uniform(-3, 10)))
    return pts


def same_line(g, h, ang_tol=math.radians(2.0), off_tol=0.1):
    if g[0] * h[0] + g[1] * h[1] < 0:
        h = (-h[0], -h[1], -h[2])
    ang = math.atan2(abs(g[0] * h[1] - g[1] * h[0]), g[0] * h[0] + g[1] * h[1])
    return ang < ang_tol and abs(g[2] - h[2]) < off_tol


def test_jaccard_distance():
    assert jaccard_distance(0b0111, 0b0111) == 0.0
    assert jaccard_distance(0b0011, 0b1100) == 1.0
    assert jaccard_distance(0, 0) == 1.0
    assert abs(jaccard_distance(0b0111, 0b0110) - 1 / 3) < 1e-12
    assert abs(jaccard_distance(0b0111, 0b1110) - 0.5) < 1e-12


def test_example_preferences_and_merges():
    prefs = preference_sets(POINTS, HYPS, 0.1)
    assert prefs == [mask(s) for s in ([1, 6, 8], [1, 2, 6], [1, 4, 6], [1, 5, 6], [3, 4, 7], [3, 7], [3, 5, 7],
                                       [2, 8])]
    merges = []
    result = cluster(prefs, on_merge=lambda a, b, d: merges.append((list(a), list(b), round(d, 4))))
    assert merges == [([4], [5], 0.3333), ([4, 5], [6], 0.3333), ([0], [1], 0.5), ([0, 1], [2], 0.3333),
                      ([0, 1, 2], [3], 0.3333)]
    assert result == [([0, 1, 2, 3], mask([1, 6])), ([4, 5, 6], mask([3, 7])), ([7], mask([2, 8]))]
    models, _ = j_linkage(POINTS, 0.1, hypotheses=HYPS, m_min=3)
    assert [m for _, m in models] == [[0, 1, 2, 3], [4, 5, 6]]
    assert same_line(models[0][0], (0.0, 1.0, 0.0)) and same_line(models[1][0], (1.0, 0.0, -4.0))


def test_cluster_invariants():
    rng = random.Random(4)
    data = planted(rng)
    hyps = make_hypotheses(data, 150, 2.0, rng)
    prefs = preference_sets(data, hyps, 0.1)
    result = cluster(prefs)
    members = sorted(i for m, _ in result for i in m)
    assert members == list(range(len(data)))
    for m, ps in result:
        inter = prefs[m[0]]
        for i in m:
            inter &= prefs[i]
        assert ps == inter
        if len(m) > 1:
            assert ps != 0
    for a in range(len(result)):
        for b in range(a + 1, len(result)):
            assert result[a][1] & result[b][1] == 0


def test_locality_sampler():
    rng = random.Random(0)
    data = [(float(i), 0.0) for i in range(20)]
    near = 0
    for _ in range(300):
        idx = locality_sample(data, 3, 1.5, rng)
        assert len(set(idx)) == 3
        near += abs(idx[1] - idx[0]) <= 3
    assert near > 270
    assert len(make_hypotheses(data, 25, 1.0, random.Random(1))) == 25
    assert make_hypotheses(data[:1], 5, 1.0, random.Random(1)) == []


def test_planted_two_lines():
    truth = [line_through([(0, 1), (2, 2)]), line_through([(0, 8), (8, 0)])]
    for seed in range(3):
        data = planted(random.Random(seed))
        models, _ = j_linkage(data, 0.1, M=300, sigma=2.0, m_min=8, rng=random.Random(seed))
        assert len(models) == 2
        for t in truth:
            assert any(same_line(m, t) and len(mem) >= 28 for m, mem in models)


def test_tls_fit():
    pts = [(x, 2 * x + 1) for x in range(5)]
    assert same_line(fit_line_tls(pts), line_through([(0, 1), (1, 3)]), off_tol=1e-9)
    assert fit_line_tls([(1, 1)]) is None and fit_line_tls([(1, 1), (1, 1)]) is None
    assert point_line_distance((0.0, 1.0, -2.0), (5, 3)) == 1.0

History

Toldo and Fusiello presented J-linkage at ECCV 2008. They combined three ideas: the random hypotheses of RANSAC (Fischler and Bolles, 1981), the description of a point by the models it agrees with, and agglomerative clustering with the Jaccard distance. Earlier methods for several models, such as sequential RANSAC and the Hough transform, needed the number of models, a grid of parameters or a step that removes the points of each model found. Later methods, such as T-linkage, built on the idea of preference sets.

References

  1. Roberto Toldo and Andrea Fusiello, Robust multiple structures estimation with J-linkage, European Conference on Computer Vision (ECCV 2008), Lecture Notes in Computer Science 5302, 537-547, The sections on random sampling with locality, the preference set of a point, the Jaccard distance and the J-linkage clustering, and the experiments on lines, planes and homographies
  2. Richard Szeliski, Computer Vision: Algorithms and Applications, second edition, Springer, 2022, Chapter 8, the discussion of robust fitting and of fitting more than one model

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.average
  • a full proof of time.best
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • at least three sources
  • a scene preset for the example