-
GreyscaleEscala de grises
Y′ = 0.2126 R′ + 0.7152 G′ + 0.0722 B′Y′ = 0,2126 R′ + 0,7152 G′ + 0,0722 B′
Luma with the coefficients of Recommendation BT.709, applied to the sRGB values without linearising them. Transparent pixels are composited over white: I = α·Y′ + (1 − α)·255
(International Telecommunication Union, 2015).Luma con los coeficientes de la Recomendación BT.709, aplicada a los valores sRGB sin linealizar. Los píxeles transparentes se componen sobre blanco: I = α·Y′ + (1 − α)·255
(International Telecommunication Union, 2015).
-
Gaussian smoothingSuavizado gaussiano
Gσ(u) ∝ e−u²/2σ², |u| ≤ ⌈3σ⌉
The 2D kernel is the product of two 1D kernels, so it is applied in two passes (horizontal and vertical). It is normalised to add up to 1; the borders repeat the last pixel
(Gonzalez & Woods, 2018).El núcleo 2D es producto de dos 1D, así que se aplica en dos pasadas (horizontal y vertical). Se normaliza para que sume 1; los bordes repiten el último píxel
(Gonzalez y Woods, 2018).
-
Otsu thresholdUmbral de Otsu
t* = arg maxt σB²(t), σB² = ω0ω1(μ0 − μ1)², η = σB²(t*) / σT²
Picks the cut that maximises the variance between the two classes of the histogram. η ∈ [0, 1] measures separability: close to 1, the image is clearly bimodal
(Otsu, 1979).Elige el corte que maximiza la varianza entre las dos clases del histograma. η ∈ [0, 1] mide la separabilidad: cerca de 1, la imagen es claramente bimodal
(Otsu, 1979).
-
Canny edgesBordes de Canny
|∇I| = √(Gx² + Gy²), θ = atan2(Gy, Gx) ∈ {0°, 45°, 90°, 135°}
Sobel gradient on the smoothed image (it approximates the derivative of a Gaussian), non-maximum suppression along θ and hysteresis with two thresholds: a weak edge is kept only if it touches a strong one
(Canny, 1986; Gonzalez & Woods, 2018).Gradiente de Sobel sobre la imagen suavizada (aproxima la derivada de una gaussiana), supresión de no-máximos a lo largo de θ e histéresis con dos umbrales: se conserva un borde débil solo si toca uno fuerte
(Canny, 1986; Gonzalez y Woods, 2018).
-
Zhang–Suen skeletonEsqueleto de Zhang–Suen
delete p ifborrar p si 2 ≤ B(p) ≤ 6, A(p) = 1, p2p4p6 = 0, p4p6p8 = 0
B(p): neighbours set to 1; A(p): 0→1 transitions around p. The second sub-iteration uses p2p4p8 = 0 and p2p6p8 = 0. It repeats until nothing changes; a 1 px line remains
(Zhang & Suen, 1984).B(p): vecinos a 1; A(p): transiciones 0→1 alrededor de p. La segunda subiteración usa p2p4p8 = 0 y p2p6p8 = 0. Se repite hasta que no cambia nada; queda una línea de 1 px
(Zhang y Suen, 1984).
-
Marching squares
casecaso = 8·tl + 4·tr + 2·br + bl ∈ {0 … 15}
The 2D version of marching cubes: every cell of 2×2 pixel centres falls into one of 16 cases. Vertices land on edge midpoints (a ½ px grid). The ambiguous cases 5 and 10 are resolved by joining the ink diagonally (8-connectivity)
(Lorensen & Cline, 1987).Versión 2D de marching cubes: cada celda de 2×2 centros de píxel se clasifica en 16 casos. Los vértices caen en los puntos medios de las aristas (rejilla de ½ px). Los casos ambiguos 5 y 10 se resuelven uniendo la tinta en diagonal (conectividad 8)
(Lorensen y Cline, 1987).
-
Douglas–Peucker simplificationSimplificación de Douglas–Peucker
keepconservar vi ifsi d(vi, a̅b̅) > ε
Recursively, the vertex farthest from the segment joining the endpoints is kept if it is more than ε away. Guarantee: every original vertex lies within ε of the simplified line (see “error per stage” in the metrics)
(Douglas & Peucker, 1973).Recursivamente, se conserva el vértice más alejado del segmento que une los extremos si supera ε. Garantía: todo vértice original queda a ≤ ε de la línea simplificada (ver «error por etapa» en las métricas)
(Douglas y Peucker, 1973).
-
Joining into one lineUnión en un solo trazo
L = Σ Lstrokestrazos + 2·w(MST)
Prim's minimum spanning tree between strokes, walked depth-first: every bridge is crossed twice. Any closed route that visits every stroke jumps at least w(MST), so the bridges add up to at most twice the minimum, up to the error in estimating the distance between strokes. Nearest neighbour has no such guarantee
(Prim, 1957; Rosenkrantz et al., 1977).Árbol de expansión mínima de Prim entre trazos, recorrido en profundidad: cada puente se cruza dos veces. Cualquier recorrido cerrado que visite todos los trazos salta al menos w(MST), así que los puentes suman como mucho el doble del mínimo, salvo el error de estimar la distancia entre trazos. El vecino más cercano no tiene esa garantía
(Prim, 1957; Rosenkrantz et al., 1977).
-
Arc-length resamplingRemuestreo por longitud de arco
sj = j·L/N, j = 0 … N−1
The N points are spread at equal distances along the route. That makes t = j/N proportional to the length travelled, which is the parametrisation the Fourier series of the contour assumes
(Zahn & Roskies, 1972).Los N puntos se reparten a igual distancia a lo largo del recorrido. Así t = j/N es proporcional a la longitud recorrida, que es la parametrización que asume la serie de Fourier del contorno
(Zahn y Roskies, 1972).
-
Hausdorff distanceDistancia de Hausdorff
H(A, B) = max{ supa∈A d(a, B), supb∈B d(b, A) }
It is the worst deviation between two curves. Here it is evaluated at the vertices with exact point–segment distances, which gives a lower bound h; the true value satisfies h ≤ H ≤ h + ℓ/2, with ℓ the longest segment. Both bounds are shown
(Huttenlocher et al., 1993).Es la peor desviación entre dos curvas. Aquí se evalúa en los vértices con distancias punto–segmento exactas, lo que da una cota inferior h; la verdadera cumple h ≤ H ≤ h + ℓ/2, con ℓ el tramo más largo. Se muestran ambas cotas
(Huttenlocher et al., 1993).
-
Points → complex numbersPuntos → números complejos
zn = xn + i·yn, n = 0 … N−1
The line isEl trazo son N evenly spaced points. Origin at the centre of the image, y axis pointing up
(Zahn & Roskies, 1972; Granlund, 1972).puntos equiespaciados. Origen en el centro de la imagen, eje y hacia arriba
(Zahn y Roskies, 1972; Granlund, 1972).
-
Discrete transform (DFT, via the FFT)Transformada discreta (DFT, con FFT)
ck = 1N Σn=0N−1 zn · e−2πi·k·n/N, k = −N/2 … N/2−1
The radix-2 FFT computes the N coefficients with (N/2)·log₂N complex multiplications instead of N². It gives exactly the DFT; the tests check it against the direct sum
(Cooley & Tukey, 1965; Oppenheim & Schafer, 2010).La FFT radix-2 calcula los N coeficientes con (N/2)·log₂N multiplicaciones complejas en lugar de N². Da exactamente la DFT; los tests lo comprueban contra la suma directa
(Cooley y Tukey, 1965; Oppenheim y Schafer, 2010).
-
Fourier seriesSerie de Fourier
z(t) = Σk ck · e2πi·k·t, t ∈ [0, 1)
With every term, z(n/N) = zn exactly. Between samples it is a trigonometric interpolant; the Nyquist term (k = −N/2) is assigned to −N/2 by convention
(Stein & Shakarchi, 2003).Con todos los términos, z(n/N) = zn exactamente. Entre muestras es un interpolante trigonométrico; el término de Nyquist (k = −N/2) se asigna a −N/2 por convenio
(Stein y Shakarchi, 2003).
-
Every term is a circleCada término es un círculo
cke2πikt = rk(cos θk + i·sin θk), θk = 2πkt + φk
With ck = rkeiφk and Euler's formula, every term is a vector of length rk that starts at angle φk and makes k turns per cycle (k < 0: clockwise). It is the same idea as the epicycles of ancient astronomy
(Stein & Shakarchi, 2003; Hanson, 1960).Con ck = rkeiφk y la fórmula de Euler, cada término es un vector de longitud rk que parte del ángulo φk y da k vueltas por ciclo (k < 0: sentido horario). Es la misma idea que los epiciclos de la astronomía antigua
(Stein y Shakarchi, 2003; Hanson, 1960).
-
Truncating to M circlesTruncar a M círculos
x(t) = ΣM rk cos θk, y(t) = ΣM rk sin θk
The first M terms in the chosen order are used; c0, the centroid, is always included. By Parseval's theorem, the point-to-point RMS error is exactly √(Σdropped rk²) =Se usan los M primeros términos en el orden elegido; c0, el centroide, va siempre incluido. Por el teorema de Parseval, el error RMS punto a punto es exactamente √(Σdescartados rk²) =
— px. Keeping the ones with the largest radius minimises that error for every M
(Oppenheim & Schafer, 2010).Quedarse con los de mayor radio minimiza ese error para cada M
(Oppenheim y Schafer, 2010).
-
Corners, convergence and GibbsEsquinas, convergencia y Gibbs
|ck| = O(1/k²) ⇒ supt |z(t) − zM(t)| → 0
The line is closed, so z(t) is continuous; at corners only the derivative jumps. That is why the coefficients decay like 1/k², the series converges uniformly and the ripples next to the corners narrow and shrink as M grows
(Stein & Shakarchi, 2003). The Gibbs phenomenon, an overshoot of ≈ 9 % of the jump that never goes away, only happens where the function itself jumps: here, in the speed of the tip, not in the figure
(Hewitt & Hewitt, 1979).El trazo es cerrado, así que z(t) es continua; en las esquinas solo salta la derivada. Por eso los coeficientes decaen como 1/k², la serie converge uniformemente y las ondulaciones junto a las esquinas se estrechan y bajan al aumentar M
(Stein y Shakarchi, 2003). El fenómeno de Gibbs, una sobreoscilación de ≈ 9 % del salto que no desaparece, solo ocurre donde la propia función salta: aquí, en la velocidad de la punta, no en la figura
(Hewitt y Hewitt, 1979).
-
Shape descriptorsDescriptores de forma
|ck| / |c1| invariant to translation, rotation, scale and startinvariante a traslación, rotación, escala e inicio
The coefficients describe the shape: removing c0 (position), dividing by |c1| (scale) and taking moduli (rotation and starting point) lets contours be compared. It is one of the foundations of shape recognition
(Zahn & Roskies, 1972; Kuhl & Giardina, 1982).Los coeficientes describen la forma: quitando c0 (posición), dividiendo por |c1| (escala) y usando módulos (rotación y punto de inicio) se comparan contornos. Es una de las bases del reconocimiento de formas
(Zahn y Roskies, 1972; Kuhl y Giardina, 1982).