diff --git a/pom.xml b/pom.xml index 7cd2a49..6a6d853 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.scijava pom-scijava - 35.1.1 + 37.0.0 @@ -159,6 +159,9 @@ Jean-Yves Tinevez and Michael Zinsmaier. sign,deploy-to-scijava + + 7.0.1 + 1.0.0-beta-18 diff --git a/src/main/java/net/imglib2/img/display/imagej/CellImgToVirtualStack.java b/src/main/java/net/imglib2/img/display/imagej/CellImgToVirtualStack.java index 94aba41..556f0c2 100644 --- a/src/main/java/net/imglib2/img/display/imagej/CellImgToVirtualStack.java +++ b/src/main/java/net/imglib2/img/display/imagej/CellImgToVirtualStack.java @@ -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; @@ -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 );