Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxTranslate.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxTranslate (HxImageRep img, int doX, int doY, int doZ=1)
 Translation. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxTranslate HxImageRep    img,
int    doX,
int    doY,
int    doZ = 1
 

Translation.

00014 {
00015     if (img.dimensionality() == 2) {
00016         HxMatrix m(img.sizes().x(),img.sizes().y());
00017             m = m.translate2d(doX, doY);
00018         return img.geometricOp2d(m, NEAREST, FORWARD, 0, HxValue(0));
00019     } else {
00020         HxEnvironment::instance()->errorStream()
00021             << "3d Translation not implemented yet" << STD_ENDL;
00022         HxEnvironment::instance()->flush();
00023         return HxImageRep();
00024     }
00025 }


Generated on Tue Feb 3 14:18:51 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001