On Toeplitz operators and localization operators