title: icp segmentation fault PCL
body: <p>i'm trying to use the icp algorithm to align 2 RGBD cloud, but the function align results in segmentation fault and i don't know why and how to fix this, if anyone can help-me i will be grateful</p>
  
  <p>this is a example of what i'm trying to do.</p>
  
  <pre><code>pcl::IterativeClosestPoint&lt;pcl::PointXYZ, pcl::PointXYZ&gt; icp;
  vector&lt;int&gt;index;
  pcl::removeNaNFromPointCloud(*cloud_in,*cloud_in,index);    
  pcl::removeNaNFromPointCloud(*cloud_out,*cloud_out,index);  
   icp.setInputCloud(cloud_in);
   icp.setInputTarget(cloud_out);
   pcl::PointCloud&lt;pcl::PointXYZ&gt; Final;
   icp.align(Final);
  </code></pre>