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?".
Hi everyone,
I am a beginner, can you please advice me onhow to extract a block of pixels in an efficient way? I acutally want to scan with a window over the image. In pseudo code:
The most efficient way to get pixels is to get one or a few scanlines with getConstPixels(). If you want to update the pixels, use getPixels(). Assume your neighborhood kernel is 5 x 5. You will want to call getConstPixels() as getConstPixels( 0, y, columns, 5 ).