i wrote a program which find every pixel and check their around. I want to write every checked pixel to 2d array. For this reason i initialized struct and with help of struct 2d array. But when i want to fill 2d array with checked pixels after x=167, the program can not terminate its operation. In advance thank you very much!
I have 2d array (frame[i][j]). I want to check around every pixel in frame[i][j] and i do this int the function clust(int x, int y). After this i want to fill 2d array (cluster[MAXCLU][MAXPIX]) with these checked pixels. But i do not know how i can fill cluster[MAXCLU][MAXPIX] exactly. Can you help me?Can you advice me other thing?
how's the data supposed to be organized? Has x/y in cluster the same place like in frame? It doesn't look like. How did you come to the arbitrary looking 34?
I think it's too much to be a one-byte-behind-another memory type. And it's not 60M, it's 60 * 4M (240M). Anyways it sounds exagerate, hope that program will work anyways without having to edit this size.