Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxImgFtorSetBorder3d Class Template Reference

Instantiation of generic algorithm for border operations on 3D images. More...

#include <HxImgFtorSetBorder3d.h>

Inheritance diagram for HxImgFtorSetBorder3d::

HxImgFtorI1Cast HxImgFtorI1 HxImgFunctor List of all members.

Public Types

typedef HxImgFtorSetBorderKey KeyType
 The key type of this class. More...


Public Methods

 HxImgFtorSetBorder3d ()
 Constructor. More...

virtual ~HxImgFtorSetBorder3d ()
 Destructor. More...


Protected Methods

virtual void doIt (ImgDataPtrType imgPtr, HxSizes imgSize, HxTagList &tags, HxImgFtorDescription *=0)
 Calls one of the functions below to do the actual work based on the "borderType" tag: HxFuncBorderConstant3d, HxFuncBorderMirror3d (default), HxFuncBorderPropagate3d. More...


Detailed Description

template<class ImgSigT>
class HxImgFtorSetBorder3d< ImgSigT >

Instantiation of generic algorithm for border operations on 3D images.

Template parameters:


Member Typedef Documentation

template<class ImgSigT>
typedef HxImgFtorSetBorderKey HxImgFtorSetBorder3d::KeyType
 

The key type of this class.

Reimplemented from HxImgFtorI1Cast.


Constructor & Destructor Documentation

template<class ImgSigT>
HxImgFtorSetBorder3d< ImgSigT >::HxImgFtorSetBorder3d   [inline]
 

Constructor.

template<class ImgSigT>
HxImgFtorSetBorder3d< ImgSigT >::~HxImgFtorSetBorder3d   [virtual]
 

Destructor.

00027 {
00028 }


Member Function Documentation

template<class ImgSigT>
void HxImgFtorSetBorder3d< ImgSigT >::doIt ImgDataPtrType    imgPtr,
HxSizes    imgSize,
HxTagList   tags,
HxImgFtorDescription   description = 0
[protected, virtual]
 

Calls one of the functions below to do the actual work based on the "borderType" tag: HxFuncBorderConstant3d, HxFuncBorderMirror3d (default), HxFuncBorderPropagate3d.

Reimplemented from HxImgFtorI1Cast.

00036 {
00037     HxBorderType borderType
00038         = HxGetTag(tags, "borderType", HxBorderType(HXBORDERMIRROR));
00039     HxSizes borderSize = HxGetTag(tags, "borderSize", HxSizes(0, 0, 0));
00040 
00041     switch (borderType)
00042     {
00043     case HXBORDERCONSTANT   :
00044         {
00045             HxValue value = HxGetTag(tags, "borderValue", HxValue(0));
00046             HxFuncBorderConstant3d(imgPtr, imgSize, borderSize, value);
00047         }
00048         break;
00049     case HXBORDERMIRROR     :
00050         HxFuncBorderMirror3d(imgPtr, imgSize, borderSize);
00051         break;
00052     case HXBORDERPROPAGATE  :
00053         HxFuncBorderPropagate3d(imgPtr, imgSize, borderSize);
00054         break;
00055     }
00056 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 3 14:19:01 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001