Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
a0e01668
Unverified
Commit
a0e01668
authored
Nov 15, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
take largest in value for best quaternion
parent
2c774914
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
+1
-1
src/Point.cpp
+2
-2
No files found.
CMakeLists.txt
View file @
a0e01668
...
...
@@ -25,7 +25,7 @@
cmake_minimum_required
(
VERSION 3.16
)
# set the project name
project
(
cifpp VERSION 3.0.
0
LANGUAGES CXX
)
project
(
cifpp VERSION 3.0.
1
LANGUAGES CXX
)
list
(
PREPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
...
...
src/Point.cpp
View file @
a0e01668
...
...
@@ -477,13 +477,13 @@ Quaternion AlignPoints(const std::vector<Point>& pa, const std::vector<Point>& p
// calculate t = (N - λI)
Matrix
t
=
N
-
IdentityMatrix
(
4
)
*
lambda
;
// calculate a Matrix of cofactors for t
, since N is symmetric, t must be symmetric as well and so will be cf
// calculate a Matrix of cofactors for t
Matrix
cf
=
Cofactors
(
t
);
int
maxR
=
0
;
for
(
int
r
=
1
;
r
<
4
;
++
r
)
{
if
(
cf
(
r
,
0
)
>
cf
(
maxR
,
0
))
if
(
std
::
abs
(
cf
(
r
,
0
))
>
std
::
abs
(
cf
(
maxR
,
0
)
))
maxR
=
r
;
}
...
...
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