Confocal microscopy based on dual blur depth measurement