Skip to content

Commit

Permalink
Merge pull request #2475 from sbesson/micromanager
Browse files Browse the repository at this point in the history
Micromanager: fix multi-file image stacks and dimensionorder
  • Loading branch information
sbesson committed Jul 7, 2016
2 parents 51ce121 + 4056e1a commit e5a64a3
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ else if (((propType != null && propType.equals("PropType")) || token.equals("]")
}
}
if (!value.equals("PropVal")) {
parseKeyAndValue(key, value, digits, (plane * nIFDs) + i, 1);
parseKeyAndValue(key, value, digits, plane + i, 1);
}
propType = null;
key = null;
Expand Down Expand Up @@ -718,6 +718,13 @@ else if (key.equals("Frames")) {
else if (key.equals("Slices")) {
ms.sizeZ = Integer.parseInt(value);
}
else if (key.equals("SlicesFirst")) {
if (value.equals("false")) {
ms.dimensionOrder = "XYCZT";
} else {
ms.dimensionOrder = "XYZCT";
}
}
else if (key.equals("PixelSize_um")) {
p.pixelSize = new Double(value);
}
Expand Down Expand Up @@ -909,7 +916,7 @@ else if (key.equals("channel")) {
if (getSizeZ() == 0) ms.sizeZ = 1;
if (getSizeT() == 0) ms.sizeT = 1;

ms.dimensionOrder = "XYZCT";
if (ms.dimensionOrder == null) ms.dimensionOrder = "XYZCT";
ms.interleaved = false;
ms.rgb = false;
ms.littleEndian = false;
Expand Down

0 comments on commit e5a64a3

Please sign in to comment.