7 # endif /* __cplusplus */
11 Image
*AllocImage(UInt size_x
, UInt size_y
, ImageType type
);
12 Void
FreeImage(Image
*image
);
13 Void
CopyImage(Image
*image_in
, Image
*image_out
);
14 Void
SetConstantImage(Image
*image
, Float val
);
15 Void
SubImage(Image
*image_in1
, Image
*image_in2
, Image
*image_out
);
17 Vop
* SallocVop (void);
18 Vop
* AllocVop (UInt x
, UInt y
);
19 Void
SfreeVop (Vop
*vop
);
20 Void
FreeVop (Vop
*vop
);
21 Void
CopyVopNonImageField (Vop
*in
, Vop
*out
);
25 # endif /* __cplusplus */
30 #ifndef _TUH_TOOLBOX_H
31 #define _TUH_TOOLBOX_H
35 # endif /* __cplusplus */
37 #define MAX_UCHAR_VAL 255
38 #define MAX_SHORT_VAL 32767
39 #define MAX_FLOAT_VAL 2000000000
42 #define SIGN0(a) ( ((a)<0) ? -1 : (((a)>0) ? 1 : 0) )
46 #define SIGN(a) ((a)<0 ? (-1) : (1))
50 #define ROUND(x) ( (Int) ((x) + SIGN0(x)*0.5) )
53 #include "mom_structs.h"
58 # endif /* __cplusplus */
60 #endif /* ifndef _TUH_TOOLBOX_H */