Products & Services Solutions Academia Support User Community Company

Learn more about Image Processing Toolbox   

Setting Toolbox Preferences

Viewing and Changing Preferences Using the Preferences Dialog Box

You can view and change Image Processing Toolbox Preferences in the Preferences dialog box. To open this dialog box, select Preferences > Image Processing in the File menu in the MATLAB desktop or in the Image Tool, or type iptprefs at the command line.

Retrieving the Values of Toolbox Preferences Programmatically

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 iptprefs reference page.

Setting the Values of Toolbox Preferences Programmatically

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 a table of the available preferences, see the iptprefs reference page.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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