Plugins located in ImageJ's plugins folder are automatically installed at the end of this menu. For this to work, the plugins folder must be in the same folder as ij.jar and each plugin must have an underscore in the name of the main class file. Use the Install Plugin command in the Hot Keys submenu to install a plugin in different menu or to assign a keyboard shortcut. 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.| Window Menu | Contents | Home |To create your own plugin named "My Plugin":
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.
- Make a copy of either Inverter_.java or Red_and_Blue.java.
- Rename the copy "My_Plugin.java". (The name must contain an underscore or the plugin will not be automatically installed.)
- Open My_Plugin.java using ImageJ's built in editor (Plugins/Edit) and change the class name to "My_Plugin". (Java requires that the file name and class name be the same.)
- Use the editor's Compile and Run comand to compile and run the plugin. (Requires a JVM that includes the javac compiler.)
- Make some changes to the new plugin and repeat step 4.
Hot Keys>
This submenu contains commands for installing and removing keyboard shortcuts and plugins.Create Hot Key...
Assigns a keyboard shortcut to an ImageJ menu command and lists the shortcut in the "Hot Keys" 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 Hot Keys to get a list of shortcuts that are already being used.
Install Plugin...
Installs a plugin in a user-specified menu. 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 menu 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 "Hot Keys" submenu by Create Hot Keys. 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.
Edit...
Opens a 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 the Java Development Kits (JDKs) from Sun and with Apple's Java Software Development Kit (SDK). The JRE 1.1.8 distributed with the Windows version of ImageJ does not include javac.When using JDK 1.2 or 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.ImageJTo use the Compile and Run command on a Mac, you must install Apple's Java SDK.