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

Method setZCoordinate

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

Source from the content-addressed store, hash-verified

1118 }
1119
1120 void setZCoordinate() {
1121 int z = (int)getArg();
1122 int n = z + 1;
1123 ImagePlus imp = getImage();
1124 ImageStack stack = imp.getStack();
1125 int size = stack.size();
1126 if (z<0 || z>=size)
1127 interp.error("Z coordinate ("+z+") is out of 0-"+(size-1)+ " range");
1128 this.defaultIP = stack.getProcessor(n);
1129 }
1130
1131 void moveTo() {
1132 interp.getLeftParen();

Callers 1

doFunctionMethod · 0.95

Calls 6

getArgMethod · 0.95
getImageMethod · 0.95
getStackMethod · 0.95
sizeMethod · 0.95
getProcessorMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected