IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2006, 6:00:06 PM (20 years ago)
Author:
Paul Price
Message:

Rearranging header files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageWeights.c

    r5858 r6260  
    1 # include "ppImage.h"
     1#include <stdio.h>
     2#include "pslib.h"
     3#include "pmFPA.h"
     4#include "ppImage.h"
    25
    36bool ppReadoutWeights (pmReadout *readout) {
     
    1013    float rdnoise = 5.0;  // in electrons
    1114    float gain = 2.0;     // in e/ADU
    12    
     15
    1316    float rgain = 1.0 / gain;
    1417    float rnoise = PS_SQR (rdnoise / gain);
     
    1922
    2023    for (int j = 0; j < image->numRows; j++) {
    21         for (int i = 0; i < image->numCols; i++) {
    22             vM[j][i] = 0;
    23             vW[j][i] = PS_MAX (rgain * vI[j][i] + rnoise, 0.0);
    24         }
     24        for (int i = 0; i < image->numCols; i++) {
     25            vM[j][i] = 0;
     26            vW[j][i] = PS_MAX (rgain * vI[j][i] + rnoise, 0.0);
     27        }
    2528    }
    2629    return true;
Note: See TracChangeset for help on using the changeset viewer.