#include <HxImgFtorSetBorder2d.h>
Inheritance diagram for HxImgFtorSetBorder2d::

Public Types | |
| typedef HxImgFtorSetBorderKey | KeyType |
| The key type of this class. More... | |
Public Methods | |
| HxImgFtorSetBorder2d () | |
| Constructor. More... | |
| virtual | ~HxImgFtorSetBorder2d () |
| 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: HxFuncBorderConstant2d, HxFuncBorderMirror2d (default), HxFuncBorderPropagate2d. More... | |
Template parameters:
|
|||||
|
The key type of this class.
Reimplemented from HxImgFtorI1Cast. |
|
|||||||||
|
Constructor.
00020 : HxImgFtorI1Cast<ImgSigT>( 00021 HxImgFtorSetBorderKey(HxClassName<ImgSigT>())) 00022 { 00023 } |
|
|||||||||
|
Destructor.
00027 {
00028 }
|
|
||||||||||||||||||||||||
|
Calls one of the functions below to do the actual work based on the "borderType" tag: HxFuncBorderConstant2d, HxFuncBorderMirror2d (default), HxFuncBorderPropagate2d.
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 HxFuncBorderConstant2d(imgPtr, imgSize, borderSize, value);
00047 }
00048 break;
00049 case HXBORDERMIRROR :
00050 HxFuncBorderMirror2d(imgPtr, imgSize, borderSize);
00051 break;
00052 case HXBORDERPROPAGATE :
00053 HxFuncBorderPropagate2d(imgPtr, imgSize, borderSize);
00054 break;
00055 }
00056 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001