|
IDL Wavelet Toolkit User's Guide: Using the IDL Wavelet Toolkit |
|
You can extend the capabilities of the IDL Wavelet Toolkit by adding your own user-defined tool functions. These wavelet functions should follow the same calling mechanism as the built-in tool functions such as WV_TOOL_DENOISE. In addition, your tool function should begin with the prefix 'wv_tool_'.
FUNCTION wv_tool_edgedetect, $ Array ; 1D vector or 2D array [,X] ; X coordinates of array [,Y] ; Y coordinates of array [, GROUP_LEADER=group_leader] [, TITLE=title] [, UNITS=units] [, XTITLE=xtitle] [, XUNITS=xunits] [, YTITLE=ytitle] [, YUNITS=yunits] [, XOFFSET=xoffset] [, YOFFSET=yoffset] ; start the edge detection applet... ... ; return the Widget ID for the applet RETURN, wID END
wv_tool_edgedetect.pro that is accessible from your current IDL path.
WV_APPLET, TOOLS=['Edge Detect']
Your new tool should appear in the Tools Menu. The actual function name is constructed by removing all white space from the name and attaching a prefix of WV_TOOL_.
| Note At a minimum, your tool function must accept a data Array. All other parameters (such as X and Y) and keywords (GROUP_LEADER, TITLE, etc.) are optional. The IDL Wavelet Toolkit will pass in only those parameters and keywords that are usable by your tool function. |
IDL Online Help (March 06, 2007)