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
c8298568
There was an error fetching the commit references. Please try again later.
Commit
c8298568
authored
3 years ago
by
Mária Kocúreková
Browse files
Options
Downloads
Plain Diff
ICP with Point3d
parents
4f2204d5
1d9816fc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Comparison/src/main/java/cz/fidentis/analyst/icp/Icp.java
+1
-0
1 addition, 0 deletions
Comparison/src/main/java/cz/fidentis/analyst/icp/Icp.java
Comparison/src/main/java/cz/fidentis/analyst/icp/Quaternion.java
+17
-0
17 additions, 0 deletions
...son/src/main/java/cz/fidentis/analyst/icp/Quaternion.java
with
18 additions
and
0 deletions
Comparison/src/main/java/cz/fidentis/analyst/icp/Icp.java
+
1
−
0
View file @
c8298568
...
@@ -7,6 +7,7 @@ import cz.fidentis.analyst.visitors.mesh.HausdorffDistance;
...
@@ -7,6 +7,7 @@ import cz.fidentis.analyst.visitors.mesh.HausdorffDistance;
import
javax.vecmath.Matrix4d
;
import
javax.vecmath.Matrix4d
;
import
javax.vecmath.Point3d
;
import
javax.vecmath.Point3d
;
import
javax.vecmath.Vector3d
;
import
javax.vecmath.Vector3d
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Collections
;
...
...
This diff is collapsed.
Click to expand it.
Comparison/src/main/java/cz/fidentis/analyst/icp/Quaternion.java
+
17
−
0
View file @
c8298568
...
@@ -128,6 +128,7 @@ public final class Quaternion {
...
@@ -128,6 +128,7 @@ public final class Quaternion {
* @return a rotation matrix (4x4)
* @return a rotation matrix (4x4)
*/
*/
public
Matrix4d
toMatrix
(){
public
Matrix4d
toMatrix
(){
<<<<<<<
HEAD
double
xx
=
x
*
x
;
double
xx
=
x
*
x
;
double
xy
=
x
*
y
;
double
xy
=
x
*
y
;
double
xz
=
x
*
z
;
double
xz
=
x
*
z
;
...
@@ -142,6 +143,22 @@ public final class Quaternion {
...
@@ -142,6 +143,22 @@ public final class Quaternion {
2
*
(
xy
-
zw
),
1
-
2
*
(
xx
+
zz
),
2
*
(
yz
+
xw
),
0
,
2
*
(
xy
-
zw
),
1
-
2
*
(
xx
+
zz
),
2
*
(
yz
+
xw
),
0
,
2
*
(
xz
+
yw
),
2
*
(
yz
-
xw
),
1
-
2
*
(
xx
+
yy
),
0
,
2
*
(
xz
+
yw
),
2
*
(
yz
-
xw
),
1
-
2
*
(
xx
+
yy
),
0
,
0
,
0
,
0
,
1
);
0
,
0
,
0
,
1
);
=======
double
xx
=
x
*
x
;
double
xy
=
x
*
y
;
double
xz
=
x
*
z
;
double
xw
=
x
*
w
;
double
yy
=
y
*
y
;
double
yz
=
y
*
z
;
double
yw
=
y
*
w
;
double
zz
=
z
*
z
;
double
zw
=
z
*
w
;
return
new
Matrix4d
(
1
-
2
*
(
yy
+
zz
),
2
*
(
xy
+
zw
),
2
*
(
xz
-
yw
),
0
,
2
*
(
xy
-
zw
),
1
-
2
*
(
xx
+
zz
),
2
*
(
yz
+
xw
),
0
,
2
*
(
xz
+
yw
),
2
*
(
yz
-
xw
),
1
-
2
*
(
xx
+
yy
),
0
,
0
,
0
,
0
,
1
);
>>>>>>>
1
d9816fc2b5d38ad345c195f2913fb8adf5a5de1
}
}
}
}
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