An image processing method is disclosed. The method comprises capturing a plurality of images of a sample using a scanning electron microscope (SEM). The method further comprising computing a mean value for each pixel location in the plurality of images and forming an integrated image with the mean values. The method further comprises filtering the integrated image using a median filter.