#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
int L_HXIMAGEREP | HxImageMaxSize (HxImageRep img) |
Maximum (one dimensional) size. More... |
|
Maximum (one dimensional) size. Returns Maximum(img.dimensionSize(1), ..., img.dimensionSize(n)) where n == img.dimensionality().
00013 { 00014 HxString fname("HxImageMaxSize"); 00015 00016 if (img.isNull()) 00017 { 00018 HxGlobalError::instance()->reportError(fname, img.name(), "null image", HxGlobalError::HX_GE_INVALID); 00019 return HxImageRep(); 00020 } 00021 00022 int i, d = img.dimensionality(), s = img.dimensionSize(1); 00023 00024 00025 for (i=2; i<=d; i++) 00026 if (img.dimensionSize(i) > s) 00027 s = img.dimensionSize(i); 00028 00029 return s; 00030 } |