Main Content

iptgetpref

Get values of Image Processing Toolbox settings

Description

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

You can also use the Image Processing Toolbox Settings window to get the settings. To access the window, on the Home tab, in the Environment section, click Settings button Settings. Alternatively, open the Settings window by calling the iptprefs function.

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

example

Examples

collapse all

Get the ImshowAxesVisible value.

value = iptgetpref("ImshowAxesVisible")
value =

'off'

Input Arguments

collapse all

Name of an Image Processing Toolbox setting, specified as one of these values:

  • "ImshowAxesVisible"

  • "ImshowBorder"

  • "ImshowInitialMagnification"

  • "ImtoolInitialMagnification"

  • "ImtoolStartWithOverview"

  • "VolumeViewerUseHardware"

  • "UseIPPL"

Data Types: char | string

Output Arguments

collapse all

Values of all Image Processing Toolbox settings, returned as a structure. Each field in the structure has the name of an Image Processing Toolbox setting.

Data Types: struct

Value of a single Image Processing Toolbox setting, specified by 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 Settings window to get the settings. To access the window, on the Home tab, in the Environment section, click Settings button Settings. Alternatively, open the Settings window by calling the iptprefs function.

Version History

Introduced before R2006a