Package net.imglib2

Interface Localizable

    • Method Detail

      • localize

        default void localize​(int[] position)
        Write the current position into the passed array.
        Parameters:
        position - receives current position, length must be ≥ EuclideanSpace.numDimensions()
      • localize

        default void localize​(long[] position)
        Write the current position into the passed array.
        Parameters:
        position - receives current position, length must be ≥ EuclideanSpace.numDimensions()
      • getIntPosition

        default int getIntPosition​(int d)
        Return the current position in a given dimension.
        Parameters:
        d - dimension
        Returns:
        dimension of current position
      • positionAsLongArray

        default long[] positionAsLongArray()
        Allocate and return a long array containing the localizable's position. Please note that his method allocates a new array each time which introduces notable overhead in both compute and memory. If you query it frequently, you should allocate a dedicated array first and reuse it with localize(long[]).
        Returns:
        the position
      • positionAsPoint

        default Point positionAsPoint()
        Allocate and return a Point containing the localizable's position. Please note that his method allocates a new Point each time which introduces notable overhead in both compute and memory. If you query it frequently, you should allocate a dedicated Point first and reuse it with localize(Positionable).
        Returns:
        the position
      • getLongPosition

        long getLongPosition​(int d)
        Return the current position in a given dimension.
        Parameters:
        d - dimension
        Returns:
        dimension of current position
      • getFloatPosition

        default float getFloatPosition​(int d)
        Description copied from interface: RealLocalizable
        Return the current position in a given dimension.
        Specified by:
        getFloatPosition in interface RealLocalizable
        Parameters:
        d - dimension
        Returns:
        dimension of current position
      • getDoublePosition

        default double getDoublePosition​(int d)
        Description copied from interface: RealLocalizable
        Return the current position in a given dimension.
        Specified by:
        getDoublePosition in interface RealLocalizable
        Parameters:
        d - dimension
        Returns:
        dimension of current position