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

Method getNumericTag

ij/src/main/java/ij/util/DicomTools.java:143–150  ·  view source on GitHub ↗
(String hdr, String tag)

Source from the content-addressed store, hash-verified

141 }
142
143 private static double getNumericTag(String hdr, String tag) {
144 String value = getTag(hdr, tag);
145 if (value==null) return Double.NaN;
146 int index3 = value.indexOf("\\");
147 if (index3>0)
148 value = value.substring(0, index3);
149 return Tools.parseDouble(value);
150 }
151
152 private static String getTag(String hdr, String tag) {
153 if (hdr==null) return null;

Callers 2

getSortStringsMethod · 0.95
getSeriesNumberMethod · 0.95

Calls 4

getTagMethod · 0.95
parseDoubleMethod · 0.95
substringMethod · 0.80
indexOfMethod · 0.45

Tested by

no test coverage detected