- java.lang.Object
-
- bdv.img.hdf5.Util
-
public class Util extends Object
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[]castToDoubles(int[] ints)static double[][]castToDoubles(int[][] ints)static int[]castToInts(double[] doubles)static int[][]castToInts(double[][] doubles)static StringgetCellsPath(int timepoint, int setup, int level)static StringgetCellsPath(ViewLevelId viewLevelId)static StringgetCellsPath(mpicbg.spim.data.sequence.ViewId viewId, int level)static StringgetGroupPath(int timepointId, int setupId, int level)static StringgetGroupPath(ViewLevelId viewLevelId)static StringgetGroupPath(mpicbg.spim.data.sequence.ViewId viewId, int level)static StringgetResolutionsPath(int setupId)static StringgetSetupPath(int setupId)static StringgetSubdivisionsPath(int setupId)static longmemTypeId(org.janelia.saalfeldlab.n5.DataType dataType)static int[]reorder(int[] in)Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5).static int[]reorder(int[] in, int[] out)Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5).static long[]reorder(int[] in, long[] out)Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5).static long[]reorder(long[] in)Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5).static long[]reorder(long[] in, long[] out)Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5).
-
-
-
Method Detail
-
getGroupPath
public static String getGroupPath(int timepointId, int setupId, int level)
-
getGroupPath
public static String getGroupPath(mpicbg.spim.data.sequence.ViewId viewId, int level)
-
getGroupPath
public static String getGroupPath(ViewLevelId viewLevelId)
-
getCellsPath
public static String getCellsPath(int timepoint, int setup, int level)
-
getCellsPath
public static String getCellsPath(mpicbg.spim.data.sequence.ViewId viewId, int level)
-
getCellsPath
public static String getCellsPath(ViewLevelId viewLevelId)
-
getSetupPath
public static String getSetupPath(int setupId)
-
getResolutionsPath
public static String getResolutionsPath(int setupId)
-
getSubdivisionsPath
public static String getSubdivisionsPath(int setupId)
-
reorder
public static long[] reorder(long[] in, long[] out)Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5). Permuted in is stored in out and out is returned.- Parameters:
in- column major coordinatesout- row major coordinates- Returns:
- out
-
reorder
public static long[] reorder(long[] in)
Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5).- Parameters:
in- column major coordinates- Returns:
- row major coordinates (new array).
-
reorder
public static int[] reorder(int[] in, int[] out)Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5). Permuted in is stored in out and out is returned.- Parameters:
in- column major coordinatesout- row major coordinates- Returns:
- out
-
reorder
public static int[] reorder(int[] in)
Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5).- Parameters:
in- column major coordinates- Returns:
- row major coordinates (new array).
-
reorder
public static long[] reorder(int[] in, long[] out)Reorder long array representing column-major coordinate (imglib2) to row-major (hdf5). Permuted in is stored in out and out is returned.- Parameters:
in- column major coordinatesout- row major coordinates- Returns:
- out
-
castToInts
public static int[] castToInts(double[] doubles)
-
castToInts
public static int[][] castToInts(double[][] doubles)
-
castToDoubles
public static double[] castToDoubles(int[] ints)
-
castToDoubles
public static double[][] castToDoubles(int[][] ints)
-
memTypeId
public static long memTypeId(org.janelia.saalfeldlab.n5.DataType dataType)
-
-