What data type to specify in the CImg C++?

Hello, there is a piece of code
CImg <unsigned char> our_img("...");

Wonder why type unsigned char? Is it possible a different type? And what does it depend?
March 23rd 20 at 19:22
1 answer
March 23rd 20 at 19:24
This is the type which holds 1 pixel. From this type depends on the number of possible colors.
Other possible and I would suggest to use the type with a fixed size, such as uint32_t.

Find more questions by tags C++