I want to program a function that gets 2 Bitmaps (small image and large image).
It should search the position of the small one in the large image. Then it should return the (X/Y) Point where the subimage is located at.
I have already found a bunch of solutions, but all were written in Java, for example this one: Find known sub image in larger image
So I tried to reprogram them in C#, but I always failed, because the code is not real Java. The method Image.getPixel(x, y) does not exist there and I don’t really know, what the threshold should be.
There you go. This function return all locations found in the larg image, because small image could also multiple times contained in the large one. If you want, you can rewrite the function unsafe for more performance.