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

Method getProfile

ij/src/main/java/ij/macro/Functions.java:1628–1640  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1626 }
1627
1628 Variable[] getProfile() {
1629 interp.getParens();
1630 ImagePlus imp = getImage();
1631 if (imp.getRoi()==null)
1632 interp.error("Selection required");
1633 ProfilePlot pp = new ProfilePlot(imp, IJ.altKeyDown());
1634 double[] array = pp.getProfile();
1635 if (array==null) {
1636 interp.done=true;
1637 return null;
1638 } else
1639 return new Variable(array).getArray();
1640 }
1641
1642 Variable[] split() {
1643 String s1 = getFirstString();

Callers 1

getArrayFunctionMethod · 0.95

Calls 7

getImageMethod · 0.95
getRoiMethod · 0.95
altKeyDownMethod · 0.95
getProfileMethod · 0.95
getParensMethod · 0.80
errorMethod · 0.45
getArrayMethod · 0.45

Tested by

no test coverage detected