Author: Wayne Rasband (email@example.com) History: 2002/03/07: First version
2002/03/20: Creates 8-bit indexed color image
Source: Thumbnail_Maker.java Installation: Copy Thumbnail_Maker.class to the plugins folder and restart ImageJ. Description: This plugin generates a 8-bit thumbnail version of the active image. For RGB images, uses ImageJ's MedianCut class to reduce the number of colors to 256.
It can also be called from the command line using the command:java -cp ij.jar;. Thumbnail_Maker srcimage dstimageThe source image can be in any input format supported by ImageJ (TIFF, GIF, JPEG, BMP, DICOM, FITS). It is assumed to be in text format (e.g., a file created by File/Save As/Text Image) if the file name ends in ".txt".
With Java 1.4 and ImageJ 1.27i or later, it can be used on "headless" (no Xserver) Unix servers. This example compiles the plugin and runs it in headless mode:c:\jdk1.4\bin\javac -classpath ij.jar Thumbnail_Maker.java
c:\jdk1.4\bin\java -cp ij.jar;. -Djava.awt.headless=true Thumbnail_Maker c:\images\peppers.jpg c:\images\thumbnail.jpg
|Plugins | Home |