setting up custom impl to transpose OpenCV to Matlab img
argh, now my transpose_opencv_to_matlab() segfaults too