Ensemble of blocks that implement SODA method for confocal and super-resolution microscopy, in 2 and 3 dimensions