There is useful function matU8ToBlob in samples, which converts cv::mat to blob. Is there analogous reverse function ? I need such function for tensor 192x256x4 (color image).
No there isnt an analogous function. But you can find the definition of the function in deployment_tools/inference_engine/samples/common/samples/ocv_common.hpp
Check this link out :
OpenCV* Interoperability Example
For more complete information about compiler optimizations, see our Optimization Notice.