Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. int size;
  2. size = channels * width * height * sizeof(char);
  3. unsigned char *image = NULL;
  4. image = (unsigned char *) malloc(size);
  5. // fill with gray
  6. memset(image, 96, size);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement