#include <HxMfIdentity.h>
Public Methods | |
| HxMfIdentity (HxImageData *objImg, int pixDim=0) | |
| Constructor. More... | |
| ~HxMfIdentity () | |
| Destructor. More... | |
| HxImageData * | object () const |
| The object 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.
|
||||||||||||
|
Constructor. Object() and result() will point to a copy of objImg (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.
00016 : _object(objImg)
00017 {
00018 if (!_object)
00019 return;
00020
00021 HxImageSignature objSig(_object->signature());
00022 if (pixDim != 0)
00023 objSig.setPixelDimensionality(pixDim);
00024 HxSizes sizes = _object->sizes();
00025
00026 _result = HxImgDataFactory::instance().makeImage(objSig, sizes);
00027 if (_result)
00028 _result->set(_object);
00029 _object = _result;
00030 }
|
|
|
Destructor.
00033 {
00034 }
|
|
|
The object image of the frame.
00038 {
00039 return _object;
00040 }
|
|
|
The result image of the frame.
00044 {
00045 return _result;
00046 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001