as lying on an edge if the patch at its left is different from the patch at its right. dc dc dl dr P1 (p) = max θ dθ,1 c (p) PAF 2 (p) = max θ AF(dθ,1 s (p)) AF ∈ {min, max, mean} dθ,1 s = {dθ,1 l , dθ,1 c , dθ,1 r } with patch differences: centered on p: dθ,δ c (p) = d P(pl,θ,δ), P(pr,θ,δ) upwind left: dθ,δ l (p) = d P(p), P(pl,θ,δ) upwind right: dθ,δ r (p) = d P(p), P(pr,θ,δ) with d(P(pi ), P(pj )) = P(pi ) − P(pj ) 2 and θ ∈ {0◦, 45◦, 90◦, 135◦} and δ the distance between the pixels along the line. 15 / 30