-
-
Notifications
You must be signed in to change notification settings - Fork 911
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 spots on the texture image #961
Comments
Indeed, this can happen. This would be quite easy to fix. Pls contribute if you have time. |
I've made some attempts, without changing the MVS format, I think it's possible to give preference to views where the faces are projected closer to the center of the photo or to remove views based on color, but I don't think these are good solutions, they may reduce the quality of the textures and are not very accurate. I think I need to introduce distortion parameters for the MVS format. But you mentioned it's would be quite easy to fix, my programming and math skills are average, so I hope I can ask you for some ideas. |
Hi! I'll give a shot to solving this issue. I'll try to create a mask that would match the image distortion so that TextureMesh would only use pixels from within the mask. |
Thanks for the suggestion, I misunderstood mask and thought it would only be used in dense restruction, I will try it. |
I filled a white picture and undistorted it, using it as a mask into TextureMesh, there was no significant improvement to the problem, I made the black part of the mask inflate a few pixels later, the black spots were completely gone. |
PR #968 is automatically generating valid image masks by removing black regions around the undistorted image |
Undistorted images sometimes have black pixels at the edges, but OpenMVS still uses these parts to generate the texture. After seam leveling as if they were smeared, a large black spot is formed on the texture image.
The text was updated successfully, but these errors were encountered: