Package net.imglib2.img.sparse
Class Ntree<T extends java.lang.Comparable<T>>
- java.lang.Object
-
- net.imglib2.img.sparse.Ntree<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>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ntree.NtreeNode<T>
getRootNode()
Returns the root node of the ntree
-
-
-
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 arrayvalue
- 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
-
-