Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GridRegistration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
Andre Mühlenbrock
GridRegistration
Commits
731e1ef9
Commit
731e1ef9
authored
4 years ago
by
Andre Mühlenbrock
Browse files
Options
Downloads
Patches
Plain Diff
nullptr fix.
parent
9131d3e0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
VRKinectReg/Plugins/VRKinectRegistration/Source/VRKinectRegistration/Private/MultiplePointCloudsRegistrator.cpp
+4
-4
4 additions, 4 deletions
...ctRegistration/Private/MultiplePointCloudsRegistrator.cpp
with
4 additions
and
4 deletions
VRKinectReg/Plugins/VRKinectRegistration/Source/VRKinectRegistration/Private/MultiplePointCloudsRegistrator.cpp
+
4
−
4
View file @
731e1ef9
...
...
@@ -89,11 +89,11 @@ TArray<FTransform> MultiplePointCloudsRegistrator::registrateInto(int pointCloud
}
// Create point clouds (expected struct by pcl for correspondence points):
boost
::
shared_ptr
<
pcl
::
PointCloud
<
pcl
::
PointXYZ
>>
sourcePC
;
boost
::
shared_ptr
<
pcl
::
PointCloud
<
pcl
::
PointXYZ
>>
targetPC
;
boost
::
shared_ptr
<
pcl
::
PointCloud
<
pcl
::
PointXYZ
>>
sourcePC
(
new
pcl
::
PointCloud
<
pcl
::
PointXYZ
>
())
;
boost
::
shared_ptr
<
pcl
::
PointCloud
<
pcl
::
PointXYZ
>>
targetPC
(
new
pcl
::
PointCloud
<
pcl
::
PointXYZ
>
())
;
boost
::
shared_ptr
<
pcl
::
PointCloud
<
pcl
::
PointXYZ
>>
sourcePCFiltered
;
// Result of Correspondence Rejection
boost
::
shared_ptr
<
pcl
::
PointCloud
<
pcl
::
PointXYZ
>>
targetPCFiltered
;
// Result of Correspondence Rejection
boost
::
shared_ptr
<
pcl
::
PointCloud
<
pcl
::
PointXYZ
>>
sourcePCFiltered
(
new
pcl
::
PointCloud
<
pcl
::
PointXYZ
>
())
;
// Result of Correspondence Rejection
boost
::
shared_ptr
<
pcl
::
PointCloud
<
pcl
::
PointXYZ
>>
targetPCFiltered
(
new
pcl
::
PointCloud
<
pcl
::
PointXYZ
>
())
;
// Result of Correspondence Rejection
// Copy all points into sourcePC and targetPC, where both vectors contains NO NAN value:
for
(
int
h
=
0
;
h
<
correspondences
[
pointCloudID
].
Num
();
++
h
)
{
...
...
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