function imwrite(img,pstData) image = mattolist(img) opencv_imwrite(image,pstData) endfunction