images.compatibility.imtool.r2023b.imtool
images.compatibility.imtool.r2023b.imtool
is not recommended in most
situations. Use the Image Viewer app instead. Continue to use the
images.compatibility.imtool.r2023b.imtool
only when you want to return
a figure that contains an Image Tool. For more information, see Version History.
Syntax
Description
The images.compatibility.imtool.r2023b.imtool
function opens
the Image Tool, which enables you to display images and perform common image processing
tasks.
The tool provides all the image display capabilities of imshow
, which optimizes figure, axes, and image object property settings for
image display. The tool also provides access to several tools for navigating and exploring
images, such as the Pixel Region tool, Image Information tool, and the Adjust Contrast
tool.
opens the Image Tool in an empty state and returns the figure hTool
= images.compatibility.imtool.r2023b.imtoolhTool
containing the tool. Use the File menu options Open or Import from Workspace to
choose an image for display.
displays the grayscale image hTool
= images.compatibility.imtool.r2023b.imtool(I
,range
)I
in the Image Tool, specifying the
display range as range
. The tool clips pixel values outside the display
range to black or white and displays pixel values within the display range as intermediate
shades of gray. The tool uses the default number of gray levels.
displays the image, specifying name-value arguments that control various aspects of the
image display.hTool
= images.compatibility.imtool.r2023b.imtool(___,Name=Value
)
Examples
Input Arguments
Output Arguments
More About
Tips
For grayscale images having integer types, the default display range is
[intmin(class(I)) intmax(class(I))]
.For grayscale images of class
single
ordouble
, the default display range is[0 1]
. If the data range of asingle
ordouble
image is much larger or smaller than the default display range, you might need to experiment with setting the display range to see features in the image that would not be visible using the default display range.You can close a specific Image Tool specified by the figure
hTool
by using this command:close(hTool)
You can close all open instances of Image Tool by using this command:
images.compatibility.imtool.r2023b.imtool close all
Version History
Introduced in R2023bSee Also
Image
Viewer | imageinfo
| imcontrast
| imoverview
| impixelregion
| imshow