public class RestructureUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
allocateColorTables(ImgPlus<?> imgPlus)
Modifies an given ImgPlus by allocating 1 color table reference for each
plane in the ImgPlus.
|
static void |
copyColorTables(ImgPlus<?> srcImgPlus,
ImgPlus<?> dstImgPlus)
Copies color table references from a source ImgPlus to a destination
ImgPlus.
|
static void |
copyData(ImgPlus<? extends RealType<?>> srcImgPlus,
ImgPlus<? extends RealType<?>> dstImgPlus,
AxisType axis,
long srcStartPos,
long dstStartPos,
long numHyperplanes)
Copies a region of data from a srcImgPlus to a dstImgPlus.
|
static void |
copyHyperVolume(ImgPlus<? extends RealType<?>> srcImgPlus,
long[] srcOrigin,
long[] srcSpan,
ImgPlus<? extends RealType<?>> dstImgPlus,
long[] dstOrigin,
long[] dstSpan)
|
static ImgPlus<? extends RealType<?>> |
createNewImgPlus(Dataset ds,
long[] dimensions,
AxisType[] axisTypes)
Creates a new
ImgPlus with specified dimensions and axes. |
static <T> ImgPlus<T> |
createNewImgPlus(ImgPlus<T> imgPlus,
long[] dimensions,
AxisType[] axisTypes)
Creates a new
ImgPlus with specified dimensions and axes. |
static long[] |
getDimensions(Dataset ds,
AxisType oneToModify,
long delta)
Gets the dimensions of the output data
|
static long |
planeCount(ImgPlus<?> imgPlus)
Returns the number of planes present in an ImgPlus
|
public static long[] getDimensions(Dataset ds, AxisType oneToModify, long delta)
public static ImgPlus<? extends RealType<?>> createNewImgPlus(Dataset ds, long[] dimensions, AxisType[] axisTypes)
public static <T> ImgPlus<T> createNewImgPlus(ImgPlus<T> imgPlus, long[] dimensions, AxisType[] axisTypes)
ImgPlus
with specified dimensions and axes. Uses the
same factory as the input image. Maintains metadata including axis types,
dataset name, and axis calibrations. All data values are initialized to 0.public static void copyData(ImgPlus<? extends RealType<?>> srcImgPlus, ImgPlus<? extends RealType<?>> dstImgPlus, AxisType axis, long srcStartPos, long dstStartPos, long numHyperplanes)
public static void copyHyperVolume(ImgPlus<? extends RealType<?>> srcImgPlus, long[] srcOrigin, long[] srcSpan, ImgPlus<? extends RealType<?>> dstImgPlus, long[] dstOrigin, long[] dstSpan)
public static void allocateColorTables(ImgPlus<?> imgPlus)
public static long planeCount(ImgPlus<?> imgPlus)
Copyright © 2014–2022 ImageJ. All rights reserved.