provides interactive image analysis functionality
ImageTool(Image); ImageTool(Image, Title); FigureHandle = ImageTool(Image); FigureHandle = ImageTool(Image, Title);
2D or 3D matrix of type uint8, uint16, uint32 or double, can also be 2D matrix of type boolean
A string that describes the image. This parameter is optional.
Handle of the figure the image is displayed in. This parameter is optional.
This function provides functionality for analyzing an image interactively. The following functionality is provided:
Opening and saving an image file
Single pixel selection by clicking on a pixel with left mouse key
row profile
row histogram
column profile
column histogram
exporting coordinates of selected pixel as global variable
Line selection by clicking on two pixels with left mouse key. The two pixels will be start and end points of the line.
profile
histogram
export of the selected line as global variable, has one pixel more than the rounded difference between start and end points
Rectangle selection by clicking on two pixels with left mouse key. The two pixels will be corners of the rectangle.
histogram
export of the selected area as global variable
global IPD_PATH; RGB = ReadImage(IPD_PATH + 'demos\teaset.png'); Image = RGB2Gray(RGB); FigureHandle = ImageTool(Image, 'Image to Be Analyzed'); | ![]() | ![]() |