ij.plugin.filter
Class AVI_Writer
java.lang.Object
ij.plugin.filter.AVI_Writer
- All Implemented Interfaces:
- PlugInFilter
public class AVI_Writer
- extends java.lang.Object
- implements PlugInFilter
This plugin saves stacks in AVI format.
Supported formats:
Uncompressed 8-bit (gray or indexed color), 24-bit (RGB).
JPEG and PNG compression.
16-bit and 32-bit (float) images are converted to 8-bit.
The plugin is based on the FileAvi class written by William Gandler.
The FileAvi class is part of Matthew J. McAuliffe's MIPAV program,
available from http://mipav.cit.nih.gov/.
2008-06-05 Support for jpeg and png-compressed output and composite images by Michael Schmid.
Fields inherited from interface ij.plugin.filter.PlugInFilter |
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING |
Method Summary |
void |
run(ImageProcessor ip)
Asks for the compression type and filename; then saves as AVI file |
int |
setup(java.lang.String arg,
ImagePlus imp)
This method is called once when the filter is loaded. |
void |
writeImage(ImagePlus imp,
java.lang.String path,
int compression,
int jpegQuality)
Writes an ImagePlus (stack) as AVI file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_COMPRESSION
public static final int NO_COMPRESSION
- See Also:
- Constant Field Values
JPEG_COMPRESSION
public static final int JPEG_COMPRESSION
- See Also:
- Constant Field Values
PNG_COMPRESSION
public static final int PNG_COMPRESSION
- See Also:
- Constant Field Values
AVI_Writer
public AVI_Writer()
setup
public int setup(java.lang.String arg,
ImagePlus imp)
- Description copied from interface:
PlugInFilter
- This method is called once when the filter is loaded. 'arg',
which may be blank, is the argument specified for this plugin
in IJ_Props.txt or in the plugins.config file of a jar archive
containing the plugin. 'imp' is the currently active image.
This method should return a flag word that specifies the
filters capabilities.
For Plugin-filters specifying the FINAL_PROCESSING flag,
the setup method will be called again, this time with
arg = "final" after all other processing is done.
- Specified by:
setup
in interface PlugInFilter
run
public void run(ImageProcessor ip)
- Asks for the compression type and filename; then saves as AVI file
- Specified by:
run
in interface PlugInFilter
writeImage
public void writeImage(ImagePlus imp,
java.lang.String path,
int compression,
int jpegQuality)
throws java.io.IOException
- Writes an ImagePlus (stack) as AVI file.
- Throws:
java.io.IOException