IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2012, 10:06:48 AM (14 years ago)
Author:
eugene
Message:

when growing the CR mask, copy the values into the existing readout->mask array, otherwise we lose the association to source->maskView; mask a small region for sources that have already been detected (the exclusion radius is curretnly set to 4 pixels, and is not user-specified; deactivate some test code; saturate linear fit fluxes to min valid flux (probably superfluous); calls to psphotFitSourcesLinear in psphotReadout should skip negative fluxes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120905/psphot/src/psphotSourceSize.c

    r34404 r34415  
    675675            return false;
    676676        }
    677         psFree(readout->mask);
    678         readout->mask = newMask;
     677        // Copy the new mask pixel values to the old mask array.  NOTE: we cannot replace
     678        // the mask pointer because the source->maskView objects point to the old data
     679        // area
     680        psImage *oldMask = readout->mask;
     681        readout->mask = psImageCopy (readout->mask, newMask, PS_TYPE_IMAGE_MASK);
     682        psAssert (oldMask == readout->mask, "should have copied the values in-situ");
     683        psFree(newMask);
    679684    }
    680685
Note: See TracChangeset for help on using the changeset viewer.