Hello, with the help of other posts i managed to convert cv::Mat RGB image to tensor with from_blob() and then get cv::Mat from tensor.
This method however fails when image width and height dimensions differ, I get wierd stripes in cv::Mat
This is where I took the code from: https://discuss.pytorch.org/t/libtorch-c-convert-a-tensor-to-cv-mat-single-channel/47701/6 25