Read each pixel and neighbours with Image.pixelColor()
Posted: 2008-06-12T03:08:53-07:00
Hi,
I need to access each pixel of an image one by one, from left to right, top to bottom. For each pixel, I need to read the pixel itself, the left neighbour and the top one, do some calculations, store the result on another image, and then go on with the next. Is there any solution better than read each pixel one by one with Image.pixelColor()? May a pixel cache improve performances? I am using Magick++ with Visual C++ 8.0
thank you for help.
I need to access each pixel of an image one by one, from left to right, top to bottom. For each pixel, I need to read the pixel itself, the left neighbour and the top one, do some calculations, store the result on another image, and then go on with the next. Is there any solution better than read each pixel one by one with Image.pixelColor()? May a pixel cache improve performances? I am using Magick++ with Visual C++ 8.0
thank you for help.