Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
b3782363
Commit
b3782363
authored
Jun 20, 2015
by
felix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not apply pose transformation on normals if the cloud does not have normals
parent
f8757c3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ppf_helpers.cpp
modules/surface_matching/src/ppf_helpers.cpp
+6
-2
No files found.
modules/surface_matching/src/ppf_helpers.cpp
View file @
b3782363
...
...
@@ -504,8 +504,11 @@ Mat transformPCPose(Mat pc, double Pose[16])
pcDataT
[
2
]
=
(
float
)(
p2
[
2
]
/
p2
[
3
]);
}
// Rotate the normals, too
double
n
[
3
]
=
{(
double
)
n1
[
0
],
(
double
)
n1
[
1
],
(
double
)
n1
[
2
]},
n2
[
3
];
// If the point cloud has normals,
// then rotate them as well
if
(
pc
.
cols
==
6
)
{
double
n
[
3
]
=
{
(
double
)
n1
[
0
],
(
double
)
n1
[
1
],
(
double
)
n1
[
2
]
},
n2
[
3
];
matrixProduct331
(
R
,
n
,
n2
);
double
nNorm
=
sqrt
(
n2
[
0
]
*
n2
[
0
]
+
n2
[
1
]
*
n2
[
1
]
+
n2
[
2
]
*
n2
[
2
]);
...
...
@@ -517,6 +520,7 @@ Mat transformPCPose(Mat pc, double Pose[16])
nT
[
2
]
=
(
float
)(
n2
[
2
]
/
nNorm
);
}
}
}
return
pct
;
}
...
...
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