Compute texture patch#988
Open
MikeCernea wants to merge 3 commits into
Open
Conversation
cdcseacave
requested changes
May 15, 2023
| return volume; | ||
| } | ||
|
|
||
| String Mesh::PlotTexturePatch(const FIndex dbgFaceId, FaceIdxArr& face_patch_ids, cv::Mat& imgOut, const bool bSaveToFile) const { |
Owner
There was a problem hiding this comment.
you probably want const face_patch_ids
| Window window; | ||
| ImageArr images; // scene photos | ||
| ImageArr textures; // mesh textures | ||
| MVS::Mesh::FaceIdxArr face_patch_ids; |
Owner
There was a problem hiding this comment.
why placing it here as you seem to be using it only in Scene::CastRay?
| } | ||
| #endif | ||
|
|
||
| uint32_t Mesh::ComputeTexturePatchFaces(FaceIdxArr& face_patch_ids) const { |
Owner
There was a problem hiding this comment.
short description of what the fucntion does and what returns
| return volume; | ||
| } | ||
|
|
||
| String Mesh::PlotTexturePatch(const FIndex dbgFaceId, FaceIdxArr& face_patch_ids, cv::Mat& imgOut, const bool bSaveToFile) const { |
Owner
There was a problem hiding this comment.
short description of what the fucntion does and what returns
cd00cbe to
797b59e
Compare
4831b8a to
6871967
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a method to calculate texture patches and added a feature in Viewer to visualize the texture for a selected face.
In Viewer open a scene with cameras, then drag and drop the obj file for textured mesh.