Skip to content

Commit

Permalink
Correct image axis indices
Browse files Browse the repository at this point in the history
Was mistakenly using image index instead of the axis index when looking
up axes. Thanks to http://fiji.sc/bugzilla/show_bug.cgi?id=799 for
reporting this issue.
  • Loading branch information
hinerm committed Jun 19, 2014
1 parent 9392921 commit 0c263f6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -219,8 +219,8 @@ private void fillImageInfo(final ImagePlus imp, final Metadata meta) {
String dimensionOrder = "";
String dimensionLengths = "";
for (int j=0; j<meta.get(i).getAxes().size(); j++) {
dimensionOrder += meta.get(i).getAxis(i).type().getLabel();
dimensionLengths += meta.get(i).getAxisLength(i);
dimensionOrder += meta.get(i).getAxis(j).type().getLabel();
dimensionLengths += meta.get(i).getAxisLength(j);

if (j < meta.get(i).getAxes().size() - 1) {
dimensionOrder += ",";
Expand Down

0 comments on commit 0c263f6

Please sign in to comment.