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

HxScale.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxScale (HxImageRep img, double sx, double sy, double sz=1.0, HxGeoIntType gi=LINEAR, int adjustSize=1)
 Scaling. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxScale HxImageRep    img,
double    sx,
double    sy,
double    sz = 1.0,
HxGeoIntType    gi = LINEAR,
int    adjustSize = 1
 

Scaling.

00016 {
00017     HxString fname("HxScale");
00018 
00019     if (img.isNull())
00020     {
00021         HxGlobalError::instance()->reportError(fname, img.name(), "null image", HxGlobalError::HX_GE_INVALID);
00022         return HxImageRep();
00023     }
00024 
00025     if (img.dimensionality() == 2) {
00026         HxMatrix m = HxMatrix::scale2d(sx, sy);
00027         return img.geometricOp2d(m, gi, FORWARD, adjustSize);
00028     } else {
00029         HxEnvironment::instance()->errorStream()
00030             << "3d scaling not implemented yet" << STD_ENDL;
00031         HxEnvironment::instance()->flush();
00032         return HxImageRep();
00033     }
00034 }


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