5 * Une classe représentant une image de float.
10 HeatImage(int w
, int h
, float* image
= 0);
15 memset(this->image
, 0, this->w
* this->h
* sizeof(float));
19 inline void setCuda(int x
, int y
, float value
)
21 this->image
[x
+ this->w
* y
] = value
;
24 inline void set(int x
, int y
, float value
)
26 this->image
[x
+ this->w
* y
] = value
;
30 inline float getCuda(int x
, int y
)
32 return this->image
[x
+ this->w
* y
];
57 inline void swapWith(HeatImage
& other
)
59 float* tmp
= this->image
;
60 this->image
= other
.image
;
64 inline float*& getRaw() { return this->image
; }
65 inline void setRaw(float* image
) { this->image
= image
; }