def perform_correction(image, output, stat="<STR_LIT>", maxiter=<NUM_LIT:15>, sigrej=<NUM_LIT>,<EOL>lower=None, upper=None, binwidth=<NUM_LIT>,<EOL>mask=None, dqbits=None,<EOL>rpt_clean=<NUM_LIT:0>, atol=<NUM_LIT>, clobber=False, verbose=True):
<EOL>frame = StripeArray(image)<EOL>mask = _mergeUserMaskAndDQ(frame.dq, mask, dqbits)<EOL>Success, NUpdRows, NMaxIter, Bkgrnd, STDDEVCorr, MaxCorr, Nrpt = clean_streak(<EOL>frame, stat=stat, maxiter=maxiter, sigrej=sigrej,<EOL>lower=lower, upper=upper, binwidth=binwidth, mask=mask,<EOL>rpt_clean=rpt_clean, atol=atol, verbose=verbose<EOL>)<EOL>if Success:<EOL><INDENT>if verbose:<EOL><INDENT>LOG.info('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>if (STDDEVCorr > <NUM_LIT>*<NUM_LIT>):<EOL><INDENT>LOG.warning('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(STDDEVCorr))<EOL><DEDENT>elif verbose:<EOL><INDENT>LOG.info('<STR_LIT>'<EOL>'<STR_LIT>'.format(STDDEVCorr))<EOL><DEDENT>if verbose:<EOL><INDENT>LOG.info('<STR_LIT>'<EOL>'<STR_LIT>'.format(Bkgrnd))<EOL>LOG.info('<STR_LIT>'<EOL>'<STR_LIT>'.format(MaxCorr))<EOL>LOG.info('<STR_LIT>'<EOL>'<STR_LIT>'.format(NMaxIter))<EOL>LOG.info('<STR_LIT>'<EOL>'<STR_LIT>'.format(Nrpt))<EOL>LOG.info('<STR_LIT>'<EOL>'<STR_LIT>'.format(NUpdRows))<EOL><DEDENT><DEDENT>frame.write_corrected(output, clobber=clobber)<EOL>frame.close()<EOL>
Clean each input image.

Parameters
----------
image : str
    Input image name.

output : str
    Output image name.

mask : `numpy.ndarray`
    Mask array.

maxiter, sigrej, clobber
    See :func:`clean`.

dqbits : int, str, or None
    Data quality bits to be considered as "good" (or "bad").
    See :func:`clean` for more details.

rpt_clean : int
    An integer indicating how many *additional* times stripe cleaning
    should be performed on the input image. Default = 0.

atol : float, None
    The threshold for maximum absolute value of bias stripe correction
    below which repeated cleanings can stop. When `atol` is `None`
    cleaning will be repeated `rpt_clean` number of times.
    Default = 0.01 [e].

verbose : bool
    Print informational messages. Default = True.