Posted: 2006-04-06T17:21:20-07:00
Variable inPixel can be NULL if your image is an odd height or width. Either check for this condition and bail or use num_row-1 and num_cols-1 in your loops.
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=6300