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 add 6 for Sdf size in get3DGaussNewton Implementation ? #7

Open
JChan2787 opened this issue Feb 12, 2020 · 1 comment

Comments

@JChan2787
Copy link

Per your implementation of your get3DGaussNewton function, one of the first things you create is std::vector Sdf. I am a little stumped as to why you are adding 6 more Mat objects on top of the size coming from blendshapes, as referenced from the line below:

std::vector<Mat<float>> Sdf(modes3.size() + 6, Mat<float>(curShape.height, curShape.width));

My initial guess is it could be tied to the number of blendshape objects you are using when I referenced the Mesh folder under Assets. Could this imply that we will need to increment this value should we choose to add more blendshapes? Could you please clarify?

Thank you.

@MarekKowalski
Copy link
Owner

Hi,
Thanks for the question. As you can see in lines 232-240 in the same file, the additional 6 places are for the gradients of rotation and translation of the 3D shape.

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