def get_qpimage(self, idx=<NUM_LIT:0>):
if self._bgdata:<EOL><INDENT>qpi = super(SingleHdf5Qpimage, self).get_qpimage()<EOL><DEDENT>else:<EOL><INDENT>qpi = qpimage.QPImage(h5file=self.path,<EOL>h5mode="<STR_LIT:r>",<EOL>h5dtype=self.as_type,<EOL>).copy()<EOL>for key in self.meta_data:<EOL><INDENT>qpi[key] = self.meta_data[key]<EOL><DEDENT>qpi["<STR_LIT>"] = self.get_identifier(idx)<EOL><DEDENT>return qpi<EOL>
Return background-corrected QPImage