Skip to content

Commit

Permalink
Merge pull request #3 from NirZarrabi/master
Browse files Browse the repository at this point in the history
Update PCL_normEst.h
  • Loading branch information
aboulch authored Mar 17, 2017
2 parents df6a48c + 8b1b64f commit 2107ae0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pcl/PCL_normEst.h
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ class PCL_Normal_Estimator{


//resizing the normal point cloud
if(nls != pts){
if(nls->size() != pts->size()){
nls->resize(pts->size());
}

Expand Down Expand Up @@ -1208,7 +1208,7 @@ class PCL_Normal_Estimator{
void unif_knn(int neighbor_number){

//resizing the normal point cloud
if(nls != pts){
if(nls->size() != pts->size()){
nls->resize(pts->size());
}

Expand Down Expand Up @@ -1344,7 +1344,7 @@ class PCL_Normal_Estimator{
void unif_radius(float radius){

//resizing the normal point cloud
if(nls != pts){
if(nls->size() != pts->size()){
nls->resize(pts->size());
}

Expand Down Expand Up @@ -1425,7 +1425,7 @@ class PCL_Normal_Estimator{
}
}
}
radius2 = srqt(radius2);
radius2 = std::sqrt(radius2);
float s_radius = radius2 / small_radius_factor;

//point cloud of neighbors and kdtree creation
Expand Down Expand Up @@ -1494,7 +1494,7 @@ class PCL_Normal_Estimator{


//resizing the normal point cloud
if(nls != pts){
if(nls->size() != pts->size()){
nls->resize(pts->size());
}

Expand Down Expand Up @@ -1613,7 +1613,7 @@ class PCL_Normal_Estimator{
{

//resizing the normal point cloud
if(nls != pts){
if(nls->size() != pts->size()){
nls->resize(pts->size());
}

Expand Down

0 comments on commit 2107ae0

Please sign in to comment.