Skip to content

Commit

Permalink
adapt to previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 17, 2023
1 parent cee4d1f commit d9b3b5a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import io.bioimage.modelrunner.numpy.ByteArrayUtils;
import io.bioimage.modelrunner.numpy.DecodeNumpy;
import net.imglib2.RandomAccessibleInterval;
import net.imglib2.img.Img;
import net.imglib2.type.NativeType;
import net.imglib2.type.numeric.RealType;
Expand Down Expand Up @@ -122,7 +123,7 @@ private void setData(Object byteArrayObject) throws IllegalArgumentException {
* @throws IllegalArgumentException if the data type of the array is not supported
*/
@SuppressWarnings("unchecked")
public < T extends RealType< T > & NativeType< T > > Img<T> getImg()
public < T extends RealType< T > & NativeType< T > > RandomAccessibleInterval<T> getImg()
throws IllegalArgumentException {
return getImg(ByteOrder.LITTLE_ENDIAN);
}
Expand All @@ -139,7 +140,8 @@ public < T extends RealType< T > & NativeType< T > > Img<T> getImg()
* @throws IllegalArgumentException if the data type of the array is not supported
*/
@SuppressWarnings("unchecked")
public < T extends RealType< T > & NativeType< T > > Img<T> getImg(ByteOrder byteOrder)
public < T extends RealType< T > & NativeType< T > >
RandomAccessibleInterval<T> getImg(ByteOrder byteOrder)
throws IllegalArgumentException {
Objects.requireNonNull(arr);
ByteBuffer buf = ByteBuffer.wrap(arr).order(byteOrder);
Expand Down

0 comments on commit d9b3b5a

Please sign in to comment.