Package bdv.img.hdf5

Class Util


  • public class Util
    extends Object
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • getGroupPath

        public static String getGroupPath​(int timepointId,
                                          int setupId,
                                          int level)
      • getCellsPath

        public static String getCellsPath​(int timepoint,
                                          int setup,
                                          int level)
      • 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 coordinates
        out - 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 coordinates
        out - 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 coordinates
        out - 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)