21 #ifndef LIBMV_IMAGE_IMAGE_H
22 #define LIBMV_IMAGE_IMAGE_H
60 switch (array_type_) {
73 default:
size = 0; assert(0);
75 size +=
sizeof(*this);
80 switch (array_type_) {
81 case BYTE:
delete reinterpret_cast<Array3Du*
>(array_);
break;
82 case FLOAT:
delete reinterpret_cast<Array3Df*
>(array_);
break;
83 case INT:
delete reinterpret_cast<Array3Di*
>(array_);
break;
84 case SHORT:
delete reinterpret_cast<Array3Ds*
>(array_);
break;
91 array_type_ = f.array_type_;
92 switch (array_type_) {
94 delete reinterpret_cast<Array3Du*
>(array_);
98 delete reinterpret_cast<Array3Df*
>(array_);
102 delete reinterpret_cast<Array3Di*
>(array_);
106 delete reinterpret_cast<Array3Ds*
>(array_);
116 if (array_type_ ==
BYTE) {
117 return reinterpret_cast<Array3Du*
>(array_);
123 if (array_type_ ==
FLOAT) {
124 return reinterpret_cast<Array3Df*
>(array_);
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
3D array (row, column, channel).
Array3Df * AsArray3Df() const
Array3Du * AsArray3Du() const
Image & operator=(const Image &f)
Array3D< unsigned char > Array3Du
Array3D< float > Array3Df
Array3D< short > Array3Ds