| Window Menu | Contents | Home |Introduction
Plugins are loadable code modules that extend the capabilities of ImageJ. Plugins located in the plugins folder are listed at the bottom of this menu. Plugins in subfolders of the plugins folder are listed in submenus. Use Shortcuts/Install Plugin to install a plugin in a different menu or to assign it a keyboard shortcut. More than 40 plugins are available for download from the ImageJ Web site.The plugins folder distributed with ImageJ contains two sample plugins: Inverter, which inverts 8-bit images, and Red and Blue, which generates an RGB image. Use the New command to create a new plugin and Edit to make changes to an existing one. A tutorial for plugin writers is available at http://www.fhs-hagenberg.ac.at/staff/burger/ImageJ/tutorial.
Most commands in ImageJ are implemented as plugins but these internal plugins are located in the ij.jar file, not in the plugins folder. ij.jar also contains the properties file (IJ_Props.txt) that ImageJ uses to install internal plugins in menus. A JAR file (Java ARchive) is formatted the same as a ZIP file, so you can use a ZIP utility to look at the contents of ij.jar.
Shortcuts>
This submenu contains commands for creating keyboard shortcuts and for installing and removing plugins.Create Shortcut...
Assigns a keyboard shortcut to an ImageJ menu command and lists the shortcut in the Shortcuts submenu.Select the command from the popup menu and enter the shortcut in the text field. A shortcut can be a lower or uppercase letter or "F1" through "F12". Use Plugins/Utilities/List Shortcuts to get a list of shortcuts that are already being used.
Install Plugin...
Installs a plugin in a user-specified submenu. Plugins with a showAbout() method are also automatically added to the Help/About Plugins submenu.Use the first popup menu to select the plugin and the second to select the submenu it is to installed in. The command must be different from any existing ImageJ command. Shortcut (optional) must be a single letter or "F1" through "F12". Argument (optional) is the string that will passed to the plugin's run method.
Remove...
Removes commands added to the Shortcuts submenu by Create Shortcuts. Also removes commands added by Install Plugin and removes plugins installed in the Plugins menu. The menus are not updated until ImageJ is restarted.
Utilites>
Monitor Memory...
Displays a continuously updated graph of ImageJ's memory utilization, which can be useful for detecting memory leaks. Ideally you should be able to open a several images, process them, close them, and the amount of memory used will be the same as when you started. Clicking on ImageJ's status bar, which forces the Java garbage collector run, may help reclaim unused memory. Start the memory monitor with the alt key down to have it use a 640x480 window that simulates how a frame grabber plugin would work.
New...
Opens a new text window containing a prototype (as Java source code) for one of the three types of plugins supported by ImageJ.PlugIn: Opens, captures or generates images. Implements the PlugIn interface. The prototype displays "Hello world!" in the ImageJ window. Another example is the Step Maker plugin at http://rsb.info.nih.gov/ij/plugins/steps.html.The text window created by this command has two menus: File and Edit. Use Compile and Run in the File menu to compile and run the plugin. The Edit menu does not contain Cut/Copy/Paste but the keyboard shortcuts for these function can be used. Note that the name you choose for the plugin must include at least one underscore.PlugInFilter: Processes the active image. Implements the PlugInFilter interface. The prototype inverts the active image twice. Another example is the Image Inverter plugin at http://rsb.info.nih.gov/ij/plugins/inverter.html.
PlugInFrame: Displays a nonimage window containing controls such as buttons and sliders. Extends the PlugInFrame class. The prototype opens a window containing a text area. Another example is the IP Demo plugin at http://rsb.info.nih.gov/ij/plugins/ip-demo.html.
Edit...
Opens a text window that allows you to edit, compile and run plugins. Like the the Compile and Run command, it requires that ImageJ be running on a Java Virtual Machine that includes the javac compiler.Compile and Run...
Compiles and runs a plugin. Requires that ImageJ be running on a Java Virtual Machine that includes the javac compiler. Javac is included with Sun's Java 2 SDK (Software Development Kit) for Windows, Linux and Solaris. For Macintosh users, it is included with Apple's Java SDK. The Java included with OS X includes javac. The JRE 1.1.8 distributed with the Windows version of ImageJ does not include javac.When using the Java 2 SDK (aka JDK 1.3), the tools.jar file must be in the classpath. This requires that you run ImageJ using a command something like
java -cp ij.jar;C:\jdk1.3\lib\tools.jar ij.ImageJ