Could you put that question in proper English please?
–
Sergey AkopovDec 24 '10 at 6:12

2

You seem to have some trouble with English. I would suggest writing your question in your native language and then using an online translator (hopefully one exists for your language.) It will not be perfect but will probably work better than what is above. We have no idea what you are asking.
–
Paul SasikDec 24 '10 at 6:17

2 Answers
2

It sounds like you've recently received and/or been asked to use a library containing code that you don't quite understand. Unfortunately, if the source isn't properly documented, you only have two choices:

Go back to whomever or wherever you got the code from and ask them for proper documentation. Every piece of source code that you receive should come with documentation.

Study the code carefully and try to figure out what it's doing and how you are supposed to use it. This is somewhat closer to "reverse-engineering" the library (except that you have the source), and it's usually reserved as a last-ditch effort.

In fact, if any of us were to try and answer this question, that's all we could do is read and interpret the code you've posted. Is there something specific that you don't understand and are seeking clarification about?

And finally, remember this as a lesson to yourself. Whenever you write code, make sure that you take the time to document it properly so you don't put someone else who tries to use your code in the same situation that you're in now.

You'll be happy to know that the code doesn't do anything particularly significant. The Apply method sets up and calls ProcessFilter, which does a comparison of the two images and returns a count of the number of pixels that differ between the two.

The ApplyInPlace method does nothing.

And I feel sorry for the poor programmer who inherits this code and has to maintain it, what with all those useful variable names like num4 and num6.

It is my fondest wish that the programmer who brought this abomination into the world has been permanently banned from ever touching another keyboard.