我想用 and 替换imread
,fopen
以便fread
我可以从我的MATLAB文件创建 C 代码。
在使用 MATLAB coder 实用程序时,imread
不能使用(因为它是一个外部函数)。因此,我正在寻找替代imread1 which is currently reading *.JPG*s with the combination of
fopen and
fread`。我在程序开始时的断言是:
assert(isa(IM, 'uint8'));
assert(size(IM, 1) < 100);
assert(size(IM, 2) < 100);
assert(size(IM, 3) == 3);
帮助将不胜感激!