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

Method getByteRow

ij/src/main/java/ij/plugin/Projector.java:841–846  ·  view source on GitHub ↗
(ImageStack stack, int x, int y, int z, int width1, int width2, int[] line)

Source from the content-addressed store, hash-verified

839 }
840
841 private void getByteRow(ImageStack stack, int x, int y, int z, int width1, int width2, int[] line) {
842 byte[] pixels = (byte[])stack.getPixels(z+1);
843 int j = x + y*width1;
844 for (int i=0; i<width2; i++)
845 line[i] = pixels[j++]&255;
846 }
847
848 private void putByteRow(ImageStack stack, int y, int z, int width, int[] line) {
849 byte[] pixels = (byte[])stack.getPixels(z+1);

Callers 1

zScaleMethod · 0.95

Calls 1

getPixelsMethod · 0.45

Tested by

no test coverage detected