unable to initialize a 512x512 array
Posted
by
user1432196
on Stack Overflow
See other posts from Stack Overflow
or by user1432196
Published on 2012-06-02T09:19:38Z
Indexed on
2012/06/02
10:41 UTC
Read the original article
Hit count: 149
hey all i would just like to as why i keep getting a stack overflow error whenever i try to initialize a 512x512 array? Can anyone help? below is part of my code
CImg<float> image("lena8bit.jpg");
CImgDisplay main_disp(image,"Main image");
int ImgArray [512][512];
Basically all i want to do is get the pixel values from the image and store it into this array. The image is 512x512 hence the array size.
Hope to hear you answers, thanks!
© Stack Overflow or respective owner