I must admit I prefer the new STL to old C mechanics.

So i switched MatCallback to a std::function.