Skip to content

Commit

Permalink
correct bug in transposition method
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 9, 2024
1 parent d87070c commit f6bd476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/bioimage/modelrunner/tensor/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ RandomAccessibleInterval<T> rearangeAxes(RandomAccessibleInterval<T> rai, int[]
t.setComponentMapping(orderChange);
long[] minMax = new long[tensorShape.length * 2];
for (int i = 0; i < tensorShape.length; i ++) {
minMax[i] = min[orderChange[0]];
minMax[i + tensorShape.length] = max[orderChange[0]];
minMax[i] = min[orderChange[i]];
minMax[i + tensorShape.length] = max[orderChange[i]];
}
return Views.interval(new MixedTransformView<T>( rai, t ),
Intervals.createMinMax(minMax));
Expand Down

0 comments on commit f6bd476

Please sign in to comment.