sai-bi / FaceAlignment

Face Alignment by Explicit Shape Regression
MIT License
340 stars 205 forks source link

why use the two ProjectShape and ReProjectShape functions? #10

Open kingvision opened 9 years ago

kingvision commented 9 years ago

i have a lillte puzzle that you use the two ProjectShape and ReProjectShape functions in the code. can you give me some ideas that how to understand the two functions?

sai-bi commented 9 years ago

Project shape: locate face landmarks relative to the center of the bounding box (build a coordinate system at the center of the bounding box) ReProject shape: with the coordinate of a landmark relative to the center of the bounding box, get its real coordinates in image