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

Bug fix in SurfaceNormalOutlierFilter #457

Merged
merged 6 commits into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.9836155772209167 -0.1802777200937271 0 0.2438895702362061
0.1802777200937271 0.9836155772209167 0 -0.709206759929657
0 0 1 -0.1967320442199707
0 0 0 1
0.9983626008033752 -0.05720203369855881 0 0.2742069959640503
0.05720203369855881 0.9983626008033752 0 -0.7140782475471497
0 0 1 -0.2944283485412598
0 0 0 1
2 changes: 1 addition & 1 deletion pointmatcher/OutlierFiltersImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ typename PointMatcher<T>::OutlierWeights OutlierFiltersImpl<T>::SurfaceNormalOut

const Vector normalRef = normalsReference.col(idRef).normalized();

const T value = anyabs(normalRead.dot(normalRef));
const T value = normalRead.dot(normalRef);

if(value < eps) // test to keep the points
w(y, x) = 0;
Expand Down
2 changes: 1 addition & 1 deletion pointmatcher/OutlierFiltersImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ struct OutlierFiltersImpl
{
inline static const std::string description()
{
return "Hard rejection threshold using the angle between the surface normal vector of the reading and the reference. If normal vectors or not in the descriptor for both of the point clouds, does nothing.";
return "Hard rejection threshold using the angle between the surface normal vector of the reading and the reference. Usually used in combination with `OrientNormalDataPointsFilter`. If normal vectors are not in the descriptor for both of the point clouds, does nothing.";
}
inline static const ParametersDoc availableParameters()
{
Expand Down