Steganalysis/富模型空域图像隐写分析(SRM)/提取特征/SubmodelConcatenation.m

13 lines
368 B
Mathematica
Raw Permalink Normal View History

2021-12-30 11:48:37 +00:00
function fea = SubmodelConcatenation(F)
Ss = fieldnames(F);
indexTo = 0;
for Sid = 1:length(Ss)
Fsingle = eval(['F.' Ss{Sid}]);
indexFrom = indexTo + 1;
% fprintf(' F.%s : %d x %d\n', Ss{Sid}, size(Fsingle, 1), size(Fsingle, 2));
indexTo = indexFrom + size(Fsingle,2) - 1;
fea(1,indexFrom:indexTo) = Fsingle;
end
end