MarekKowalski / HoloFace

A framework for facial augmented reality on HoloLens
MIT License
99 stars 16 forks source link

[Question] Why does this project use seperate Mat template? #6

Open gigadeplex opened 5 years ago

gigadeplex commented 5 years ago

Couple of questions here.. Looking at this project it seems that it is over complicated, for example, when calculating the rotation vector, why not just use opencv's rodrigues function? also why didn't you guys just use Eigen matrices and normal float/double arrays instead of creating this Mat template? I'm new to cpp, and I'm trying to recreate getting texture coords for the candide model in android as JNI, am I better of following python steps rather than this?

MarekKowalski commented 5 years ago

Hi,

As for the rotation vector: there is no OpenCV in this project, so that's probably the reason ;-) As for the Mat template, it's a template we've been using internally and had most of the code already implemented in it. It could probably be replaced with Eigen.

As for getting the texture coords: the fitter in this project is a bit different than the one in the Python project. Instead of the orthographic projection used in Python, it uses a perspective projection. If all you want is the texture coordinates you will probably be happier with the Python version.

Thanks,

Marek