IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12821


Ignore:
Timestamp:
Apr 12, 2007, 9:40:16 AM (19 years ago)
Author:
eugene
Message:

making a copy of the pixels for photometry

File:
1 edited

Legend:

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

    r12811 r12821  
    2121    }
    2222
    23     # if (0)
    24     // replace this chip with a new copy
    25     pmChip *oldChip = input->fpa->chips->data[view->chip];
    26     pmChip *newChip = pmChipDuplicate (input->fpa, oldChip);
    27     assert (newChip);
    28     input->fpa->chips->data[view->chip] = newChip;
    29     psFree (oldChip);
    30     # endif
     23    // we make a new copy of the output chip to keep psphot from modifying the output image
     24    pmChip *oldChip = pmFPAviewThisChip (view, input->src);
     25    pmChip *newChip = pmFPAviewThisChip (view, input->fpa);
     26    pmChipCopy (newChip, oldChip);
    3127
    3228    // iterate over the cells and readout for this chip
Note: See TracChangeset for help on using the changeset viewer.