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/06/15 21:07:27 $ 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(psImage *combine, ///< Combined image (output) 00029 psArray **questionablePixels, ///< Array of rejection masks 00030 const psArray *images, ///< Array of input images 00031 const psArray *errors, ///< Array of input error images 00032 const psArray *masks, ///< Array of input masks 00033 psU32 maskVal, ///< Mask value 00034 const psPixels *pixels, ///< Pixels to combine 00035 psS32 numIter, ///< Number of rejection iterations 00036 psF32 sigmaClip, ///< Number of standard deviations at which to reject 00037 const psStats *stats ///< Statistics to use in the combination 00038 ); 00039 00040 psArray *pmRejectPixels(const psArray *images, ///< Array of input images 00041 const psArray *errors, ///< The pixels which were rejected in the combination 00042 const psArray *inToOut, ///< Transformation from input to output system 00043 const psArray *outToIn, ///< Transformation from output to input system 00044 psF32 rejThreshold, ///< Rejection threshold 00045 psF32 gradLimit ///< Gradient limit 00046 ); 00047 #endif
1.4.1