38 void init(
const T &val);
60 #define imRef(im, x, y) (im->access[y][x]) 63 #define imPtr(im, x, y) &(im->access[y][x]) 73 for (
int i = 0; i <
h; i++)
77 memset(
data, 0, w * h *
sizeof(T));
88 T *ptr =
imPtr(
this, 0, 0);
97 memcpy(im->
data,
data, w * h *
sizeof(T));