41 #ifndef PCL_FEATURES_IMPL_NORMAL_3D_H_
42 #define PCL_FEATURES_IMPL_NORMAL_3D_H_
44 #include <pcl/features/normal_3d.h>
47 template <
typename Po
intInT,
typename Po
intOutT>
void
52 std::vector<int> nn_indices (k_);
53 std::vector<float> nn_dists (k_);
60 for (std::size_t idx = 0; idx < indices_->size (); ++idx)
62 if (this->searchForNeighbors ((*indices_)[idx], search_parameter_, nn_indices, nn_dists) == 0 ||
65 output.
points[idx].normal[0] = output.
points[idx].normal[1] = output.
points[idx].normal[2] = output.
points[idx].curvature = std::numeric_limits<float>::quiet_NaN ();
72 output.
points[idx].normal[0], output.
points[idx].normal[1], output.
points[idx].normal[2]);
79 for (std::size_t idx = 0; idx < indices_->size (); ++idx)
81 if (!
isFinite ((*input_)[(*indices_)[idx]]) ||
82 this->searchForNeighbors ((*indices_)[idx], search_parameter_, nn_indices, nn_dists) == 0 ||
85 output.
points[idx].normal[0] = output.
points[idx].normal[1] = output.
points[idx].normal[2] = output.
points[idx].curvature = std::numeric_limits<float>::quiet_NaN ();
92 output.
points[idx].normal[0], output.
points[idx].normal[1], output.
points[idx].normal[2]);
98 #define PCL_INSTANTIATE_NormalEstimation(T,NT) template class PCL_EXPORTS pcl::NormalEstimation<T,NT>;
100 #endif // PCL_FEATURES_IMPL_NORMAL_3D_H_