SLIDE 1
Project by Arie Kozak Given photograph with sheet of paper with - - PowerPoint PPT Presentation
Project by Arie Kozak Given photograph with sheet of paper with - - PowerPoint PPT Presentation
Project by Arie Kozak Given photograph with sheet of paper with text only, infer shape of the surface and plot it in 3d. Single (infinite) light source from above, using reflectance map (paper is nearly Lambertian 1 surface): ,
SLIDE 2
SLIDE 3
ο¨ Mark it using personal biological visual
system.
SLIDE 4
ο¨ Divide the image into two connected sub-
images divided by red border.
SLIDE 5
ο¨ Use thresholding twice: after high pass and
- riginal image. Text found in the intersection.
SLIDE 6
ο¨ Constant albido assumption for ink, doesnβt
work, use (cubic) interpolation.
ο¨ Smooth image with Gaussian kernel before to
reduce βsharpening effectβ (lateral inhibition), and also after.
SLIDE 7
ο¨ Maximum intensity point in image => p = q = 0. Use
parabolic approximation according to B.K.P. Horn's chapter 11: πΌ π¦, π§ = πΌ0 + 0.5(ππ¦2 + ππ¦π§ + ππ§2) π = ππΌ ππ¦ = ππ¦ + ππ§, π = ππΌ ππ§ = ππ§ + ππ¦ πΉ π¦, π§ = 1 2π½(π¦, π§)2 = 0.5 π2 + π2 + 1 = 0.5 π2 + π2 π¦2 + π + π ππ¦π§ + 0.5 π2 + π2 π§2 + 1
SLIDE 8
πΉπ¦π¦ = π2 + π2 πΉπ§π§ = π2 + π2 πΉπ¦π§ = π + π π
ο¨ Solution
π4 πΉπ§π§
2 β 2πΉπ§π§πΉπ¦π¦ + πΉπ¦π¦ 2 + 4πΉπ¦π§ 2
+ π2 β2πΉπ§π§πΉπ¦π§
2 β 2πΉπ¦π§ 2πΉπ¦π¦ + πΉπ¦π§ 4 = 0
ο¨ Only solutions with a<0,c<0 are relevant.
SLIDE 9
ο¨ Identify βclustersβ β areas of local
maxima/minima. All points within certain %
- f highest intensity values.
SLIDE 10
ο¨ Start with H = 0, perform for each cluster
separately.
SLIDE 11
ο¨ Find closest clusters A and B; B with known
height.
ο¨ For points in A close to B, calculate expected
height according to B.
ο¨ Find closest points using Voronoi diagram.
SLIDE 12
ο¨ Find relative height between A and B. If ππ, ππ
is current and expected height of point i accordingly, find relative height x, such that error will be minimal: π π¦ = (ππ + π¦ β ππ)2β πππ
π π
π¦ = 1 π (ππ β ππ)
π π
SLIDE 13
ο¨ Find direction v, in which H is constant =>
derivative is 0. βπ: ππ β π€ = 0, ππ = (ππ, ππ)
ο¨ Find least square line, its directions is
perpendicular to v.
SLIDE 14
ο¨ If v is new x-axis, calculate projection of all
points to YZ plane.
SLIDE 15
ο¨ Use polyline approximation. Given number of
desired points = number of clusters + 2, the desired error can be approximated using binary search.
ο¨ Example β 5 points:
SLIDE 16
ο¨ Finally, use spline, on polyline edge points.
SLIDE 17
ο¨ Not perfect, usually works sufficiently.
SLIDE 18
SLIDE 19