Skip to content

Commit

Permalink
Fall back to spliterator() for localizingSpliterator() on Cell- and P…
Browse files Browse the repository at this point in the history
…lanarImg
  • Loading branch information
tpietzsch committed Oct 8, 2023
1 parent abfa54e commit 4bf71aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/net/imglib2/img/cell/AbstractCellImg.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ public LocalizableSpliterator< T > spliterator()
return new CellSpliterator<>( this, 0, size() );
}

@Override
public LocalizableSpliterator< T > localizingSpliterator()
{
// TODO: Implement CellLocalizingSpliterator
return spliterator();
}

@Override
public CellLocalizingCursor< T, C > localizingCursor()
{
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/net/imglib2/img/planar/PlanarImg.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ public LocalizableSpliterator< T > spliterator()
return new PlanarSpliterator<>( this, 0, size() );
}

@Override
public LocalizableSpliterator< T > localizingSpliterator()
{
// TODO: Implement PlanarLocalizingSpliterator
return spliterator();
}

private boolean correspondsToPlane( final Interval interval )
{
// check if interval describes one plane
Expand Down

0 comments on commit 4bf71aa

Please sign in to comment.