save_chars.m

来自「统计模式识别工具包(统计模式识别工具包」· M 代码 · 共 35 行

M
35
字号
function save_chars(data);
% SAVE_CHARS Saves images to file.
%
% Synopsis:
%  save_chars(data)
%
% Description:
%  This is an auxiliary function which saves items of the 
%  structure data into the file its name is taken from the 
%  global variable FileName. The function is used to when
%  examples of numerlas are being collected.
%

% (c) Statistical Pattern Recognition Toolbox, (C) 1999-2003,
% Written by Vojtech Franc and Vaclav Hlavac,
% <a href="http://www.cvut.cz">Czech Technical University Prague</a>,
% <a href="http://www.feld.cvut.cz">Faculty of Electrical engineering</a>,
% <a href="http://cmp.felk.cvut.cz">Center for Machine Perception</a>

% Modifications:
% 09-sep-03, VF

global FileName;

X=data.X;
img_size = data.img_size;
save(FileName,'X','img_size');

figure;
showim(X);

fprintf('Characters saved to file: %s\n',FileName);

return;
% EOF

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?