| 138 | } |
| 139 | |
| 140 | static void CopyPoint( // copy a point from oldshape to shape |
| 141 | Shape& shape, // io |
| 142 | const Shape& oldshape, // in |
| 143 | int i, // in |
| 144 | int iold) // in |
| 145 | { |
| 146 | shape(i, IX) = oldshape(iold, IX); |
| 147 | shape(i, IY) = oldshape(iold, IY); |
| 148 | } |
| 149 | |
| 150 | static Shape Shape5( // return a 5 point shape |
| 151 | const Shape& pinned, // in: pinned landmarks, canonical 5 points are best |