imtool
(To be removed) Open Image Tool
imtool will be removed in a future release. Use the Image Viewer app instead. For more information, see Version History.
Syntax
Description
The 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.
imtool opens the Image Tool in an empty state. Use the
                    File menu options Open or Import from Workspace to
                choose an image for display.
imtool( displays the grayscale image
                    I)I in the Image Tool, using the default display range of the
                image data type.
imtool(
                displays the grayscale image 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.
imtool( displays the truecolor image
                    RGB)RGB in the Image Tool.
imtool( displays the binary image
                    BW)BW in the Image Tool. Pixel values of 0
                display as black; pixel values of 1 display as white.
imtool( displays the image
                contained in the graphics file filename)filename in the Image
                Tool.
imtool(___,
                displays the image, specifying name-value arguments that control various aspects of
                the image display.Name=Value)
hTool = imtool(___)hTool containing the Image Tool.
Examples
Input Arguments
Name-Value 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 - singleor- double, the default display range is- [0 1]. If the data range of a- singleor- doubleimage 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 - hToolby using this command:- close(hTool) - You can close all open instances of Image Tool by using this command: - imtool close all