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
f300e0f2
Commit
f300e0f2
authored
Feb 19, 2017
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the actual render.m file
parent
94aaf7a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
matlab/+eos/+render/private/render.cpp
matlab/+eos/+render/private/render.cpp
+1
-1
matlab/+eos/+render/render.m
matlab/+eos/+render/render.m
+16
-0
No files found.
matlab/+eos/+render/private/render.cpp
View file @
f300e0f2
...
...
@@ -66,7 +66,7 @@ MEX_DEFINE(extract_texture)(int nlhs, mxArray* plhs[], int nrhs, const mxArray*
render
::
extract_texture
(
mesh
,
affine_from_ortho
,
image
,
compute_view_angle
,
render
::
TextureInterpolation
::
NearestNeighbour
,
isomap_resolution
);
// Return the extracted texturemap:
// Return the extracted texture
map:
OutputArguments
output
(
nlhs
,
plhs
,
1
);
output
.
set
(
0
,
isomap
);
};
...
...
matlab/+eos/+render/render.m
0 → 100644
View file @
f300e0f2
function
[
framebuffer
,
depthbuffer
]
=
render
(
mesh
,
modelview_matrix
,
...
projection_matrix
,
image_width
,
image_height
,
texture
)
% RENDER Renders the given mesh in the given pose.
% [ framebuffer, depthbuffer ] = RENDER(mesh, modelview_matrix, ...
% projection_matrix, image_width, image_height, texture)
%
% Renders the mesh with given model-view and projection matrix, and given
% texture, and returns the rendered framebuffer as well as the depthbuffer.
%
% Please see the C++ documentation for the full description:
% http://patrikhuber.github.io/eos/doc/ (TODO: Update to v0.10.1!)
[
framebuffer
,
depthbuffer
]
=
render
(
'render'
,
mesh
,
modelview_matrix
,
...
projection_matrix
,
image_width
,
image_height
,
texture
);
end
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