Image Analysis of confocal stacks