The present disclosure provides a method of determining a reference depth level within a cell sample. The method comprises obtaining data representative of a series of images captured by performing a depth scan of the cell sample using a digital microscope, the series of images being associated with a series of depth levels of the cell sample; processing said data for detecting at least one depth level corresponding to a drop in image contrast; and identifying the detected depth level as the reference depth level.