#include <HxMfNgb.h>
Public Methods | |
HxMfNgb (HxImageData *srcImg, HxString ngbName, HxTagList &tags) | |
Constructor. More... | |
~HxMfNgb () | |
Destructor. More... | |
HxImageData * | source () const |
The argument image of the frame. More... | |
HxImageData * | result () const |
The result image of the frame. More... | |
bool | preOpIsOk () const |
Indicates whether initialization was OK. More... |
|
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 } |
|
Destructor.
00040 { 00041 } |
|
The argument image of the frame.
00045 { 00046 return _source; 00047 } |
|
The result image of the frame.
00051 { 00052 return _result; 00053 } |
|
Indicates whether initialization was OK.
00050 { 00051 return _preOpIsOk; 00052 } |