Labmat: Learned Feature-Domain Block Matching For Image Restoration