Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gigadeplex opened this issue Oct 19, 2018 · 1 comment
Open

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

gigadeplex opened this issue Oct 19, 2018 · 1 comment

Comments

@gigadeplex
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants