01-21-2008 08:16 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-21-2008 11:27 AM
01-21-2008 12:45 PM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-22-2008 06:54 AM
Hi, TiTou,
I guess, in general following happened:
Assumed, that you will create 8 bit image with default border (which is 3 by default).
So, if you will create image 1000x1000, then in the memory you will allocate 1024 bytes for each line (because alignment) and border will take additional 6 lines. So, real allocated size is 1024*1006 = 1030144. For 1781 images it will take 1781*1030144 = 1 834 686 464 bytes.
Now you have 100x1000. For this image you will allocate 128 bytes per line. Real allocated space for each image will take 128*1006=128768 bytes. For 14000 images it will take approx 14000*128768=1 802 752 000 bytes. I guess, a bit more - 14200 images or so. But you will never get 17810 images, because image geomethry is different from the first example.
Hint: you can obtain the Line Width with IMAQ GetImagePixelPtr function.
Hopefully it helps,
best regards,
Andrey.