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

Method getPixels

ij/src/main/java/ij/ImageStack.java:222–226  ·  view source on GitHub ↗

Returns the pixel array for the specified slice, where {@literal 1<=n<=nslices}.

(int n)

Source from the content-addressed store, hash-verified

220
221 /** Returns the pixel array for the specified slice, where {@literal 1<=n<=nslices}. */
222 public Object getPixels(int n) {
223 if (n<1 || n>nSlices)
224 throw new IllegalArgumentException(outOfRange+n);
225 return stack[n-1];
226 }
227
228 /** Assigns a pixel array to the specified slice, where {@literal 1<=n<=nslices}. */
229 public void setPixels(Object pixels, int n) {

Callers 15

swapStackImagesMethod · 0.95
reduceMethod · 0.95
zScaleHyperstackMethod · 0.95
resizeZMethod · 0.95
flipStackMethod · 0.95
resliceHyperstackMethod · 0.95
doProjectionsMethod · 0.95
doProjectionMethod · 0.95
processStackMethod · 0.95
convertRGBStackToRGBMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected