Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Analyst WebApp
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
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
fidentis
Analyst WebApp
Commits
b87d11dd
There was an error fetching the commit references. Please try again later.
Commit
b87d11dd
authored
3 years ago
by
Daniel Schramm
Browse files
Options
Downloads
Patches
Plain Diff
Selection of feature points by their type corrected
parent
48225d08
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Comparison/src/main/java/cz/fidentis/analyst/visitors/face/HausdorffDistancePrioritized.java
+16
-3
16 additions, 3 deletions
...s/analyst/visitors/face/HausdorffDistancePrioritized.java
with
16 additions
and
3 deletions
Comparison/src/main/java/cz/fidentis/analyst/visitors/face/HausdorffDistancePrioritized.java
+
16
−
3
View file @
b87d11dd
...
...
@@ -322,15 +322,18 @@ public class HausdorffDistancePrioritized extends HumanFaceVisitor {
public
void
visitHumanFace
(
HumanFace
humanFace
)
{
// Compute the Hasudorff distance using the 'distanceVisitor'
humanFace
.
getMeshModel
().
compute
(
distanceVisitor
,
inParallel
());
final
Map
<
MeshFacet
,
List
<
Double
>>
hausdorffDistances
=
distanceVisitor
.
getDistances
();
// Compute priorities of humanFace's vertices for each of the given feature point types
for
(
final
Map
.
Entry
<
FeaturePointType
,
Double
>
fpType:
featurePointTypes
.
entrySet
())
{
final
FeaturePointType
featurePointType
=
fpType
.
getKey
();
final
double
featurePointRadius
=
fpType
.
getValue
();
final
FeaturePoint
featurePoint
=
humanFace
.
getFeaturePoints
().
get
(
featurePointType
.
getType
());
// Get feature point of desired type
final
FeaturePoint
featurePoint
=
getFeaturePointByType
(
humanFace
,
featurePointType
);
if
(
featurePoint
==
null
)
{
continue
;
}
final
PrioritySphere
priorityVisitor
=
new
PrioritySphere
(
featurePoint
.
getPosition
(),
featurePointRadius
);
humanFace
.
getMeshModel
().
compute
(
priorityVisitor
,
inParallel
());
...
...
@@ -377,4 +380,14 @@ public class HausdorffDistancePrioritized extends HumanFaceVisitor {
}
}
}
protected
FeaturePoint
getFeaturePointByType
(
HumanFace
face
,
FeaturePointType
type
)
{
for
(
final
FeaturePoint
featurePoint:
face
.
getFeaturePoints
())
{
if
(
type
.
getType
()
==
featurePoint
.
getFeaturePointType
().
getType
())
{
return
featurePoint
;
}
}
return
null
;
}
}
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