From ee0b44379b82af3078b96f0a4c1a8ae1718dc492 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Wed, 27 Jun 2012 15:27:05 -0400 Subject: on our way --- fly-tools/derive-background/pixel.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/fly-tools/derive-background/pixel.c b/fly-tools/derive-background/pixel.c index b007001..19c391d 100644 --- a/fly-tools/derive-background/pixel.c +++ b/fly-tools/derive-background/pixel.c @@ -62,10 +62,10 @@ int main(int argc, char **argv ) { // initialize this crazy array. uint8_t ****array; - uint8_t dim1 = nImages; - uint8_t dim2 = height; - uint8_t dim3 = width; - uint8_t dim4 = 3; + int dim1 = nImages; + int dim2 = height; + int dim3 = width; + int dim4 = 3; array = calloc(dim1, sizeof(array[0])); for(i = 0; i < dim1; i++) @@ -88,12 +88,11 @@ int main(int argc, char **argv ) { magick_wand = NewMagickWand(); MagickReadImage(magick_wand, filename); - sleep(1); PixelIterator* iterator = NewPixelIterator(magick_wand); PixelWand **pixels = PixelGetNextIteratorRow(iterator,&number_wands); - printf("Image number:%d Filename: %s", image, filename); + printf("Image number:%d Filename: %s \n", image, filename); for (i=0; pixels != (PixelWand **) NULL; i++) { for (j=0; j