Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering OpenCV 3 - Second Edition

You're reading from  Mastering OpenCV 3 - Second Edition

Product type Book
Published in Apr 2017
Publisher
ISBN-13 9781786467171
Pages 250 pages
Edition 2nd Edition
Languages
Author (1):
Jason Saragih Jason Saragih
Profile icon Jason Saragih
Toc

AAM search and fitting


With our fresh, new combined shape and texture model, we have found a nice way to describe how a face could change not only in shape, but also in appearance. Now, we want to find which set of p shape and λ appearance parameters will bring our model as close as possible to a given input image I(x). We could naturally calculate the error between our instantiated model and the given input image in the coordinate frame of I(x), or map the points back to the base appearance and calculate the difference there. We are going to use the latter approach. This way, we want to minimize the following function:

In the preceding equation, S0 denotes the set of pixels x is equal to (x,y)T that lie inside the AAMs base mesh, A0(x) is our base mesh texture, Ai(x) is appearance images from PCA, and W(x;p) is the warp that takes pixels from the input image back to the base mesh frame.

Several approaches have been proposed for this minimization through years of studying. The first idea...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime