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

HxImgFtorNgb2d Class Template Reference

Instantiation of generic algorithm for neighborhood operations on 2D images. More...

#include <HxImgFtorNgb2d.h>

Inheritance diagram for HxImgFtorNgb2d::

HxImgFtorI2Cast< DstImgSigT, SrcImgSigT > HxImgFtorI2 HxImgFunctor List of all members.

Public Types

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


Public Methods

 HxImgFtorNgb2d ()
 Constructor. More...

virtual ~HxImgFtorNgb2d ()
 Destructor. More...

virtual bool probeOp (HxTagList &tags) const
 Probe for border size. More...


Protected Methods

virtual void doIt (Img1DataPtrType dstPtr, Img2DataPtrType srcPtr, HxSizes dstSize, HxSizes srcSize, HxTagList &tags, HxImgFtorDescription *description=0)
 Do it. More...


Detailed Description

template<class DstImgSigT, class SrcImgSigT, class NgbT>
class HxImgFtorNgb2d< DstImgSigT, SrcImgSigT, NgbT >

Instantiation of generic algorithm for neighborhood operations on 2D images.

Template parameters:


Member Typedef Documentation

template<class DstImgSigT, class SrcImgSigT, class NgbT>
typedef HxImgFtorNgbKey HxImgFtorNgb2d::KeyType
 

The key type of this class.

Reimplemented from HxImgFtorI2Cast.


Constructor & Destructor Documentation

template<class DstImgSigT, class SrcImgSigT, class NgbT>
HxImgFtorNgb2d< DstImgSigT, SrcImgSigT, NgbT >::HxImgFtorNgb2d   [inline]
 

Constructor.

template<class DstImgSigT, class SrcImgSigT, class NgbT>
HxImgFtorNgb2d< DstImgSigT, SrcImgSigT, NgbT >::~HxImgFtorNgb2d   [virtual]
 

Destructor.

00034 {
00035 }


Member Function Documentation

template<class DstImgSigT, class SrcImgSigT, class NgbT>
bool HxImgFtorNgb2d< DstImgSigT, SrcImgSigT, NgbT >::probeOp HxTagList   tags const [virtual]
 

Probe for border size.

Reimplemented from HxImgFunctor.

00041 {
00042     NgbT ngb(tags);
00043     HxSizes borderSize = ngb.size() / HxSizes(2,2,2);
00044     HxAddTag<HxSizes>(tags, "borderSize", borderSize);
00045     return true;
00046 }

template<class DstImgSigT, class SrcImgSigT, class NgbT>
void HxImgFtorNgb2d< DstImgSigT, SrcImgSigT, NgbT >::doIt Img1DataPtrType    dstPtr,
Img2DataPtrType    srcPtr,
HxSizes    dstSize,
HxSizes    srcSize,
HxTagList   tags,
HxImgFtorDescription   description = 0
[protected, virtual]
 

Do it.

Parameters:
dstPtr  Output image: IS = dstSize, IBS = 0
srcPtr  Input image: IS = srcSize, IBS = taglist(borderSize)
Calls HxFuncNgbOp2dDispatch to dispatch the actual work.

Reimplemented from HxImgFtorI2Cast.

00055 {
00056     NgbT ngb(tags);
00057 
00058     if (description) {
00059         HxString v(typename NgbT::IteratorCategory().toString());
00060         v += ", ";
00061         v += typename NgbT::PhaseCategory().toString();
00062         description->setVariation(v);
00063     }
00064 
00065     HxFuncNgbOp2dDispatch(dstPtr, srcPtr, dstSize, ngb);
00066 }


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