#include <HxMfIdentity.h>
Public Methods | |
| HxMfIdentity (HxImageData *src, int pixDim=0) | |
| Constructor. More... | |
| ~HxMfIdentity () | |
| Destructor. More... | |
| HxImageData * | source () const |
| The source image of the frame. More... | |
| HxImageData * | result () const |
| The result image of the frame. More... | |
The method frame just copies the image data to ensure the value paradigm. So, result() will point to a copy of src (with the same signature, sizes and pixel values) to take care of the value paradigm. However, if (pixDim != 0) it will have the specified pixel dimensionality.
|
||||||||||||
|
Constructor.
00016 : _source(src)
00017 {
00018 if (!_source)
00019 return;
00020
00021 HxImageSignature srcSig(_source->signature());
00022 if (pixDim != 0)
00023 srcSig.setPixelDimensionality(pixDim);
00024 HxSizes sizes = _source->sizes();
00025
00026 _result = HxImgDataFactory::instance().makeImage(srcSig, sizes);
00027 if (_result)
00028 _result->set(_source);
00029 }
|
|
|
Destructor.
00032 {
00033 }
|
|
|
The source image of the frame.
00037 {
00038 return _source;
00039 }
|
|
|
The result image of the frame.
00043 {
00044 return _result;
00045 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001