iptsetpref
Set Image Processing Toolbox setting or display valid values
Description
iptsetpref(
displays the valid values for
the Image Processing Toolbox™ setting specified by prefname
)prefname
.
iptsetpref(
sets the Image Processing Toolbox setting 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 Settings window to set settings. To access the window, on the
Home tab, in the Environment section, click
Settings. Alternatively, open the Settings window by
calling the
iptprefs
function.
Examples
Set the default borders of the imshow
function to tight.
iptsetpref("ImshowBorder","tight")
Input Arguments
Name of an Image Processing Toolbox setting, specified as one of the values in the table. Setting names are case insensitive, and you can abbreviate them.
Image Processing Toolbox Settings
Setting 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 setting by specifying the
|
| Controls the initial magnification of the image displayed by
Positive numeric
scalar —
You can override this
setting 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
setting by specifying the |
"ImtoolStartWithOverview" | Controls whether the Overview tool opens automatically when you open
an image using the Image Tool using the
|
"VolumeViewerUseHardware" | Note This setting no longer has an effect. For more information, see Version History. (since R2025a) Controls whether the Volume Viewer app uses advanced shaders on the local graphics hardware to optimize volume rendering. Possible values:
|
"UseIPPL" | Controls whether some toolbox functions use hardware optimization or not. Possible values:
Note Setting this setting clears all loaded MEX files. |
Data Types: string
| char
Value to assign to an Image Processing Toolbox setting, specified as a valid value for the specified setting. The values
for each setting are listed in the table in prefname
.
Example: iptsetpref("ImshowBorder","tight")
Version History
Introduced before R2006aThe VolumeViewerUseHardware
setting no longer has an effect on 3-D
display in the Volume Viewer app. The app now always uses hardware accelerated
graphics, if available on your local machine. Therefore, rendering quality and performance
can vary depending on your graphics support.
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)