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 |