Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
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.