1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| int birthmap[BM_dim*3];
blabla::cube * img3d = new blabla::cube[dimT]
//blabla::cube vient d'une bibliothèque développée en parallèle
class cube
{
public:
// Constructors and destructors
cube() : value(0), isCenter(0), isNew(0), toDraw(0), mean_inside(0), mean_outside(0), Attach(0), total_E(0) {} // Default constructor
cube( unsigned char d_value, bool d_isCenter, bool d_isNew, bool d_toDraw, float d_mean_inside, float d_mean_outside, float d_Attach, float d_total_E);
// Constructor
~cube(); // Default destructor
// Variables
unsigned char value; // Value of the point at this pixel
bool isCenter; // 1 : this pixel is the center of one cube
bool isNew; // 1 : this pixel is a new point
bool toDraw; // 1 : this pixel is to draw
float mean_inside; // Mean inside the cube
float mean_outside; // Mean outside the cube, in the crown
float Attach; // Attach to data
float total_E; // Total of energy
// Functions
float overlap(int x, int y, int z, int i, int j, int k);
}; |
Partager