00001 /** @file pmImageCombine.h 00002 * 00003 * This file will perform image combination of several images of the 00004 * same field, produce a list of questionable pixels, then tag some 00005 * of those pixels as cosmic rays. 00006 * 00007 * @author Paul Price, IfA (original prototype) 00008 * @author GLG, MHPCC 00009 * 00010 * @version $Revision: 1.1.1.1 $ $Name: $ 00011 * @date $Date: 2005/09/14 21:09:15 $ 00012 * 00013 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 00014 * 00015 */ 00016 00017 #if !defined(PM_IMAGE_COMBINE_H) 00018 #define PM_IMAGE_COMBINE_H 00019 00020 #if HAVE_CONFIG_H 00021 #include <config.h> 00022 #endif 00023 00024 #include<stdio.h> 00025 #include<math.h> 00026 #include "pslib.h" 00027 00028 psImage *pmCombineImages( 00029 psImage *combine, ///< Combined image (output) 00030 psArray **questionablePixels, ///< Array of rejection masks 00031 const psArray *images, ///< Array of input images 00032 const psArray *errors, ///< Array of input error images 00033 const psArray *masks, ///< Array of input masks 00034 psU32 maskVal, ///< Mask value 00035 const psPixels *pixels, ///< Pixels to combine 00036 psS32 numIter, ///< Number of rejection iterations 00037 psF32 sigmaClip, ///< Number of standard deviations at which to reject 00038 const psStats *stats ///< Statistics to use in the combination 00039 ); 00040 00041 psArray *pmRejectPixels( 00042 const psArray *images, ///< Array of input images 00043 const psArray *masks, ///< Array of input image masks 00044 const psArray *errors, ///< The pixels which were rejected in the combination 00045 const psArray *inToOut, ///< Transformation from input to output system 00046 const psArray *outToIn, ///< Transformation from output to input system 00047 psF32 rejThreshold, ///< Rejection threshold 00048 psF32 gradLimit ///< Gradient limit 00049 ); 00050 #endif
1.4.2