public class Hyperstack_rearranger extends Object implements ij.plugin.PlugIn
Modifier and Type | Field and Description |
---|---|
String[] |
choice |
static int |
defaultIndexChannels |
static int |
defaultIndexFrames |
static int |
defaultIndexSlices |
Constructor and Description |
---|
Hyperstack_rearranger() |
Modifier and Type | Method and Description |
---|---|
static ij.ImagePlus |
convertToHyperStack(ij.ImagePlus imp)
Converts this image to Hyperstack if it is RGB or 8-bit color
|
static ij.ImagePlus |
getImageChunk(ij.ImagePlus imp,
int channel,
int timepoint)
Returns an
ImagePlus for a 2d or 3d stack where ImageProcessors
are not copied but just added. |
static ij.CompositeImage |
reorderHyperstack(ij.ImagePlus imp,
int targetChannels,
int targetSlices,
int targetFrames,
boolean closeOldImp,
boolean showNewImp)
Creates a new Hyperstack with a different order of dimensions, the ImageProcessors are not copied
but just linked from the input ImagePlus
id's used here, reflecting (XY)CZT:
channel = 0
slices = 1
frames = 2
|
static ij.ImagePlus |
reorderHyperstack(ij.ImagePlus imp,
String newOrder,
boolean closeOldImp,
boolean showNewImp)
Creates a new Hyperstack with a different order of dimensions, the ImageProcessors are not copied
but just linked from the input ImagePlus
|
void |
run(String arg0) |
public static int defaultIndexChannels
public static int defaultIndexSlices
public static int defaultIndexFrames
public String[] choice
public void run(String arg0)
run
in interface ij.plugin.PlugIn
public static ij.ImagePlus reorderHyperstack(ij.ImagePlus imp, String newOrder, boolean closeOldImp, boolean showNewImp)
imp
- - the input ImagePlusnewOrder
- - the new order, can be "CZT", "CTZ", "ZCT", "ZTC", TCZ" or "TZC"closeOldImp
- - close the old one?showNewImp
- - show the new one?public static ij.CompositeImage reorderHyperstack(ij.ImagePlus imp, int targetChannels, int targetSlices, int targetFrames, boolean closeOldImp, boolean showNewImp)
imp
- - the input ImagePlustargetChannels
- - the new id for channel (0, 1 or 2, i.e. channels stays channels or become slices or frames)targetSlices
- - the new id for slices (0, 1 or 2 ...)targetFrames
- - the new id for frames (0, 1 or 2 ...)closeOldImp
- - close the old one?showNewImp
- - show the new one?public static ij.ImagePlus getImageChunk(ij.ImagePlus imp, int channel, int timepoint)
ImagePlus
for a 2d or 3d stack where ImageProcessors
are not copied but just added.imp
- - the input imagechannel
- - which channel (first channel is 1, NOT 0)timepoint
- - which timepoint (first timepoint is 1, NOT 0)ImagePlus
.public static ij.ImagePlus convertToHyperStack(ij.ImagePlus imp)
imp
- - InputimageCopyright © 2015–2021 Fiji. All rights reserved.