From e3f8e44f3f80f3ef175b273f00c6e2c6960dea32 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Wed, 27 Jun 2012 23:35:23 -0400 Subject: working histogram --- fly-tools/derive-background/pixel.c | 113 ++++++++++++++++++++++-------------- 1 file changed, 69 insertions(+), 44 deletions(-) (limited to 'fly-tools') diff --git a/fly-tools/derive-background/pixel.c b/fly-tools/derive-background/pixel.c index 19c391d..b0e1cc2 100644 --- a/fly-tools/derive-background/pixel.c +++ b/fly-tools/derive-background/pixel.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -89,50 +90,74 @@ int main(int argc, char **argv ) { magick_wand = NewMagickWand(); MagickReadImage(magick_wand, filename); - PixelIterator* iterator = NewPixelIterator(magick_wand); - - PixelWand **pixels = PixelGetNextIteratorRow(iterator,&number_wands); - printf("Image number:%d Filename: %s \n", image, filename); - for (i=0; pixels != (PixelWand **) NULL; i++) { - for (j=0; j