@@ -1085,7 +1085,7 @@ class PCL_Normal_Estimator{
10851085
10861086
10871087 // resizing the normal point cloud
1088- if (nls != pts){
1088+ if (nls-> size () != pts-> size () ){
10891089 nls->resize (pts->size ());
10901090 }
10911091
@@ -1208,7 +1208,7 @@ class PCL_Normal_Estimator{
12081208 void unif_knn (int neighbor_number){
12091209
12101210 // resizing the normal point cloud
1211- if (nls != pts){
1211+ if (nls-> size () != pts-> size () ){
12121212 nls->resize (pts->size ());
12131213 }
12141214
@@ -1344,7 +1344,7 @@ class PCL_Normal_Estimator{
13441344 void unif_radius (float radius){
13451345
13461346 // resizing the normal point cloud
1347- if (nls != pts){
1347+ if (nls-> size () != pts-> size () ){
13481348 nls->resize (pts->size ());
13491349 }
13501350
@@ -1425,7 +1425,7 @@ class PCL_Normal_Estimator{
14251425 }
14261426 }
14271427 }
1428- radius2 = srqt (radius2);
1428+ radius2 = std::sqrt (radius2);
14291429 float s_radius = radius2 / small_radius_factor;
14301430
14311431 // point cloud of neighbors and kdtree creation
@@ -1494,7 +1494,7 @@ class PCL_Normal_Estimator{
14941494
14951495
14961496 // resizing the normal point cloud
1497- if (nls != pts){
1497+ if (nls-> size () != pts-> size () ){
14981498 nls->resize (pts->size ());
14991499 }
15001500
@@ -1613,7 +1613,7 @@ class PCL_Normal_Estimator{
16131613 {
16141614
16151615 // resizing the normal point cloud
1616- if (nls != pts){
1616+ if (nls-> size () != pts-> size () ){
16171617 nls->resize (pts->size ());
16181618 }
16191619
0 commit comments