Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以从 MATLAB 中的字符串而不是文件中读取编码的图像内容?
像这样的东西:
data_string = '����JFIF``���C......' imread(data_string);
作为解决方法,将字符串写入文件:
fid = fopen('temp.jpg','wt'); fprintf(fid, data_string); fclose(fid);
然后阅读:
im = imread('temp.jpg');