47 #define M_PI 3.14159265358979323846f
55void UnevenMatrix::alloc_data()
58 LOGERR(
"No data space need to be allocated for UnevenMatrix, check you desc_data...");
63 map< int, Xdim >::const_iterator iter;
72 this->
data =
new float[size];
74 catch( bad_alloc exception ) {
75 LOGERR(
"memory allocation for UnevenMatrix failed");
78 LOGERR(
"Unknown error in memory allocation for UnevenMatrix");
176int PolarData::test_init_desc_data()
184 cout <<
"allocation of data success" << endl;
EMData stores an image's data and defines core image processing routines.
float * data
store all data in one dimension float array for cache efficiency, we calculate the offset for x,...
int tot_size
the total size of the data
map< int, Xdim > desc_data
describe for each y, the x dimension's size and range
int get_xsize(int y)
get the x dim size for a given y
#define InvalidValueException(val, desc)