00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #if !defined(PM_SUBTRACT_BIAS_H)
00016 #define PM_SUBTRACT_BIAS_H
00017
00018 #if HAVE_CONFIG_H
00019 #include <config.h>
00020 #endif
00021
00022 #include<stdio.h>
00023 #include<math.h>
00024 #include "pslib.h"
00025
00026 typedef enum {
00027 PM_OVERSCAN_NONE,
00028 PM_OVERSCAN_ROWS,
00029 PM_OVERSCAN_COLUMNS,
00030 PM_OVERSCAN_ALL
00031 } pmOverscanAxis;
00032
00033 typedef enum {
00034 PM_FIT_NONE,
00035 PM_FIT_POLYNOMIAL,
00036 PM_FIT_SPLINE
00037 } pmFit;
00038
00039 psReadout *pmSubtractBias(psReadout *in,
00040 void *fitSpec,
00041 const psList *overscans,
00042 pmOverscanAxis overScanAxis,
00043 psStats *stat,
00044 int nBin,
00045 pmFit fit,
00046 const psReadout *bias);
00047
00048 #endif