On 2/22/07, comp knight <[EMAIL PROTECTED]> wrote:
> First of all sorry for not providing the complete information...
>
> The image that is being used is a bmp (24bpp).
> I'm actually trying to dissect the image into several images like in a
> Handwritten Character Recognition system.
> Image file traversal is not feasible as such.
Why?
> The initial image is larger than 255*255 (255 being the limit) and hence i'm
> not able to store it in an array.
Why is 255 the limit?
> The only data structure that i intend to use is a static array since dynamic
> allocation seems very much improbable.
Why?
What happens if you run this short program? I get 4000000
#include <stdio.h>
#define IDX_MAX 1000
int main() {
int i, j, arr_size;
int my_array[IDX_MAX][IDX_MAX];
for(i = 0; i < IDX_MAX; i++) {
for(j = 0; j < IDX_MAX; j++) {
my_array[i][j] = 10;
}
}
arr_size = sizeof(my_array);
printf("size of array = %d\n", arr_size);
return 0;
}
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi