Explanation

imtool will be removed in a future release.


Suggested Action

Use the Image Viewer app. This example shows how to open an image in Image Viewer instead of the Image tool.

OldNew
I = imread("cameraman.tif");
imtool(I) 
I = imread("cameraman.tif");
imageViewer(I) 

When you want to set the display range or the colormap, rewrite your code to specify the DisplayRange or Colormap name-value argument, respectively. This example shows how to fix code that sets the display range using a positional argument.

OldNew
I = imread("cameraman.tif");
imtool(I,[5 250]) 
I = imread("cameraman.tif");
imageViewer(I,DisplayRange=[5 250]) 

If you want to return the figure that contains the Image tool, then use the images.compatibility.imtool.r2023b.imtool function instead. This example shows how to return the figure containing the Image tool.

OldNew
I = imread("cameraman.tif");
htool = imtool(I);
I = imread("cameraman.tif");
htool = images.compatibility.imtool.r2023b.imtool(I);