IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2006, 4:16:05 PM (20 years ago)
Author:
Paul Price
Message:

Restoring pmMaskBadPixels to the build (it has different functionality than pmReadoutSetMask, which only sets the mask on the basis of the image pixels, not on the basis of an independent bad pixel mask). Moved pmMaskValue to pmFPAMaskWeight.h, since it's related to the camera more than the detrend step. Changed a whole heap of #include statements to point to the new location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmMaskBadPixels.c

    r6910 r7283  
    1 //////////////////////////////////////////////////////////////////////////////////////////////////////////////
    2 // XXX WARNING: I have completely replaced this file with an OLD VERSION (that works) instead of the
    3 // one that was being worked on.
    4 //////////////////////////////////////////////////////////////////////////////////////////////////////////////
    5 
    61/** @file  pmMaskBadPixels.c
    72 *
     
    2419 *  @author Ross Harman, MHPCC
    2520 *
    26  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    27  *  @date $Date: 2006-04-19 20:37:35 $
     21 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     22 *  @date $Date: 2006-06-02 02:16:05 $
    2823 *
    2924 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3429#endif
    3530
    36 #include<stdio.h>
    37 #include<math.h>
    38 #include<strings.h>
     31#include <stdio.h>
     32#include <math.h>
     33#include <strings.h>
    3934
     35#include "pmFPAMaskWeight.h"
    4036#include "pmMaskBadPixels.h"
    4137#include "pmMaskBadPixelsErrors.h"
     
    148144            /* Pixels which satisfy growVal and within the grow radius shall be masked */                    \
    149145            if(mask->data.PS_TYPE_MASK_DATA[j][i] & growVal) {                                               \
    150                 rowMin = PS_MAX(j-grow, 0);                                                                     \
    151                 rowMax = PS_MIN(j+grow+1, inImage->numRows);                                                    \
    152                 colMin = PS_MAX(i-grow, 0);                                                                     \
    153                 colMax = PS_MIN(i+grow+1, inImage->numCols);                                                    \
     146                rowMin = PS_MAX(j-grow, 0);                                                                  \
     147                rowMax = PS_MIN(j+grow+1, inImage->numRows);                                                 \
     148                colMin = PS_MAX(i-grow, 0);                                                                  \
     149                colMax = PS_MIN(i+grow+1, inImage->numCols);                                                 \
    154150                for(jj=rowMin; jj<rowMax; jj++) {                                                            \
    155151                    for(ii=colMin; ii<colMax; ii++) {                                                        \
Note: See TracChangeset for help on using the changeset viewer.