(ImageStack stack, int n)
| 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. */ |
no test coverage detected