#include <HxMfUpo.h>
Public Methods | |
HxMfUpo (HxImageData *src, HxString upoName) | |
Constructor. More... | |
~HxMfUpo () | |
Destructor. More... | |
HxImageData * | source () const |
The source image of the frame. More... | |
HxImageData * | result () const |
The result image of the frame. More... |
A result image will be allocated with the same size as the source image. The type of the result image is obtained from the HxImgFtorRuleBase via
resulttype of upo<src,upoName>
|
Constructor.
00018 : _source(src) 00019 { 00020 if (!_source) 00021 return; 00022 00023 HxImageSignature srcSig(_source->signature()); 00024 00025 HxImgFtorRuleBase::QueryResultType resultSig 00026 = HxImgFtorRuleBase::instance().getResultType( 00027 srcSig, "upo", srcSig.toString(), upoName); 00028 00029 if (int(resultSig)) { 00030 HxSizes sizes = _source->sizes(); 00031 00032 _result = HxImgDataFactory::instance().makeImage( 00033 HxImageSignature(resultSig), sizes); 00034 } 00035 else 00036 _result = 0; 00037 } |
|
Destructor.
00040 { 00041 } |
|
The source image of the frame.
00045 { 00046 return _source; 00047 } |
|
The result image of the frame.
00051 { 00052 return _result; 00053 } |