www.pudn.com > jpegtool_matlab.rar > setdefaults.m


% setdefaults - set defaults for JPEGtool session
%
% SYNOPSIS
%	setdefaults
%
% DESCRIPTION
% 	Sets various global defaults, such as the quantizing matrix QMAT
%      	and the colormap. Should be run at the start of every session.

global QMAT;

colormap(gray);
QMAT = stdQ;

fprintf(1, '  JPEGtool v1, Copyright (C) 1995-1997 Darrel Hankerson and Greg A. Harris.\n');
fprintf(1, '  JPEGtool comes with ABSOLUTELY NO WARRANTY.\n');
fprintf(1, '  This is free software, and you are welcome to redistribute it\n');
fprintf(1, '  under certain conditions. Type `jpegtool'' for details.\n');