I'm not talking about just deleting the pixels. If you know your measurement instrument introduces artifacts, you just move it around or use some ground-truth image until you map the artifacts and then subtract them out by convolution.