ctx.pixels.getSizeX() * ctx.pixels.getSizeY(); int planeSize = ctx.planeSizeInPixels * (iPixels.getBitDepth(pixelsType) / 8); byte[] buf = new byte[planeSize]; ctx.from = pixelBuffer.getStack(channelIndex, timepoint);
ctx.planeSizeInPixels * (iPixels.getBitDepth(pixelsType) / 8); byte[] buf = new byte[planeSize]; ctx.to = new PixelData(pixelsType.getValue(), ByteBuffer.wrap(buf));