<< sip_rq SIP - Scilab Image Processing Toolbox sip_setenv >>

SIP - Scilab Image Processing Toolbox >> SIP - Scilab Image Processing Toolbox > sip_set_verbose

sip_set_verbose

set the messaging level for SIP routines

sip_quiet

suppress vebose messages

sip_wordy

enable verbose messages

sip_get_verbose

the current verbose mode

Calling Sequence

old_mode = sip_set_verbose([mode_string])
old_mode = sip_quiet()
old_mode = sip_wordy()
mode = sip_get_verbose()

Parameters

mode_string
string (optional). May be 'wordy' or 'quiet'. If omitted, defaults to the opposite of the previous mode.

Parameters

old_mode
a string containing the messaging mode just BEFORE the function was called.

Description

sip_set_verbose('quiet') or simply sip_quiet() prevents helper messages from being issued by SIP functions such as imread, mogrify, and others. It is useful when one wants to use those functions inside a loop, for example.

sip_set_verbose('wordy') or simply sip_wordy() causes helper messages to be issued by SIP functions such as imread, mogrify, and others. It is useful for debugging and for interactive usage.

sip_set_verbose() toggles/inverts the current mode.

The output is always the PREVIOUS verbose mode.

Examples

sip_quiet();             // shut up!
[im,map] = imread(SIPDIR+'images/escher.png');

sip_wordy();             // verbose messages
[im,map] = imread(SIPDIR+'images/escher.png');  

//---------------------------------------------
// The following can be useful inside a script:

previous_mode = sip_quiet();
im2 = mogrify(im,map,['-rotate','30']);

// recall user's mode
sip_set_verbose(previous_mode);

Authors

See Also


<< sip_rq SIP - Scilab Image Processing Toolbox sip_setenv >>