A novel approach to image processing in spin-polarized electron microscopy