/* @file pmPattern.h
 * @brief Fit and remove pattern noise
 *
 * @author Paul Price, IfA
 *
 * @version $Revision: 1.16 $
 * @date $Date: 2009-02-12 19:25:52 $
 * Copyright 2004-2009 Institute for Astronomy, University of Hawaii
 */

#ifndef PM_PATTERN_H
#define PM_PATTERN_H

#include <pslib.h>
#include <pmFPA.h>

/// @addtogroup detrend Detrend Creation and Application
/// @{

/// Fit and remove pattern noise over rows
bool pmPatternRow(
    pmReadout *ro,                      ///< Readout to correct
    int order,                          ///< Polynomial order
    int iter,                           ///< Number of clipping iterations
    float rej,                          ///< Rejection threshold for clipping
    float thresh,                       ///< Threshold for ignoring pixels
    psStatsOptions clipMean,            ///< Statistic to use for mean
    psStatsOptions clipStdev,           ///< Statistic to use for standard deviation
    psImageMaskType maskVal,            ///< Mask value to use
    psImageMaskType maskBad             ///< Mask value to give bad pixels
    );

/// @}
#endif



