iptsetpref
Set Image Processing Toolbox preference or display valid values
Description
iptsetpref(
displays
the valid values for the Image Processing Toolbox™ preference specified
by prefname
)prefname
.
iptsetpref(
sets the Image Processing Toolbox preference specified by prefname
,prefvalue
)prefname
to the value specified by
prefvalue
. The setting persists until you change it.
You can also use the Image Processing Toolbox Preferences window to set preferences. To access the window, on the
Home tab, in the Environment section, click
Preferences. Alternatively, open the Preferences window by
calling the iptprefs
function.
Examples
Set Image Processing Toolbox Preference
Set the default borders of the imshow
function to tight.
iptsetpref("ImshowBorder","tight")
Input Arguments
prefname
— Name of Image Processing Toolbox preference
string scalar | character vector
Name of an Image Processing Toolbox preference, specified as one of the values in the table. Preference names are case insensitive, and you can abbreviate them.
Image Processing Toolbox Preferences
Preference Name | Description |
---|---|
| Controls whether
|
| Controls whether
Note You can include a border even if the image is very small, or if there are other objects in the figure besides the image and its axes. You can override this preference by specifying the
|
| Controls the initial magnification of the image displayed by
Positive numeric
scalar —
You can override this
preference by specifying the |
| Controls the initial magnification of the image displayed by the Image Tool. Possible values:
Positive numeric scalar — Specify the magnification as a percentage. A magnification of 100% means that there should be one screen pixel for every image pixel.
You can override this
preference by specifying the |
"ImtoolStartWithOverview" | Controls whether the Overview tool opens automatically when you open
an image using the Image Tool using the
|
"VolumeViewerUseHardware" | Controls whether the Volume Viewer app uses OpenGL® shaders on the local graphics hardware to optimize volume rendering. Possible values:
Note This preference is not accessible in the Preferences window, and must be
set programmatically using |
"UseIPPL" | Controls whether some toolbox functions use hardware optimization or not. Possible values:
Note Setting this preference clears all loaded MEX files. |
Data Types: string
| char
prefvalue
— Value to assign to Image Processing Toolbox preference
string scalar | character vector | numeric scalar | logical scalar
Value to assign to an Image Processing Toolbox preference, specified as a valid value for the specified preference. The
values for each preference are listed in the table in
prefname
.
Example: iptsetpref("ImshowBorder","tight")
Version History
Introduced before R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)