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)
| 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_"; |
no test coverage detected