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
cd6496c7
There was an error fetching the commit references. Please try again later.
Commit
cd6496c7
authored
3 years ago
by
Daniel Schramm
Browse files
Options
Downloads
Patches
Plain Diff
Javadoc beautified
parent
12421b53
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
+28
-16
28 additions, 16 deletions
...s/analyst/visitors/face/HausdorffDistancePrioritized.java
with
28 additions
and
16 deletions
Comparison/src/main/java/cz/fidentis/analyst/visitors/face/HausdorffDistancePrioritized.java
+
28
−
16
View file @
cd6496c7
...
...
@@ -36,16 +36,18 @@ import javax.vecmath.Point3d;
* parameter, or automatically created from the triangular mesh).
* When applied to other human faces, it computes the Hausdorff distance from their mesh facets
* to the instantiated k-d tree.
*
* <p>
*
The Hausdorff distance is computed either as absolute or relative. Absolute
*
represents Euclidean distance (all numbers are positive). On the contrary,
*
relative distance considers orientation of the visited face's facets (determined by its normal vectors)
*
and produces positive or negative distances depending on whether the primary
*
mesh is "in front of" or "behind" the given vertex.
* The Hausdorff distance is computed either as absolute or relative. Absolute
* represents Euclidean distance (all numbers are positive). On the contrary,
* relative distance considers orientation of the visited face's facets (determined by its normal vectors)
* and produces positive or negative distances depending on whether the primary
* mesh is "in front of" or "behind" the given vertex.
* </p>
*
* <p>
*
This visitor is thread-safe, i.e., a single instance of the visitor can be used
*
to inspect multiple human faces simultaneously.
* This visitor is thread-safe, i.e., a single instance of the visitor can be used
* to inspect multiple human faces simultaneously.
* </p>
*
* @author Daniel Schramm
...
...
@@ -187,12 +189,14 @@ public class HausdorffDistancePrioritized extends HumanFaceVisitor {
/**
* Returns Hausdorff distance of the visited faces' mesh facets to the source mesh facets.
*
* <p>
* Keys in the map contain mesh facets that were measured with the
* source facets.
* source facets.
<br>
* For each facet of the visited human face, a list of distances to the source
* facets is stored. The order of distances corresponds to the order of vertices
* in the measured facet, i.e., the i-th value is the distance of the i-th vertex
* of the visited face's facet.
* </p>
*
* @return Hausdorff distance for all points of all the visited human faces' facets
*/
...
...
@@ -203,12 +207,14 @@ public class HausdorffDistancePrioritized extends HumanFaceVisitor {
/**
* Returns the nearest points of the visited faces' mesh facets to the source mesh facets.
*
* <p>
* Keys in the map contain mesh facets that were measured with the
* source facets.
* source facets.
<br>
* For each facet of the visited human face, a list of the nearest points to the source
* facets is stored. The order of points corresponds to the order of vertices
* in the measured facet, i.e., the i-th point is the nearest point of the i-th vertex
* of the visited face's facet.
* </p>
*
* @return The nearest points for all points of all the visited human faces' facets
*/
...
...
@@ -221,15 +227,17 @@ public class HausdorffDistancePrioritized extends HumanFaceVisitor {
* to the given types of feature points.
* Priorities are calculated for each type of feature point separately.
*
* <p>
* Keys in the map contain human faces whose mesh facets were measured with the
* source facets.
* For each human face, there is a map of examined types of feature points.
* source facets.
<br>
* For each human face, there is a map of examined types of feature points.
<br>
* Each feature point type then stores a map of priorities of vertices
* of the face's mesh facets computed with respect to the face's feature point of
* the corresponding type.
* The order of priorities in the innermost map's value (list) corresponds to the order of vertices
* in its corresponding key (facet), i.e., the i-th value in the list is the priority of
* the i-th vertex of the facet.
* </p>
*
* @return Priorities of vertices with respect to the given types of feature points
*/
...
...
@@ -244,15 +252,17 @@ public class HausdorffDistancePrioritized extends HumanFaceVisitor {
* divided by the sum of their priorities).
* The weighted average is calculated for each type of feature point separately.
*
* <p>
* Keys in the map contain human faces whose mesh facets were measured with the
* source facets.
* For each human face, there is a map of examined types of feature points.
* source facets.
<br>
* For each human face, there is a map of examined types of feature points.
<br>
* Each feature point type then stores a map of the face's mesh facets together with
* the weighted average of distance of their vertices to the source facets.
* The weighted average of distance is calculated with respect to the face's feature point
* of the corresponding type.
* of the corresponding type.
<br>
* <i>If there is no vertex within the priority sphere of a feature point,
* the value of the average weighted Hausdorff distance is {@link Double#NaN}</i>
* the value of the average weighted Hausdorff distance is {@link Double#NaN}</i>
* </p>
*
* @return Weighted average of Hausdorff distance of all vertices within the priority sphere
* of feature points of the given types
...
...
@@ -265,14 +275,16 @@ public class HausdorffDistancePrioritized extends HumanFaceVisitor {
* Returns priorities of vertices of the visited faces' mesh facets with respect
* to all the given types of feature points merged together.
*
* <p>
* Keys in the map contain human faces whose mesh facets were measured with the
* source facets.
* source facets.
<br>
* For each human face, there is a map of priorities of vertices of the visited
* face's mesh facets. The priorities are computed with respect to all the face's
* feature points of given types together.
* The order of priorities in the inner map's value (list) corresponds to the order of vertices
* in its corresponding key (facet), i.e., the i-th value in the list is the priority of
* the i-th vertex of the facet.
* </p>
*
* @return Priorities of vertices with respect to all given types of feature
* points merged together
...
...
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