PlugInFilterpublic class AVI_Writer extends Object implements PlugInFilter
| Modifier and Type | Field | Description |
|---|---|---|
static int |
JPEG_COMPRESSION |
|
static int |
NO_COMPRESSION |
|
static int |
PNG_COMPRESSION |
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_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING| Constructor | Description |
|---|---|
AVI_Writer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
run(ImageProcessor ip) |
Asks for the compression type and filename; then saves as AVI file
|
int |
setup(String arg,
ImagePlus imp) |
This method is called once when the filter is loaded.
|
void |
writeImage(ImagePlus imp,
String path,
int compression,
int jpegQuality) |
Writes an ImagePlus (stack) as AVI file.
|
public static final int NO_COMPRESSION
public static final int JPEG_COMPRESSION
public static final int PNG_COMPRESSION
public int setup(String arg, ImagePlus imp)
PlugInFilter
For Plugin-filters specifying the PlugInFilter.FINAL_PROCESSING flag,
the setup method will be called again, this time with
arg = "final" after all other processing is done.
setup in interface PlugInFilterpublic void run(ImageProcessor ip)
run in interface PlugInFilterpublic void writeImage(ImagePlus imp, String path, int compression, int jpegQuality) throws IOException
IOException