Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed May 8, 2024
1 parent c8fb0d3 commit 31cc0b8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
import net.imglib2.util.Fraction;
import net.imglib2.util.IntervalIndexer;
import net.imglib2.util.Intervals;
import net.imglib2.util.Util;

import java.util.AbstractList;
import java.util.List;
Expand Down Expand Up @@ -117,7 +116,7 @@ private static < T > ImgPlus< T > toPlanarImgPlus( ImgPlus< T > image )
toPlanar( AbstractCellImg< T, A, ?, ? > cellImage )
{
final long[] dim = Intervals.dimensionsAsLongArray( cellImage );
final T type = Util.getTypeFromInterval( cellImage ).copy();
final T type = cellImage.getType().createVariable();
final Fraction entitiesPerPixel = type.getEntitiesPerPixel();
List< A > slices = new SlicesList<>( cellImage );
final PlanarImg< T, A > ts = new PlanarImg<>( slices, dim, entitiesPerPixel );
Expand Down

0 comments on commit 31cc0b8

Please sign in to comment.