Algorithm Search⌘K

Definitioncore

Isophote

Also called isophote analysis, isophote line.

A curve on a surface where the angle between the normal and a light direction is constant. Kinks or jumps in isophotes reveal curvature or tangent discontinuities.

An isophote of a surface is a curve on it along which the unit normal makes a constant angle with a fixed light direction, so that the surface has constant brightness along it under a directional light and a matte material. A family of isophotes for several angles shows the shading of the surface as a set of contour lines. Isophotes are a diagnostic, not an algorithm: they display a property of the normal field, and a designer reads them to find places where the surface is not smooth enough. They lose one order of smoothness with respect to the surface, so a break in curvature shows as a kink in the isophotes, and a break in the tangent plane shows as a jump.

Definition

Let r:D→R3r : D \to \mathbb{R}^3 be a regular parametric surface with unit normal n=ru×rv/∣ru×rv∣n = r_u \times r_v / |r_u \times r_v|. The mean curvature H=(k1+k2)/2H = (k_1 + k_2)/2 is taken with respect to this nn; this page needs only nn. Let ll be a fixed unit vector, the light direction, and put

f(u,v)=n(u,v)⋅l=cos⁡∠(n,l).f(u, v) = n(u, v) \cdot l = \cos \angle(n, l).

For c∈[−1,1]c \in [-1, 1], the isophote of level cc is the set {r(u,v):f(u,v)=c}\{ r(u, v) : f(u, v) = c \}. Under the Lambertian model with a directional light, the brightness at a point is proportional to max⁡(0,f)\max(0, f), so an isophote with c>0c > 0 is a curve of constant brightness. An isophote family is the set of isophotes for levels cj=cos⁡θjc_j = \cos \theta_j with equally spaced angles θj\theta_j, often drawn as alternating light and dark bands. Some systems use ∣f∣|f|, so that the result does not depend on the orientation of nn.

The isophotes depend only on nn and ll: they do not change when the surface is translated or scaled, and they do not depend on the position of the eye. The isophote of level 00 is the set where n⊥ln \perp l, which is the silhouette curve for a parallel view along ll.

Regularity on a smooth surface

Theorem. Let rr be of class CkC^k with k≥2k \ge 2. Then ff is of class Ck−1C^{k-1}. Near a point where f=cf = c and ∇f≠0\nabla f \ne 0, the isophote of level cc is a regular curve of class Ck−1C^{k-1}.

Proof. ru×rvr_u \times r_v is Ck−1C^{k-1} and not zero, so nn and ff are Ck−1C^{k-1}. Since k−1≥1k - 1 \ge 1 and ∇f≠0\nabla f \ne 0, the implicit function theorem gives a Ck−1C^{k-1} regular parametrization of {f=c}\{f = c\} near the point, and its image under the CkC^k immersion rr is a regular Ck−1C^{k-1} curve. □\square

The gradient is ∇f=(nu⋅l, nv⋅l)\nabla f = (n_u \cdot l,\ n_v \cdot l). Both nun_u and nvn_v are tangent to the surface, so ∇f=0\nabla f = 0 exactly when the tangential part of ll is orthogonal to the image of the differential of nn. Where K≠0K \ne 0 this image is the whole tangent plane, so ∇f=0\nabla f = 0 only where n=±ln = \pm l, at the brightest and darkest points, where an isophote shrinks to a point or crosses itself. On a planar region ff is constant, and there are no isophote curves at all, only a region with one level.

Regularity across a boundary between patches

Let two patches meet along a common boundary curve with GkG^k continuity, k≥1k \ge 1, in the sense of geometric continuity: after a regular reparametrization of one patch, the union is a CkC^k surface near the boundary, and each patch is C∞C^\infty up to the boundary.

Theorem. (a) If k≥2k \ge 2, then near a boundary point with ∇f≠0\nabla f \ne 0 each isophote is a Gk−1G^{k-1} curve. (b) If k=1k = 1, the isophotes are continuous across the boundary but in general have a corner there. (c) If the surface has a crease (G0G^0 but not G1G^1), the isophotes are in general not continuous across the boundary.

