Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
e4388cf6
Commit
e4388cf6
authored
Aug 14, 2015
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set a default for TextureInterpolation in extract_texture
parent
3a39a178
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/eos/render/texture_extraction.hpp
include/eos/render/texture_extraction.hpp
+2
-2
No files found.
include/eos/render/texture_extraction.hpp
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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment