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

Black line around the edges #103

Open
wli75 opened this issue Feb 13, 2017 · 7 comments
Open

Black line around the edges #103

wli75 opened this issue Feb 13, 2017 · 7 comments

Comments

@wli75
Copy link

wli75 commented Feb 13, 2017

I'm trying to render the face model on top of the image, but there's a subtle black line around the edges. Do you have any recommendations as to how to remove it? Thank you.
black_line

@patrikhuber
Copy link
Owner

I don't think I've encountered that before. It looks like it could either be a rounding/1-pixel inaccuracy in the renderer, or something with the texturing/texture extraction. I wonder where it's coming from - can you render the model onto a white background? If the black edge is then still there, then it's most likely coming from the texturing.

@wli75
Copy link
Author

wli75 commented Feb 13, 2017

The black edge is still there with a white background, but the isomap looks fine to me.
black_line
isomap

@patrikhuber
Copy link
Owner

Ok, interesting. Can you provide the input landmarks and image, and which fitting exactly you ran and with which parameters?

Does it occur with every image/rendering, or only with a few?

I'm actually not using eos's rendering much, you can also just export an obj and then use MeshLab/Blender for rendering, or use some OpenGL rendering, which I'm sure will render it better than eos's software rendering.

@junliu-cn
Copy link

@patrikhuber Do you have any OpenGL rendering code ? Simple demo code is enough.

@patrikhuber
Copy link
Owner

@ChrisLuu I don't have any OpenGL code. But it should be easy to do, as all matrices should be OpenGL compatible, and glm works well with OpenGL.

@junliu-cn
Copy link

@patrikhuber Alright, I not familiar with OpenGL but I will have a try.Thanks.

@wli75
Copy link
Author

wli75 commented Mar 25, 2017

Apologies for the delay. The black line issue happens to all images. I guess it's a problem with the texture. For now I'm still using eos's rendering and doing something like this

for each vertex in mesh:
   project the vertex onto the 2d image
   assign the pixel color as the vertex colour

I don't know if this method is favourable. I'll experiment more with the texture some time in late-April.

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

No branches or pull requests

3 participants