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
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
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)