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

Public Types | |
| typedef HxImgFtorGenConvK1dKey | KeyType |
| The key type of this class. More... | |
Public Methods | |
| HxImgFtorGenConv2dK1d () | |
| Constructor. More... | |
| virtual | ~HxImgFtorGenConv2dK1d () |
| Destructor. More... | |
Protected Methods | |
| virtual void | doIt (Img1DataPtrType dstPtr, Img2DataPtrType srcPtr, Img3DataPtrType kerPtr, HxSizes dstSize, HxSizes srcSize, HxSizes kerSize, HxTagList &tags, HxImgFtorDescription *description=0) |
| Do it. More... | |
Template parameters:
|
|||||
|
The key type of this class.
Reimplemented from HxImgFtorI3Cast. |
|
|||||||||
|
Constructor.
00026 : HxImgFtorI3Cast<DstImgSigT, SrcImgSigT, KerImgSigT>( 00027 HxImgFtorGenConvK1dKey(HxClassName<DstImgSigT>(), 00028 HxClassName<SrcImgSigT>(), HxClassName<KerImgSigT>(), 00029 HxClassName<PixOpT>(), HxClassName<RedOpT>(), 00030 HxClassName<KernelT>())) 00031 { 00032 #ifdef CD_TRACE 00033 HxEnvironment::instance()->outputStream() 00034 << "HxImgFtorGenConv2dK1d::HxImgFtorGenConv2dK1d()" << STD_ENDL; 00035 #endif 00036 } |
|
|||||||||
|
Destructor.
00043 {
00044 #ifdef CD_TRACE
00045 HxEnvironment::instance()->outputStream()
00046 << "HxImgFtorGenConv2dK1d::~HxImgFtorGenConv2dK1d()" << STD_ENDL;
00047 #endif
00048 }
|
|
||||||||||||||||||||||||||||||||||||||||
|
Do it.
Reimplemented from HxImgFtorI3Cast.
00060 {
00061 int dimension = HxGetTag<int>(tags, "dimension");
00062 bool inplace = HxGetTag(tags, "inplace", false);
00063
00064 if (inplace && description)
00065 description->setVariation("inplace");
00066
00067 HxSizes borderSize = HxGetTag(tags, "borderSize", HxSizes(0,0,0));
00068 int borderWidth = borderSize.x();
00069 int borderHeight = borderSize.y();
00070 int kerWidth = kerSize.x();
00071 if ((borderWidth == 0) && (dimension == 1))
00072 borderWidth = kerWidth / 2;
00073 if ((borderHeight == 0) && (dimension == 2))
00074 borderHeight = kerWidth / 2;
00075 srcPtr.incXYZ(borderWidth, borderHeight);
00076
00077 PixOpT pixOp(tags);
00078 RedOpT redOp(tags);
00079 KernelT kernel(kerPtr, kerSize, tags);
00080
00081 HxFuncGenConv2dK1dDispatch(dstPtr, srcPtr, kernel, dstSize,
00082 pixOp, redOp, dimension, inplace);
00083 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001