Setting Toolbox Display Preferences

Retrieving the Values of Toolbox Preferences

You can use Image Processing Toolbox preferences to control certain characteristics of how imshow and imtool display images on your screen. For example, using toolbox preferences, you can specify the initial magnification used by imtool and imshow.

To determine the current value of a preference, use the iptgetpref function. This example uses iptgetpref to determine the value of the ImtoolInitialMagnification preference.

iptgetpref('ImtoolInitialMagnification')

ans =

   100

Preference names are case insensitive and can be abbreviated. For a complete list of toolbox preferences, see the iptsetpref reference page.

Setting the Values of Toolbox Preferences

To specify the value of a toolbox preference, use the iptsetpref function. This example calls iptsetpref to specify that imshow resize the figure window so that it fits tightly around displayed images.

iptsetpref('ImshowBorder', 'tight');

For detailed information about toolbox preferences and their values, see the iptsetpref reference page.

The value you specify lasts for the duration of the current MATLAB session. To preserve your preference settings from one session to the next, include the iptsetpref commands in your startup.m file.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS