I have to process 2 greyscale images in .pgm format and perform a search for moving vectors between the two. For the first image (reference) i'm ok, since I have to get just a 16 x 16 pixel array.
For the second (target) I've encountered some problems with time:
I take every possible block 16x16 of pixels and it takes about 5-7 minutes for only that image since I use for loops (standard libs).
Anyone can suggest me some code or libraries or links that might help me speed it up a little?
OS: Windows XP SP2
Software: MS Visual Studio .Net 2005