Package net.imglib2

Interface RealRandomAccessible<T>

    • Method Detail

      • realRandomAccess

        RealRandomAccess<T> realRandomAccess()
        Create a random access sampler for real coordinates.
        Returns:
        random access sampler
      • getAt

        default T getAt​(float... position)
        Convenience method to query a RealRandomAccessible for the value at a position.

        WARNING: This method is VERY SLOW, and memory inefficient when used in tight loops, or called many times!!! Use realRandomAccess() when efficiency is important.

        This method is a short cut for realRandomAccess().setPositionAndGet( position );

        Parameters:
        position - , length must be ≥ EuclideanSpace.numDimensions()
        Returns:
        value of the the RandomAccessible at position.
      • getAt

        default T getAt​(double... position)
        Convenience method to query a RealRandomAccessible for the value at a position.

        WARNING: This method is VERY SLOW, and memory inefficient when used in tight loops, or called many times!!! Use realRandomAccess() when efficiency is important.

        This method is a short cut for realRandomAccess().setPositionAndGet( position );

        Parameters:
        position - , length must be ≥ EuclideanSpace.numDimensions()
        Returns:
        value of the the RandomAccessible at position.