IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7308


Ignore:
Timestamp:
Jun 2, 2006, 2:42:41 PM (20 years ago)
Author:
magnier
Message:

setting mask,weight col0,row0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAMaskWeight.c

    r7275 r7308  
    2929    if (!mask) {
    3030        mask = psImageAlloc(image->numCols, image->numRows, PS_TYPE_U8);
     31        mask->col0 = image->col0;
     32        mask->row0 = image->row0;
    3133        readout->mask = mask;
    3234        psImageInit(mask, 0);
     
    7274    if (!weight) {
    7375        weight = psImageAlloc(image->numCols, image->numRows, PS_TYPE_F32);
     76        weight->col0 = image->col0;
     77        weight->row0 = image->row0;
    7478        readout->weight = weight;
    7579        psImageInit(weight, 0.0);
     
    8387    return true;
    8488}
    85 
    86 
    8789
    8890bool pmCellSetMaskWeight(pmCell *cell // Cell for which to set weights
     
    101103    return success;
    102104}
     105
     106bool pmReadoutSetMaskWeight(pmReadout *readout // Readout for which to set weights
     107                           )
     108{
     109    PS_ASSERT_PTR_NON_NULL(readout, false);
     110
     111    bool success;
     112
     113    success |= pmReadoutSetMask(readout);
     114    success |= pmReadoutSetWeight(readout);
     115
     116    return success;
     117}
Note: See TracChangeset for help on using the changeset viewer.