CSCI 574 Computer Vision Project
Elaine (Eun Young) Kang : elkang@iris.usc.edu
[Introduction] [Approach] [Result ] [Analysis]
If the result is 4 edge cycle, assume it as a top_face and check if it makes paralleogram.
If the result is 4 edge non-cycle, try to link the open edge and check if it makes paralleogram.
If the result is 3 edge non-cycle, link the ends of the edges and check if it makes parallelogram.
For all cases, they make almost parallelogram, hypothesize it top-face.
If the result is 2 edge path, check if two edges are perpendicular.
If they are, make one additonal parallelogram and hypothesize it top-face.
- From Z value of one point of bottom face Z(Z=50) and the corresponding point of top face,
we can get the height difference. Using the ratio of pixel to mm, get the Z value
of the top face.
- From the (u,v), image coordinate, and Z, we get (x,y) using the calibration matrix.