pcl code for feature generation