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

Method getShortTitle

ij/src/main/java/ij/gui/ProfilePlot.java:145–151  ·  view source on GitHub ↗
(ImagePlus imp)

Source from the content-addressed store, hash-verified

143 }
144
145 String getShortTitle(ImagePlus imp) {
146 String title = imp.getTitle();
147 int index = title.lastIndexOf('.');
148 if (index>0 && (title.length()-index)<=5)
149 title = title.substring(0, index);
150 return title;
151 }
152
153 /** Returns the profile plot data. */
154 public double[] getProfile() {

Callers 3

getPlotMethod · 0.95
HistogramWindowMethod · 0.45
drawHistogramMethod · 0.45

Calls 3

substringMethod · 0.80
getTitleMethod · 0.65
lengthMethod · 0.65

Tested by

no test coverage detected