[magick-users] Unable to Implement Quantization [Again]

Gabe Schaffer magick at gabe.com
Mon Sep 18 22:25:29 CDT 2006


> Folks I still unable to make my quantization algorithm work =/ Ive re
> implemented with a cleaner layout but I still have the same image as
> output. I'm not sure about what to do anymore.The algorithm it self is
> rather simple so I must be messing with something in the api
> http://pastey.net/907

Does it finish unusally quickly? The problem might be on line 41 where
you have "if ((p == ( const PixelPacket* ) NULL)..."

Since you never initialize p to anything, it might be NULL, causing
the function to return before it ever processes any pixels.

GNS


More information about the Magick-users mailing list