Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Create Your Own Modular Tools

Because the toolbox uses an open architecture for the modular interactive tools, you can extend the toolbox by creating your own modular interactive tools, using graphics concepts and techniques. To help you create tools that integrate well with the existing modular interactive tools, the toolbox includes many utility functions that perform commonly needed tasks. The utility functions can help check the input arguments to your tool, add callback functions to a callback list or remove them from a list, and align figure windows in relation to a fixed window. The toolbox also provides a set of functions that you can use to define a region-of-interest of various shapes, including points, lines, rectangles, ellipses, polygons, and freehand shapes — see Create Angle Measurement Tool Using ROI Objects for an example.

The following table lists these utility functions in alphabetical order. See the function's reference page for more detailed information.

Utility Function

Description

getimagemodel

Retrieve image model object from image object.

getrangefromclass

Get default display range of image, based on its class

imagemodel

Access to properties of an image relevant to its display

imattributes

Return information about image attributes

imellipseCreate draggable, resizable ellipse
imfreehandCreate draggable freehand region

imgca

Get current axes containing an image

imgcf

Get most recent current figure containing an image

imgetfile

Display Open Image dialog box

imhandles

Get all image objects

imline

Create draggable, resizable line

impoint

Create draggable point

impolyCreate draggable, resizable polygon

imputfile

Display Save Image dialog box

imrect

Create draggable, resizable rectangle

iptaddcallback

Add function handle to a callback list

iptcheckconn

Check validity of connectivity argument

iptcheckhandle

Check validity of object argument

iptcheckinput

Check validity of input argument

iptcheckmap

Check validity of colormap argument

iptchecknargin

Check number of input arguments

iptcheckstrs

Check validity of character vector arguments

iptgetapi

Get application programmer interface (API) for an object

iptGetPointerBehaviorRetrieve pointer behavior from HG object

ipticondir

Return names of directories containing IPT and MATLAB® icons

iptnum2ordinal

Convert positive integer to ordinal value

iptPointerManagerInstall mouse pointer manager in figure

iptremovecallback

Delete function handle from callback list

iptSetPointerBehaviorStore pointer behavior in HG object

iptwindowalign

Align figure windows

Was this topic helpful?