LSDTopoTools
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Protected Attributes | List of all members
LSDCloudRaster Class Reference

This code houses the LSDCloudRaster object, designed to create clouds from raster objects. More...

#include <LSDCloudRaster.hpp>

Public Member Functions

LSDCloudRasteroperator= (const LSDCloudRaster &cloud_object)
 
 LSDCloudRaster (LSDRaster &raster)
 create an LSDCloud from a raster.
 
 LSDCloudRaster (PointData &point_data, LSDRaster &raster)
 create an LSDCloud from a PointData object (see LSDShapeTools module)
 
 LSDCloudRaster (int n_pts, float x_min, float x_max, float y_min, float y_max, float x_offset, float y_offset, pcl::PointCloud< pcl::PointXYZI >::Ptr cloud, const double resolution)
 
int get_NPts () const
 
float get_XMin () const
 
float get_YMin () const
 
float get_XMax () const
 
float get_YMax () const
 
float get_XOffset () const
 
float get_YOffset () const
 
pcl::PointCloud
< pcl::PointXYZI >::Ptr 
get_theCloud () const
 
float get_OctreeResolution () const
 
float get_point_x (int index)
 
float get_point_y (int index)
 
void raster_to_cloud (LSDRaster &raster)
 Read in data from an LSDRaster into a LSDCloud object. More...
 
void PointData_to_cloud (PointData &point_data, LSDRaster &raster)
 Read in data from a PointData (LSDShapeTools) into a LSDCloud. More...
 
void RadiusSearch2D (float searchPoint_x, float searchPoint_y, float searchRadius, vector< float > &pointValues, vector< int > &pointIndex, vector< float > &pointSquaredDistance)
 Conducts a focal search (in xy plane), to find all points within defined search radius. More...
 
void NearestNeighbourSearch2D (float searchPoint_x, float searchPoint_y, int K, vector< float > &pointValues, vector< int > &pointIndex, vector< float > &pointSquaredDistance)
 Conducts a focal search (in the xy plane), to find the nearest K points. More...
 

Protected Attributes

pcl::PointCloud
< pcl::PointXYZI >::Ptr 
theCloud
 
double OctreeResolution
 
pcl::octree::OctreePointCloudSearch
< pcl::PointXYZI > * 
cloudOctree
 
float XMin
 
float YMin
 
float XMax
 
float YMax
 
float XOffset
 
float YOffset
 
int NPts
 

Detailed Description

This code houses the LSDCloudRaster object, designed to create clouds from raster objects.

Author
DTM, FJC
Date
28/03/17

Member Function Documentation

void LSDCloudRaster::NearestNeighbourSearch2D ( float  searchPoint_x,
float  searchPoint_y,
int  K,
vector< float > &  pointValues,
vector< int > &  pointIndex,
vector< float > &  pointSquaredDistance 
)

Conducts a focal search (in the xy plane), to find the nearest K points.

Points are arranged according to proximity to the query point

Parameters
float-> the x coordinate of the query point
float-> the y coordinate of the query point
int-> the number of points to find
vector<float>-> the values associated with the returned points
vector<int>-> the indexes associated with the returned points
vector<float>-> the squared distance of the returned points from the query point
Author
DTM
Date
18/02/2014
void LSDCloudRaster::PointData_to_cloud ( PointData point_data,
LSDRaster raster 
)

Read in data from a PointData (LSDShapeTools) into a LSDCloud.

The point cloud is also structured in an octree for rapid spatial querying. Uses the PCL library (www.poinclouds.org).

Parameters
PointData-> x,y coordinate strucure to load into cloud
LSDRaster-> raster used as spatial reference frame
Author
DTM
Date
11/04/2014
void LSDCloudRaster::RadiusSearch2D ( float  searchPoint_x,
float  searchPoint_y,
float  searchRadius,
vector< float > &  pointValues,
vector< int > &  pointIndex,
vector< float > &  pointSquaredDistance 
)

Conducts a focal search (in xy plane), to find all points within defined search radius.


SEARCH TOOLS

Points are arranged according to proximity to the query point

Parameters
float-> the x coordinate of the query point
float-> the y coordinate of the query point
float-> the search radius
vector<float>-> the values associated with the returned points
vector<int>-> the indexes associated with the returned points
vector<float>-> the squared distance of the returned points from the query point
Author
DTM
Date
18/02/2014
void LSDCloudRaster::raster_to_cloud ( LSDRaster raster)

Read in data from an LSDRaster into a LSDCloud object.

The point cloud is also structured in an octree for rapid spatial querying. Uses the PCL library (www.poinclouds.org).

Parameters
LSDRaster-> raster to convert to a LSDCloud
Author
DTM
Date
18/02/2014

The documentation for this class was generated from the following files: