Class Ntree<T extends java.lang.Comparable<T>>


  • public final class Ntree<T extends java.lang.Comparable<T>>
    extends java.lang.Object
    N-dimensional equivalent of a quad/oct-tree.
    Author:
    Tobias Pietzsch
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Ntree.NtreeNode<T>  
    • Constructor Summary

      Constructors 
      Constructor Description
      Ntree​(long[] dimensions, T value)
      Create a ntree structure capable of representing an array of the given dimensions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Ntree.NtreeNode<T> getRootNode()
      Returns the root node of the ntree
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Ntree

        public Ntree​(long[] dimensions,
                     T value)
        Create a ntree structure capable of representing an array of the given dimensions. Initially, the tree contains only a root node and represents an array of uniform values.
        Parameters:
        dimensions - of the array
        value - uniform value of all pixels in the array
    • Method Detail

      • getRootNode

        public Ntree.NtreeNode<T> getRootNode()
        Returns the root node of the ntree
        Returns:
        root node