Reading cv::Mat
from Matlab's .mat
in python get different results compared to Matlab , as follow
import scipy.io as sio
import numpy as np
data = sio.loadmat('image.mat')
img = data['img']
cv2.imshow('img', img)
the image as follows:
but in matlab:
image = load('image.mat')
imshow(image.img)
the result as follow:
it seems that the python has wrong with parseing the matrix.