#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
int L_HXIMAGEREP | HxImageMinSize (HxImageRep img) |
Minimum (one dimensional) size. More... |
|
Minimum (one dimensional) size. Returns minimum(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 0; 00020 } 00021 00022 int i, d = img.dimensionality(), s = img.dimensionSize(1); 00023 00024 for (i=2; i<=d; i++) 00025 if (img.dimensionSize(i) < s) 00026 s = img.dimensionSize(i); 00027 00028 return s; 00029 } |