Skip to content
Snippets Groups Projects
Verified Commit 6bc4686e authored by Thibault Payet's avatar Thibault Payet
Browse files

oopsie use an int to extract the r,g,b channel

parent 7bf29d5a
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,15 @@ void txt2pcd( std::filesystem::path input, std::filesystem::path output )
inputFile >> point.y;
inputFile >> point.z;
inputFile >> point.r;
inputFile >> point.g;
inputFile >> point.b;
int r, g, b;
inputFile >> r;
inputFile >> g;
inputFile >> b;
point.r = static_cast<char>( r );
point.g = static_cast<char>( g );
point.b = static_cast<char>( b );
cloud.push_back( point );
}
......
......@@ -8,5 +8,6 @@ pcl_io_dep = dependency('pcl_io-@0@'.format(pcl_version),
boost_dep = dependency('boost')
executable('txt2pcd', sources: files(['main.cpp']),
dependencies: [pcl_io_dep, boost_dep])
dependencies: [pcl_io_dep, boost_dep],
install: true)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment