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

Method projectSlice

ij/src/main/java/ij/plugin/ZProjector.java:616–628  ·  view source on GitHub ↗

Handles mechanics of projection by selecting appropriate pixel array type. We do this rather than using more general ImageProcessor getPixelValue() and putPixel() methods because direct manipulation of pixel arrays is much more efficient.

(Object pixelArray, RayFunction rayFunc, int ptype)

Source from the content-addressed store, hash-verified

614 ImageProcessor getPixelValue() and putPixel() methods because
615 direct manipulation of pixel arrays is much more efficient. */
616 private void projectSlice(Object pixelArray, RayFunction rayFunc, int ptype) {
617 switch(ptype) {
618 case BYTE_TYPE:
619 rayFunc.projectSlice((byte[])pixelArray);
620 break;
621 case SHORT_TYPE:
622 rayFunc.projectSlice((short[])pixelArray);
623 break;
624 case FLOAT_TYPE:
625 rayFunc.projectSlice((float[])pixelArray);
626 break;
627 }
628 }
629
630 String makeTitle() {
631 String prefix = "AVG_";

Callers 1

doProjectionMethod · 0.95

Calls 1

projectSliceMethod · 0.45

Tested by

no test coverage detected