Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any cpp example for FastGlobalRegistration and FRFH? #18

Closed
1939938853 opened this issue Sep 1, 2020 · 1 comment
Closed

Any cpp example for FastGlobalRegistration and FRFH? #18

1939938853 opened this issue Sep 1, 2020 · 1 comment

Comments

@1939938853
Copy link

1939938853 commented Sep 1, 2020

Hello

On the line 55 of the file
https://github.com/neka-nat/cupoch/blob/master/src/cupoch/registration/feature.h
you have an integer 33.

In this case if I calculate the feature, maybe I need to do the following?

`

std::tuple<std::shared_ptrcupoch::geometry::PointCloud, std::shared_ptr<cupoch::registration::Feature<33> > >
cphDownsamplingNormalFPFH(std::shared_ptrcupoch::geometry::PointCloud cloud_ptr, float voxel_size)
{
auto cloud_down = cloud_ptr->VoxelDownSample(voxel_size);

auto radius_normal = voxel_size * 2.0f;
int MAX_NN = 220;
cloud_down->EstimateNormals(
    cupoch::geometry::KDTreeSearchParamRadius(radius_normal, MAX_NN));

auto radius_feature = voxel_size * 5;
int MAX_NN_freature = 2 * MAX_NN;
auto cloud_fpfh = cupoch::registration::ComputeFPFHFeature(
    *cloud_down, cupoch::geometry::KDTreeSearchParamRadius(radius_feature, MAX_NN_freature));

return std::make_tuple(cloud_down, cloud_fpfh);

}

`

Am I right?

Thank you!

@1939938853 1939938853 changed the title Any cpp example for FRFH Any cpp example for FastGlobalRegistration and FRFH? Sep 1, 2020
@neka-nat
Copy link
Owner

neka-nat commented Sep 1, 2020

Hi @1939938853 ,

Thank you for trying with cpp.
I think your code is fine.
"33" shows the dimensions of the FPFH feature.

@neka-nat neka-nat closed this as completed Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants