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
2a83a5f6
Commit
2a83a5f6
authored
Nov 21, 2016
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added inline to edge fitting methods
parent
27eefe40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/eos/fitting/closest_edge_fitting.hpp
include/eos/fitting/closest_edge_fitting.hpp
+3
-3
No files found.
include/eos/fitting/closest_edge_fitting.hpp
View file @
2a83a5f6
...
...
@@ -69,7 +69,7 @@ namespace eos {
* @param[in] enable_backculling When culling is on, rays intersecting triangles from the back will be discarded.
* @return Whether the ray intersects the triangle, and if yes, including the distance.
*/
std
::
pair
<
bool
,
boost
::
optional
<
float
>>
ray_triangle_intersect
(
const
glm
::
vec3
&
ray_origin
,
const
glm
::
vec3
&
ray_direction
,
const
glm
::
vec3
&
v0
,
const
glm
::
vec3
&
v1
,
const
glm
::
vec3
&
v2
,
bool
enable_backculling
)
inline
std
::
pair
<
bool
,
boost
::
optional
<
float
>>
ray_triangle_intersect
(
const
glm
::
vec3
&
ray_origin
,
const
glm
::
vec3
&
ray_direction
,
const
glm
::
vec3
&
v0
,
const
glm
::
vec3
&
v1
,
const
glm
::
vec3
&
v2
,
bool
enable_backculling
)
{
using
glm
::
vec3
;
const
float
epsilon
=
1e-6
f
;
...
...
@@ -122,7 +122,7 @@ std::pair<bool, boost::optional<float>> ray_triangle_intersect(const glm::vec3&
* @param[in] R The rotation (pose) under which the occluding boundaries should be computed.
* @return A vector with unique vertex id's making up the edges.
*/
std
::
vector
<
int
>
occluding_boundary_vertices
(
const
eos
::
render
::
Mesh
&
mesh
,
const
morphablemodel
::
EdgeTopology
&
edge_topology
,
glm
::
mat4x4
R
)
inline
std
::
vector
<
int
>
occluding_boundary_vertices
(
const
render
::
Mesh
&
mesh
,
const
morphablemodel
::
EdgeTopology
&
edge_topology
,
glm
::
mat4x4
R
)
{
// Rotate the mesh:
std
::
vector
<
glm
::
vec4
>
rotated_vertices
;
...
...
@@ -337,7 +337,7 @@ struct KDTreeVectorOfVectorsAdaptor
* @param[in] distance_threshold All correspondences below this threshold.
* @return A pair consisting of the used image edge points and their associated 3D vertex index.
*/
std
::
pair
<
std
::
vector
<
cv
::
Vec2f
>
,
std
::
vector
<
int
>>
find_occluding_edge_correspondences
(
const
render
::
Mesh
&
mesh
,
const
morphablemodel
::
EdgeTopology
&
edge_topology
,
const
fitting
::
RenderingParameters
&
rendering_parameters
,
const
std
::
vector
<
Eigen
::
Vector2f
>&
image_edges
,
float
distance_threshold
=
64.0
f
)
inline
std
::
pair
<
std
::
vector
<
cv
::
Vec2f
>
,
std
::
vector
<
int
>>
find_occluding_edge_correspondences
(
const
render
::
Mesh
&
mesh
,
const
morphablemodel
::
EdgeTopology
&
edge_topology
,
const
fitting
::
RenderingParameters
&
rendering_parameters
,
const
std
::
vector
<
Eigen
::
Vector2f
>&
image_edges
,
float
distance_threshold
=
64.0
f
)
{
assert
(
rendering_parameters
.
get_camera_type
()
==
fitting
::
CameraType
::
Orthographic
);
using
std
::
vector
;
...
...
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