#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
| HxImageRep L_HXIMAGEREP | HxMakeParabola1d (double rho, double accuracy, int maxfsize, int fsize=-1) |
| Generate a kernel image resembling a parabola. More... | |
|
||||||||||||||||||||
|
Generate a kernel image resembling a parabola.
00015 {
00016 HxString fname("HxMakeParabola1d");
00017
00018 if (acc < 0)
00019 {
00020 HxGlobalError::instance()->reportError(fname, "Illegal value of accuracy", HxGlobalError::HX_GE_INVALID);
00021 return HxImageRep();
00022 }
00023
00024 if (maxfsize < 1)
00025 {
00026 HxGlobalError::instance()->reportError(fname, "Illegal value of maxfsize (>=1)", HxGlobalError::HX_GE_INVALID);
00027 return HxImageRep();
00028 }
00029
00030 HxTagList tags;
00031
00032 HxAddTag(tags, "rho", HxVec3Double(rho,rho,rho));
00033 HxAddTag(tags, "accuracy", acc);
00034 HxAddTag(tags, "size", fsize);
00035 HxAddTag(tags, "maxSize", maxfsize);
00036
00037 return HxImageFactory::instance().fromNamedGenerator(
00038 HXIMAGESIG2DDOUBLE, "parabola1d", tags);
00039 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001