public class Move_Roi extends Object implements ij.plugin.filter.PlugInFilter
Modifier and Type | Field and Description |
---|---|
static int |
COPY |
static int |
CUT |
static int |
DEF_MODE |
static int |
DEF_PIX_PER_SLICE |
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, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
Constructor and Description |
---|
Move_Roi() |
Modifier and Type | Method and Description |
---|---|
static void |
moveRoi(ij.ImagePlus image,
Roi roi,
int dx,
int dy,
int slice,
int speed,
int mode)
Copy the given roi from the specified slice of the given image
and inserts it in consecutive frames, giving the effect of
moving the selection.
|
void |
run(ij.process.ImageProcessor ip) |
int |
setup(String arg,
ij.ImagePlus imp) |
public static final int COPY
public static final int CUT
public static final int DEF_PIX_PER_SLICE
public static final int DEF_MODE
public int setup(String arg, ij.ImagePlus imp)
setup
in interface ij.plugin.filter.PlugInFilter
public void run(ij.process.ImageProcessor ip)
run
in interface ij.plugin.filter.PlugInFilter
public static void moveRoi(ij.ImagePlus image, Roi roi, int dx, int dy, int slice, int speed, int mode)
image
- The ImagePlus containing the framesroi
- The selection to move.dx
- The amount in x-direction to move.dy
- The amount in y-direction to move.slice
- The starting slice.speed
- The amount of pixels to move per slice. A value lower
than 1 will move the roi within one frame.mode
- Either COPY or CUT.Copyright © 2015–2021 Fiji. All rights reserved.