Constrained least squares filtering in high resolution PET and SPECT imaging