Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Torenvliet
eos
Commits
e4388cf6
Commit
e4388cf6
authored
9 years ago
by
Patrik Huber
Browse files
Options
Downloads
Patches
Plain Diff
Set a default for TextureInterpolation in extract_texture
parent
3a39a178
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/eos/render/texture_extraction.hpp
+2
-2
2 additions, 2 deletions
include/eos/render/texture_extraction.hpp
with
2 additions
and
2 deletions
include/eos/render/texture_extraction.hpp
+
2
−
2
View file @
e4388cf6
...
...
@@ -60,7 +60,7 @@ inline cv::Mat extract_texture(Mesh mesh, cv::Mat affine_camera_matrix, cv::Mat
* @param[in] isomap_resolution The resolution of the generated isomap. Defaults to 512x512.
* @return The extracted texture as isomap (texture map).
*/
inline
cv
::
Mat
extract_texture
(
Mesh
mesh
,
cv
::
Mat
affine_camera_matrix
,
cv
::
Mat
image
,
TextureInterpolation
mapping_type
,
int
isomap_resolution
=
512
)
inline
cv
::
Mat
extract_texture
(
Mesh
mesh
,
cv
::
Mat
affine_camera_matrix
,
cv
::
Mat
image
,
TextureInterpolation
mapping_type
=
TextureInterpolation
::
NearestNeighbour
,
int
isomap_resolution
=
512
)
{
// Render the model to get a depth buffer:
cv
::
Mat
depthbuffer
;
...
...
@@ -86,7 +86,7 @@ inline cv::Mat extract_texture(Mesh mesh, cv::Mat affine_camera_matrix, cv::Mat
* @param[in] isomap_resolution The resolution of the generated isomap. Defaults to 512x512.
* @return The extracted texture as isomap (texture map).
*/
inline
cv
::
Mat
extract_texture
(
Mesh
mesh
,
cv
::
Mat
affine_camera_matrix
,
cv
::
Mat
image
,
cv
::
Mat
depthbuffer
,
TextureInterpolation
mapping_type
,
int
isomap_resolution
=
512
)
inline
cv
::
Mat
extract_texture
(
Mesh
mesh
,
cv
::
Mat
affine_camera_matrix
,
cv
::
Mat
image
,
cv
::
Mat
depthbuffer
,
TextureInterpolation
mapping_type
=
TextureInterpolation
::
NearestNeighbour
,
int
isomap_resolution
=
512
)
{
assert
(
mesh
.
vertices
.
size
()
==
mesh
.
texcoords
.
size
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment