fixed performance measurements:

I forgot that the function changes input image
first optimization:

* remove unnecessary operations
scale test image to 640x480 resolution (according to its name)
version 3:

remove marker Mat and replace it with two buffers allocated on stack