MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getSliceLabel

Method getSliceLabel

ij/src/main/java/ij/util/DicomTools.java:82–93  ·  view source on GitHub ↗
(ImageStack stack, int n)

Source from the content-addressed store, hash-verified

80 }
81
82 private static String getSliceLabel(ImageStack stack, int n) {
83 String info = stack.getSliceLabel(n);
84 if ((info==null || info.length()<100) && stack.isVirtual()) {
85 String dir = ((VirtualStack)stack).getDirectory();
86 String name = ((VirtualStack)stack).getFileName(n);
87 DICOM reader = new DICOM();
88 info = reader.getInfo(dir+name);
89 if (info!=null)
90 info = name + "\n" + info;
91 }
92 return info;
93 }
94
95 /** Calculates the voxel depth of the specified DICOM stack based
96 on the distance between the first and last slices. */

Callers 2

getSortStringsMethod · 0.95
getVoxelDepthMethod · 0.45

Calls 5

getInfoMethod · 0.95
lengthMethod · 0.65
isVirtualMethod · 0.45
getDirectoryMethod · 0.45
getFileNameMethod · 0.45

Tested by

no test coverage detected