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

Method setPixels

ij/src/main/java/ij/ImageStack.java:229–235  ·  view source on GitHub ↗

Assigns a pixel array to the specified slice, where {@literal 1<=n<=nslices}.

(Object pixels, int n)

Source from the content-addressed store, hash-verified

227
228 /** Assigns a pixel array to the specified slice, where {@literal 1<=n<=nslices}. */
229 public void setPixels(Object pixels, int n) {
230 if (n<1 || n>nSlices)
231 throw new IllegalArgumentException(outOfRange+n);
232 stack[n-1] = pixels;
233 if (this.bitDepth==0)
234 setBitDepth(pixels);
235 }
236
237 /** Returns the stack as an array of 1D pixel arrays. Note
238 that the size of the returned array may be greater than

Callers 15

createHyperStackMethod · 0.95
swapStackImagesMethod · 0.95
reduceMethod · 0.95
insertMethod · 0.95
flipStackMethod · 0.95
runMethod · 0.95
convertHyperstackMethod · 0.95
resliceHyperstackMethod · 0.95
resliceRectOrLineMethod · 0.95
splitMethod · 0.95
updateAndDrawMethod · 0.45

Calls 1

setBitDepthMethod · 0.95

Tested by

no test coverage detected