A standard square is a normalized square coordinate region with side length 1, beginning at (0, 0). It provides a convenient intermediate domain for planar transformations. section 4.4.1
For a rectangular target, scaling maps the rectangle to the standard square. A projective transformation can then map that normalized square to four corresponding points in a photographed source image. section 4.4.1
The normalized coordinates simplify implementation:
- Use the corners (0, 0), (1, 0), (1, 1), and (0, 1). section 4.4.1
- Substitute these fixed coordinates into the transformation equations to reduce one large system into smaller solvable pieces. section 4.4.1
- Reuse the resulting formulas for g and h with each set of four source points. section 4.4.1
Phone-scanned document
To recover a flat rectangular picture from a phone photograph, process each target pixel through the rectangle-to-standard-square scaling step, then map the normalized coordinate into the photographed quadrilateral. section 4.4.1
Compare the photographed perspective with the corrected rectangular result. section 4.4.1
