@@ -1085,7 +1085,7 @@ class PCL_Normal_Estimator{
1085
1085
1086
1086
1087
1087
// resizing the normal point cloud
1088
- if (nls != pts){
1088
+ if (nls-> size () != pts-> size () ){
1089
1089
nls->resize (pts->size ());
1090
1090
}
1091
1091
@@ -1208,7 +1208,7 @@ class PCL_Normal_Estimator{
1208
1208
void unif_knn (int neighbor_number){
1209
1209
1210
1210
// resizing the normal point cloud
1211
- if (nls != pts){
1211
+ if (nls-> size () != pts-> size () ){
1212
1212
nls->resize (pts->size ());
1213
1213
}
1214
1214
@@ -1344,7 +1344,7 @@ class PCL_Normal_Estimator{
1344
1344
void unif_radius (float radius){
1345
1345
1346
1346
// resizing the normal point cloud
1347
- if (nls != pts){
1347
+ if (nls-> size () != pts-> size () ){
1348
1348
nls->resize (pts->size ());
1349
1349
}
1350
1350
@@ -1425,7 +1425,7 @@ class PCL_Normal_Estimator{
1425
1425
}
1426
1426
}
1427
1427
}
1428
- radius2 = srqt (radius2);
1428
+ radius2 = std::sqrt (radius2);
1429
1429
float s_radius = radius2 / small_radius_factor;
1430
1430
1431
1431
// point cloud of neighbors and kdtree creation
@@ -1494,7 +1494,7 @@ class PCL_Normal_Estimator{
1494
1494
1495
1495
1496
1496
// resizing the normal point cloud
1497
- if (nls != pts){
1497
+ if (nls-> size () != pts-> size () ){
1498
1498
nls->resize (pts->size ());
1499
1499
}
1500
1500
@@ -1613,7 +1613,7 @@ class PCL_Normal_Estimator{
1613
1613
{
1614
1614
1615
1615
// resizing the normal point cloud
1616
- if (nls != pts){
1616
+ if (nls-> size () != pts-> size () ){
1617
1617
nls->resize (pts->size ());
1618
1618
}
1619
1619
0 commit comments