fixed conversion function

modified tests
types.hpp provides templates to convert opencv type macros into c++
types
added warning in imageconversion performance test
testresults (in vm11gig ram):
100 Mpixel type double+check 12 sec
100 Mpixel type i32_t 6 sec