Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pclProject
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
thesis
pclProject
Commits
91383b50
Commit
91383b50
authored
6 months ago
by
Bocska Karina
Browse files
Options
Downloads
Patches
Plain Diff
raktar regenerated
parent
aacd2217
Branches
master
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
headers/voxelfilter.hpp
+2
-2
2 additions, 2 deletions
headers/voxelfilter.hpp
main.cpp
+2
-2
2 additions, 2 deletions
main.cpp
pointClouds/downsampled_raktar.ply
+3
-0
3 additions, 0 deletions
pointClouds/downsampled_raktar.ply
with
7 additions
and
4 deletions
headers/voxelfilter.hpp
+
2
−
2
View file @
91383b50
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#include
<pcl/filters/voxel_grid.h>
#include
<pcl/filters/voxel_grid.h>
#include
<pcl/io/ply_io.h>
#include
<pcl/io/ply_io.h>
inline
void
voxelGridFilter
(
std
::
string
plyFilePath
)
{
inline
void
voxelGridFilter
(
std
::
string
plyFilePath
,
float
leafSize
)
{
// load ply file
// load ply file
pcl
::
PCLPointCloud2
::
Ptr
cloud
(
new
pcl
::
PCLPointCloud2
());
pcl
::
PCLPointCloud2
::
Ptr
cloud
(
new
pcl
::
PCLPointCloud2
());
pcl
::
io
::
loadPLYFile
(
"../pointClouds/"
+
plyFilePath
,
*
cloud
);
pcl
::
io
::
loadPLYFile
(
"../pointClouds/"
+
plyFilePath
,
*
cloud
);
...
@@ -17,7 +17,7 @@ inline void voxelGridFilter(std::string plyFilePath) {
...
@@ -17,7 +17,7 @@ inline void voxelGridFilter(std::string plyFilePath) {
pcl
::
PCLPointCloud2
::
Ptr
outputCloud
(
new
pcl
::
PCLPointCloud2
());
pcl
::
PCLPointCloud2
::
Ptr
outputCloud
(
new
pcl
::
PCLPointCloud2
());
pcl
::
VoxelGrid
<
pcl
::
PCLPointCloud2
>
voxelGrid
;
pcl
::
VoxelGrid
<
pcl
::
PCLPointCloud2
>
voxelGrid
;
voxelGrid
.
setInputCloud
(
cloud
);
voxelGrid
.
setInputCloud
(
cloud
);
voxelGrid
.
setLeafSize
(
0.06
f
,
0.06
f
,
0.06
f
);
voxelGrid
.
setLeafSize
(
leafSize
,
leafSize
,
leafSize
);
voxelGrid
.
filter
(
*
outputCloud
);
voxelGrid
.
filter
(
*
outputCloud
);
std
::
cout
<<
"Finished filtering point cloud with "
std
::
cout
<<
"Finished filtering point cloud with "
...
...
This diff is collapsed.
Click to expand it.
main.cpp
+
2
−
2
View file @
91383b50
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
int
main
()
{
int
main
()
{
// 1st reduce file size
// 1st reduce file size
//
voxelGridFilter("
t
ra
fo
.ply");
voxelGridFilter
(
"ra
ktar
.ply"
,
0.08
f
);
// 2nd write obj file with tetrahedrons
// 2nd write obj file with tetrahedrons
createTetrahedronModel
(
"downsampled_
trafo
.ply"
);
createTetrahedronModel
(
"downsampled_
raktar
.ply"
);
return
0
;
return
0
;
}
}
This diff is collapsed.
Click to expand it.
pointClouds/downsampled_raktar.ply
0 → 100644
LFS
+
3
−
0
View file @
91383b50
File added
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