Image Component Library (ICL)
Classes | Public Types | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
icl::geom::Primitive3DFilter Class Reference

Class for filtering point clouds according to a set of primitives and a filter configuration. More...

#include <Primitive3DFilter.h>

Classes

struct  ColorAction
 color action More...
 
struct  FilterAction
 a general filter action More...
 
struct  FilterConfig
 filter config More...
 
struct  FilterDepthImgAction
 filterdepthimg action More...
 
struct  IntensityAction
 intensity action More...
 
struct  LabelAction
 label action More...
 
struct  Primitive3D
 a primitive More...
 
struct  Quaternion
 quaternion describing the orientation of the primitive More...
 
struct  RemoveAction
 remove action More...
 
struct  SetposAction
 setpos action More...
 

Public Types

enum  PrimitiveType { CUBE, SPHERE, CYLINDER }
 the primitive type More...
 

Public Member Functions

 Primitive3DFilter (const FilterConfig &config)
 Constructor. More...
 
virtual ~Primitive3DFilter ()
 Destructor. More...
 
void setConfig (const FilterConfig &config)
 set filter config More...
 
void apply (const std::vector< Primitive3D > &primitives, PointCloudObjectBase &pcObj, core::Img32f *depthImage=0)
 applies the filter operation to the given point cloud More...
 

Private Attributes

utils::CLProgram program
 
utils::CLBuffer pcbuffer
 
utils::CLBuffer groupmapbuffer
 
utils::CLBuffer actionmapbuffer
 
utils::CLBuffer formulabuffer
 
utils::CLKernel kernelCreateGroupMap
 
utils::CLKernel kernelCreateActionMap
 
FilterConfig config
 

Static Private Attributes

static const char * KERNEL_CODE
 

Detailed Description

Class for filtering point clouds according to a set of primitives and a filter configuration.

Member Enumeration Documentation

◆ PrimitiveType

the primitive type

Enumerator
CUBE 
SPHERE 
CYLINDER 

Constructor & Destructor Documentation

◆ Primitive3DFilter()

icl::geom::Primitive3DFilter::Primitive3DFilter ( const FilterConfig config)

Constructor.

◆ ~Primitive3DFilter()

virtual icl::geom::Primitive3DFilter::~Primitive3DFilter ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ apply()

void icl::geom::Primitive3DFilter::apply ( const std::vector< Primitive3D > &  primitives,
PointCloudObjectBase pcObj,
core::Img32f depthImage = 0 
)

applies the filter operation to the given point cloud

Parameters
primitivesa vector of geometric primitives
pcObjthe point cloud to be filtered
depthImagethe optional depth image (only needed if there is a filterdepthimg tag in the config)

◆ setConfig()

void icl::geom::Primitive3DFilter::setConfig ( const FilterConfig config)
inline

set filter config

Member Data Documentation

◆ actionmapbuffer

utils::CLBuffer icl::geom::Primitive3DFilter::actionmapbuffer
private

◆ config

FilterConfig icl::geom::Primitive3DFilter::config
private

◆ formulabuffer

utils::CLBuffer icl::geom::Primitive3DFilter::formulabuffer
private

◆ groupmapbuffer

utils::CLBuffer icl::geom::Primitive3DFilter::groupmapbuffer
private

◆ KERNEL_CODE

const char* icl::geom::Primitive3DFilter::KERNEL_CODE
staticprivate

◆ kernelCreateActionMap

utils::CLKernel icl::geom::Primitive3DFilter::kernelCreateActionMap
private

◆ kernelCreateGroupMap

utils::CLKernel icl::geom::Primitive3DFilter::kernelCreateGroupMap
private

◆ pcbuffer

utils::CLBuffer icl::geom::Primitive3DFilter::pcbuffer
private

◆ program

utils::CLProgram icl::geom::Primitive3DFilter::program
private

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