I want to compare the pixel of the two different images. I am comparing the pixel of first image with all the pixels of the second Image. Here is my code stuff:
The order of your algorithm is n^4.
I guess that you could drive that down to n^3 if you
CounterIf color i occurs x times in bitmap and y times in bitmap2,
Counter = Counter + x*y