Proof. (a) Apply the theorem above to the reparametrized CkC^k union. Its isophotes are Ck−1C^{k-1} regular curves, so they are Gk−1G^{k-1} as point sets.

(b) Reparametrize so that the union is C1C^1 and the boundary is v=0v = 0, with patch −- in v≤0v \le 0 and patch ++ in v≥0v \ge 0. The normal is continuous, so ff is continuous, and each one-sided function f±f^\pm is smooth up to v=0v = 0. On the boundary f−=f+f^- = f^+, so the tangential derivatives agree: fu−=fu+=af^-_u = f^+_u = a. The cross derivatives b±=fv±=nv±⋅lb^\pm = f^\pm_v = n^\pm_v \cdot l may differ. Let pp be a boundary point with f(p)=cf(p) = c and a≠0a \ne 0. By the implicit function theorem, applied on each side to a smooth extension of f±f^\pm, the isophote on side ±\pm is a smooth curve that leaves pp transversally to the boundary with tangent t±=(−b±,a)t^\pm = (-b^\pm, a) in the parameter plane. So the isophote is continuous at pp. Because rur_u and rvr_v are continuous across v=0v = 0, t−t^- and t+t^+ give parallel tangents in space if and only if they are parallel in the plane, that is, if and only if

det⁡(t−,t+)=−b−a+b+a=a (b+−b−)=0.\det(t^-, t^+) = -b^- a + b^+ a = a\, (b^+ - b^-) = 0.

So an isophote that crosses the boundary transversally (a≠0a \ne 0) has a corner exactly when b+≠b−b^+ \ne b^-. If a=0a = 0, both one-sided isophotes are tangent to the boundary at pp. The jump b+−b−=(nv+−nv−)⋅lb^+ - b^- = (n^+_v - n^-_v) \cdot l involves only the tangential part of ll, because nv±n^\pm_v are both tangent to the common tangent plane. Where the curvature jumps, nv+≠nv−n^+_v \ne n^-_v, and the jump is nonzero for every light direction except those whose tangential part is orthogonal to nv+−nv−n^+_v - n^-_v.

(c) At a crease the one-sided normals n−n^- and n+n^+ differ at a boundary point pp, so f−(p)≠f+(p)f^-(p) \ne f^+(p) for every ll outside the plane {l:l⋅(n+−n−)=0}\{l : l \cdot (n^+ - n^-) = 0\}. Then the isophotes that arrive at pp from the two sides have different levels, and an isophote that reaches the boundary from one side does not continue at the same point on the other side. □\square

Hagen and his coauthors state the rule for parametric continuity: the isophotes of a CkC^k surface are Ck−1C^{k-1}. The version above uses geometric continuity, and part (b) says exactly when the order is lost.

Examples and non-examples

A curvature jump gives a corner

Let z=y2+max⁡(x,0)2z = y^2 + \max(x, 0)^2, with the chart r(x,y)=(x,y,z)r(x, y) = (x, y, z), the upward normal n=(−zx,−zy,1)/wn = (-z_x, -z_y, 1)/w, w=1+zx2+zy2w = \sqrt{1 + z_x^2 + z_y^2}, and l=(1,1,1)/3l = (1, 1, 1)/\sqrt 3. The surface is C1C^1 across x=0x = 0, and the curvature in the xx direction jumps from 00 to 22 there.

  • On the left, x≤0x \le 0: f=(1−2y)/(31+4y2)f = (1 - 2y)/(\sqrt 3 \sqrt{1 + 4y^2}) does not depend on xx, so every isophote is a line y=consty = \text{const}.
  • On the right, x≥0x \ge 0: f=(1−2x−2y)/(31+4x2+4y2)f = (1 - 2x - 2y)/(\sqrt 3 \sqrt{1 + 4x^2 + 4y^2}).

