aimsdata  5.0.5
Neuroimaging data handling
aims::strel::ShapeFactory Class Reference

aims::strel::Shape generator More...

#include <aims/connectivity/structuring_element.h>

Static Public Member Functions

static Shapecreate (const std::string &type, const double amplitude=1., const bool usecenter=false)
 
static Shapecreate (const std::string &type, const Point3d &origin, const double amplitude=1., const bool usecenter=false)
 
static Shapecreate (const std::string &type, const Point3dl &origin, const double amplitude=1., const bool usecenter=false)
 
static Shapecreate (const std::string &type, const std::vector< double > &amplitude, const bool usecenter=false)
 
static Shapecreate (const std::string &type, const Point3d &origin, const std::vector< double > &amplitude, const bool usecenter=false)
 
static Shapecreate (const std::string &type, const Point3dl &origin, const std::vector< double > &amplitude, const bool usecenter=false)
 
static void registerShape (const std::string &type, const Shape &strel)
 
static std::set< std::string > shapes ()
 

Static Protected Member Functions

static void init ()
 
static std::map< std::string, carto::rc_ptr< Shape > > & _map ()
 

Detailed Description

aims::strel::Shape generator

Here are listed the registered keywords as of July 2014:

registerShape( "cube", Cube() );
registerShape( "squarexy", SquareXY() );
registerShape( "squarexz", SquareXZ() );
registerShape( "squareyz", SquareYZ() );
registerShape( "sphere", Sphere() );
registerShape( "diskxy", DiskXY() );
registerShape( "diskxz", DiskXZ() );
registerShape( "diskyz", DiskYZ() );
registerShape( "cross", Cross() );
registerShape( "crossxy", CrossXY() );
registerShape( "crossxz", CrossXZ() );
registerShape( "crossyz", CrossYZ() );
registerShape( "diagonalcross", DiagonalCross() );
registerShape( "diagonalcrossxy", DiagonalCrossXY() );
registerShape( "diagonalcrossxz", DiagonalCrossXZ() );
registerShape( "diagonalcrossyz", DiagonalCrossYZ() );
registerShape( "circlexy", CircleXY() );
registerShape( "clockwisecirclexy", ClockWiseCircleXY() );

Definition at line 327 of file structuring_element.h.

Member Function Documentation

◆ _map()

static std::map<std::string,carto::rc_ptr<Shape> >& aims::strel::ShapeFactory::_map ( )
staticprotected

◆ create() [1/6]

static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const double  amplitude = 1.,
const bool  usecenter = false 
)
static

◆ create() [2/6]

static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const Point3d origin,
const double  amplitude = 1.,
const bool  usecenter = false 
)
static

◆ create() [3/6]

static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const Point3dl origin,
const double  amplitude = 1.,
const bool  usecenter = false 
)
static

◆ create() [4/6]

static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const std::vector< double > &  amplitude,
const bool  usecenter = false 
)
static

◆ create() [5/6]

static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const Point3d origin,
const std::vector< double > &  amplitude,
const bool  usecenter = false 
)
static

◆ create() [6/6]

static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const Point3dl origin,
const std::vector< double > &  amplitude,
const bool  usecenter = false 
)
static

◆ init()

static void aims::strel::ShapeFactory::init ( )
staticprotected

◆ registerShape()

static void aims::strel::ShapeFactory::registerShape ( const std::string &  type,
const Shape strel 
)
static

◆ shapes()

static std::set<std::string> aims::strel::ShapeFactory::shapes ( )
static

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