コード例 #1
0
ファイル: Position.java プロジェクト: bonej-org/imagej-common
 /** Returns the number of dimensions within the {@link Position}. */
 @Override
 public int numDimensions() {
   return parentSpace.numDimensions();
 }
コード例 #2
0
ファイル: Position.java プロジェクト: bonej-org/imagej-common
 /**
  * Constructor - takes an {@link Extents} object that represents the parent space to iterate
  * within.
  */
 public Position(final Extents parentSpace) {
   this.parentSpace = parentSpace;
   this.position = new long[parentSpace.numDimensions()];
   // ImgLib convention - start out of bounds
   reset();
 }