(int nProjections, int projwidth, int projheight)
| 459 | |
| 460 | |
| 461 | private void allocateArrays(int nProjections, int projwidth, int projheight) { |
| 462 | int projsize = projwidth*projheight; |
| 463 | ColorModel cm = imp.getProcessor().getColorModel(); |
| 464 | if (isRGB) cm = null; |
| 465 | stack2 = new ImageStack(projwidth, projheight, cm); |
| 466 | projArray = new byte[projsize]; |
| 467 | for (int i=0; i<nProjections; i++) |
| 468 | stack2.addSlice(null, new byte[projsize]); |
| 469 | if ((projectionMethod==nearestPoint) || (opacity > 0)) |
| 470 | zBuffer = new short[projsize]; |
| 471 | if ((opacity>0) && (projectionMethod!=nearestPoint)) |
| 472 | opaArray = new byte[projsize]; |
| 473 | if ((projectionMethod==brightestPoint) && (depthCueInt<100)) { |
| 474 | brightCueArray = new byte[projsize]; |
| 475 | cueZBuffer = new short[projsize]; |
| 476 | } |
| 477 | if (projectionMethod==meanValue) { |
| 478 | sumBuffer = new int[projsize]; |
| 479 | countBuffer = new short[projsize]; |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | |
| 484 | /** |
no test coverage detected