At the origin, f=1/3f = 1/\sqrt 3 on both sides, and the gradient of the denominator is zero there, so ∇f−=(0,−2/3)\nabla f^- = (0, -2/\sqrt 3) and ∇f+=(−2/3,−2/3)\nabla f^+ = (-2/\sqrt 3, -2/\sqrt 3). The isophote of level 1/31/\sqrt 3 arrives from the left along y=0y = 0, with direction (1,0)(1, 0), and leaves on the right with direction (1,−1)/2(1, -1)/\sqrt 2. Since rx=(1,0,0)r_x = (1, 0, 0) and ry=(0,1,0)r_y = (0, 1, 0) at the origin, the corner in space is 45°45°. In the notation of the proof, the boundary direction is yy, a=−2/3a = -2/\sqrt 3, and the cross derivatives are 00 and −2/3-2/\sqrt 3.

A smooth surface gives smooth isophotes

On the paraboloid z=x2+y2z = x^2 + y^2, which is C∞C^\infty, with l=(0,0,1)l = (0, 0, 1), f=1/1+4x2+4y2f = 1/\sqrt{1 + 4x^2 + 4y^2}, and the isophotes are the circles x2+y2=(1/c2−1)/4x^2 + y^2 = (1/c^2 - 1)/4 for 0<c<10 < c < 1. At c=1c = 1 the isophote is the single point at the origin, where n=ln = l and ∇f=0\nabla f = 0.

Non-example: a crease

Let z=y2+max⁡(x,0)z = y^2 + \max(x, 0), which has a crease along x=0x = 0, with the same ll. On the left, f=(1−2y)/(31+4y2)f = (1 - 2y)/(\sqrt 3 \sqrt{1 + 4y^2}), and on the right n=(−1,−2y,1)/2+4y2n = (-1, -2y, 1)/\sqrt{2 + 4y^2} and f=−2y/(32+4y2)f = -2y/(\sqrt 3 \sqrt{2 + 4y^2}). The isophote of level 1/31/\sqrt 3 reaches the crease at y=0y = 0 from the left. On the right the level 1/31/\sqrt 3 would need −2y=2+4y2-2y = \sqrt{2 + 4y^2}, which has no solution, since 4y2<2+4y24y^2 < 2 + 4y^2. So this isophote ends at the crease.

Non-example: a plane

On a plane ff is constant, so for a given ll the plane is one whole region of one level, and isophotes carry no information. The same holds on any part of a surface where the normal is constant.

  • Reflection lines. Mirror images of straight light lines in the surface. They depend on the eye position as well as on the normal; see reflection lines.
  • Highlight lines. Points where the surface normal meets a fixed line light source, a variant that also depends only on positions and normals.
  • Silhouette curve. The isophote of level 00; see silhouette curve of a surface.
  • Curvature comb. The analogous diagnostic for curves; see curvature comb.
  • Tangent plane continuity. The G1G^1 condition between patches that part (b) of the theorem assumes; see tangent plane continuity.
  • Computing isophotes. A program samples ff on a grid of the parameter domain and extracts level curves by marching squares, or traces each level curve with a predictor and corrector step on f=cf = c. Both are standard contouring methods; the isophote itself is the diagnostic that they draw.

References

  1. Thomas Poeschl, Detecting surface irregularities using isophotes, Computer Aided Geometric Design 1(2), 1984, pp. 163 to 168 (isophotes as lines of equal light intensity, and their use to detect irregularities of surfaces)
  2. Nicholas M. Patrikalakis and Takashi Maekawa, Shape Interrogation for Computer Aided Design and Manufacturing, Springer, 2002, Chapter 8, Curve and Surface Interrogation (Section 8.1.2.2, isophotes)
  3. Hans Hagen, Stefanie Hahmann and coauthors, Surface interrogation algorithms, IEEE Computer Graphics and Applications 12(5), 1992, isophotes and reflection lines as interrogation tools, and the statement that they lose one order of continuity with respect to the surface

Where this leads

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 proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/MNGCC1/text.yaml