iptsetpref
Set Image Processing Toolbox preferences 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 the 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 dialog box to set the preferences. To access the dialog box, click
Preferences on the Home tab
in the MATLAB® desktop, or call the iptprefs
function.
Examples
Set Image Processing Toolbox Preference
iptsetpref('ImshowBorder','tight')
Input Arguments
prefname
— Name of Image Processing Toolbox preference
character vector
Name of an Image Processing Toolbox preference, specified as one of the following character vectors.
The following table details the available preferences and their syntaxes. Note that
preference names are case insensitive and you can abbreviate them. The default value
appears enclosed in braces ({}
).
Image Processing Toolbox Preferences
Preference Name | Description |
---|---|
| Controls whether
|
| Controls whether
Note There still can be a border if the image is very small, or if there are other objects besides the image and its axes in the figure. You can override this preference by specifying the
|
| Controls the initial magnification of the image displayed by
Any numeric value
—
You can override this
preference by specifying the |
| Controls the initial magnification of the image displayed by the Image Viewer app. Possible values:
Any numeric value — 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 Viewer app. Possible values:
{ |
'VolumeViewerUseHardware' | Controls whether the Volume Viewer app uses OpenGL shaders on the local graphics hardware to optimize volume rendering. Possible values: {
Note Setting this preference to |
'UseIPPL' | Controls whether some toolbox functions use hardware optimization or not. Possible values: {
Note Setting this preference value clears all loaded MEX-files. |
Data Types: char
prefvalue
— Value you want to assign to an Image Processing Toolbox preference
character vector | numeric scalar | logical scalar
Value you want to assign to an Image Processing Toolbox preference, specified as one of the values listed in the table in
prefname
.
Example: iptsetpref('ImshowBorder','tight')
Version History
Introduced before R2006a
See Also
Image
Viewer | Volume
Viewer | imshow
| iptgetpref
| iptprefs
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 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)