iptgetpref

Get values of Image Processing Toolbox preferences

Description

prefs = iptgetpref returns a structure containing all of the Image Processing Toolbox™ preferences with their current values.

You can also use the Image Processing Toolbox Preferences dialog box to get the preferences. To access the dialog box, click Preferences on the Home tab in the MATLAB® desktop, or call the iptprefs function.

example

value = iptgetpref(prefname) returns the value of the Image Processing Toolbox preference specified by prefname.

Examples

Get Value of Single Image Processing Toolbox Preference

Get the value of the 'ImshowAxesVisible' preference.

value = iptgetpref('ImshowAxesVisible')
value =

off

Input Arguments

collapse all

Name of an Image Processing Toolbox preference, specified as one of the following.

  • 'ImshowBorder'

  • 'ImshowAxesVisible'

  • 'ImshowInitialMagnification'

  • 'ImtoolStartWithOverview'

  • 'ImtoolInitialMagnification'

  • 'UseIPPL'

  • 'VolumeViewerUseHardware'

Data Types: char | string

Output Arguments

collapse all

Value of all Image Processing Toolbox preferences, returned as a structure. Each field in the structure has the name of an Image Processing Toolbox preference.

Data Types: struct

Value of the Image Processing Toolbox preference prefname, returned as a character vector, numeric scalar, or logical scalar.

Data Types: char | double | logical

Tips

  • You can also use the Image Processing Toolbox Preferences dialog box to get the preferences. To access the dialog box, click Preferences on the Home tab in the MATLAB desktop, or call the iptprefs function.

Introduced before R2006a