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
df4ca341
Commit
df4ca341
authored
9 years ago
by
patrikhuber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added isomap extraction to fit-model
parent
fef69879
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
examples/fit-model.cpp
examples/fit-model.cpp
+9
-2
No files found.
examples/fit-model.cpp
View file @
df4ca341
...
...
@@ -17,11 +17,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "eos/core/Landmark.hpp"
#include "eos/core/LandmarkMapper.hpp"
#include "eos/fitting/affine_camera_estimation.hpp"
#include "eos/fitting/linear_shape_fitting.hpp"
#include "eos/render/utils.hpp"
#include "eos/
core/Landmark
.hpp"
#include "eos/
render/texture_extraction
.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
...
...
@@ -218,7 +219,13 @@ int main(int argc, char *argv[])
// Save the output image:
outputfile
.
replace_extension
(
".png"
);
cv
::
imwrite
(
outputfile
.
string
(),
outimg
);
cout
<<
"Finished fitting and wrote result image "
<<
outputfile
.
string
()
<<
"."
<<
endl
;
// Extract the texture and save the extracted texture map (isomap):
Mat
isomap
=
render
::
extract_texture
(
mesh
,
affine_cam
,
image
,
render
::
TextureInterpolation
::
NearestNeighbour
);
outputfile
.
replace_extension
(
".isomap.png"
);
cv
::
imwrite
(
outputfile
.
string
(),
isomap
);
cout
<<
"Finished fitting and wrote result image and isomap "
<<
outputfile
.
string
()
<<
"."
<<
endl
;
return
EXIT_SUCCESS
;
}
This diff is collapsed.
Click to expand it.
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