Skip to content

Commit cf8ee4e

Browse files
committed
Clean up WIP
1 parent d6f9755 commit cf8ee4e

7 files changed

Lines changed: 1 addition & 523 deletions

File tree

src/main/java/org/janelia/saalfeldlab/n5/shard/Nesting.java

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
package org.janelia.saalfeldlab.n5.shard;
22

33

4-
import java.util.ArrayList;
5-
64
import java.util.Arrays;
7-
import java.util.List;
8-
9-
import org.janelia.saalfeldlab.n5.util.GridIterator;
105

116
public class Nesting {
127

@@ -447,40 +442,5 @@ public long[] relativePosition(
447442
public int[] relativeBlockSize(final int level) {
448443
return relativeToAdjacent[level];
449444
}
450-
451-
/**
452-
* Given a block position at a particular level, returns a list of
453-
* positions of all sub-blocks at a particular subLevel.
454-
* <p>
455-
* Can be used to get a list of chunk positions for a shard with a
456-
* particular position.
457-
*
458-
* @param position
459-
* a position
460-
* @param level
461-
* the nesting level of the given position
462-
* @param subLevel
463-
* the nesting sub-level of positions to return
464-
* @return the sub-block positions
465-
*/
466-
// TODO: rename to positionsInSubGrid
467-
public List<long[]> positionInSubGrid(long[] position, int level, int subLevel) {
468-
469-
// find the starting (subLevel grid) coordinates corresponding to the
470-
// first subLevel block in the element at the given level and position
471-
final long[] subPosition = absolutePosition(position, level, subLevel);
472-
473-
// find the dimensions (number of subLevel blocks in one level block, along each dimension)
474-
final long[] one = new long[numDimensions];
475-
Arrays.fill(one, 1);
476-
final long[] dimensions = absolutePosition(one, level, subLevel);
477-
478-
final GridIterator git = new GridIterator(dimensions, subPosition);
479-
final ArrayList<long[]> positions = new ArrayList<>();
480-
while (git.hasNext())
481-
positions.add(git.next().clone());
482-
483-
return positions;
484-
}
485445
}
486446
}

src/main/java/org/janelia/saalfeldlab/n5/util/FinalPosition.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/main/java/org/janelia/saalfeldlab/n5/util/GridIterator.java

Lines changed: 0 additions & 178 deletions
This file was deleted.

src/main/java/org/janelia/saalfeldlab/n5/util/Position.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)