Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxMfNgb Class Reference

Class definition of method frame for neighbourhood operations. More...

#include <HxMfNgb.h>

List of all members.

Public Methods

 HxMfNgb (HxImageData *srcImg, HxString ngbName, HxTagList &tags)
 Constructor. More...

 ~HxMfNgb ()
 Destructor. More...

HxImageDatasource () const
 The argument image of the frame. More...

HxImageDataresult () const
 The result image of the frame. More...

bool preOpIsOk () const
 Indicates whether initialization was OK. More...


Detailed Description

Class definition of method frame for neighbourhood operations.


Constructor & Destructor Documentation

HxMfNgb::HxMfNgb HxImageData   srcImg,
HxString    ngbName,
HxTagList   tags
 

Constructor.

A result image will be allocated with the same size as the source image. The image functor rule base will be queried for the result type.

00020     : _source(srcImg), _result(0), _preOpIsOk(true)
00021 {
00022     if (!_source)
00023     {
00024         _preOpIsOk = false;
00025         return;
00026     }
00027 
00028     HxImageSignature srcSig(_source->signature());
00029 
00030     HxImageSignature resultSig
00031         = HxImgFtorRuleBase::instance().getResultType(
00032                 srcSig, "ngb", srcSig.toString(), ngbName);
00033 
00034     HxSizes sizes = _source->sizes();
00035 
00036     _result = HxImgDataFactory::instance().makeImage(resultSig, sizes);
00037 }

HxMfNgb::~HxMfNgb  
 

Destructor.

00040 {
00041 }


Member Function Documentation

HxImageData * HxMfNgb::source   const
 

The argument image of the frame.

00045 { 
00046     return _source; 
00047 }

HxImageData * HxMfNgb::result   const
 

The result image of the frame.

00051 { 
00052     return _result; 
00053 }

bool HxMfNgb::preOpIsOk   const [inline]
 

Indicates whether initialization was OK.

00050 {
00051     return _preOpIsOk;
00052 }


The documentation for this class was generated from the following files:
Generated on Tue Jan 8 13:59:33 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001