Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int size;
- size = channels * width * height * sizeof(char);
- unsigned char *image = NULL;
- image = (unsigned char *) malloc(size);
- // fill with gray
- memset(image, 96, size);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement