Skip to content

Commit

Permalink
Update to imglib2-algorithm-0.17.2, adopt BlockSupplier API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Nov 27, 2024
1 parent 2cd38cd commit 47c5ea2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@
<license.licenseName>bsd_2</license.licenseName>
<license.copyrightOwners>BigDataViewer developers.</license.copyrightOwners>

<imglib2.version>7.1.4</imglib2.version>
<imglib2-algorithm.version>0.17.2</imglib2-algorithm.version>
<spim_data.version>2.3.5</spim_data.version>

<!-- NB: Deploy releases to the SciJava Maven repository. -->
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/bdv/export/ExportScalePyramid.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import net.imglib2.RandomAccessibleInterval;
import net.imglib2.algorithm.blocks.BlockSupplier;
import net.imglib2.algorithm.blocks.downsample.Downsample;
import net.imglib2.blocks.BlockInterval;
import net.imglib2.img.cell.CellGrid;
import net.imglib2.type.NativeType;
import net.imglib2.type.numeric.RealType;
Expand Down Expand Up @@ -314,7 +315,7 @@ public static < T extends RealType< T > & NativeType< T >, D > void writeScalePy
final long[] gridPosition = new long[ n ];
grid.getCellGridPositionFlat( index, gridPosition );
final DataBlock< ? > block = dataType.createDataBlock( blockSize, gridPosition );
blocks.copy( currentCellMin, block.getData(), blockSize );
blocks.copy( BlockInterval.wrap( currentCellMin, blockSize), block.getData() );
io.writeBlock( dataset, block );
}
return null;
Expand Down

0 comments on commit 47c5ea2

Please sign in to comment.