IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2010, 5:09:20 PM (16 years ago)
Author:
Paul Price
Message:

Adding program ppSubConvolve to convolve an image by the (previously calculated) convolution kernel. Made a small change to the API for initialising PSF-matching (pmSubtraction) threads. pmSubtractionMatchPrecalc now does a quick and dirty background subtraction, just like pmSubtractionMatch does. Changed a few functions to allow one of the input readouts to be NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionThreads.c

    r26893 r27365  
    1717}
    1818
    19 // Initialise a mutex in each of the input
    20 static void subtractionMutexInit(pmReadout *ro)
    21 {
    22     if (!ro) {
    23         return;
    24     }
    25 
    26     // XXX if (ro->image) {
    27     // XXX     psMutexInit(ro->image);
    28     // XXX }
    29     // XXX if (ro->variance) {
    30     // XXX     psMutexInit(ro->variance);
    31     // XXX }
    32 
    33     return;
    34 }
    35 
    36 static void subtractionMutexDestroy(pmReadout *ro)
    37 {
    38     if (!ro) {
    39         return;
    40     }
    41 
    42     // XXX if (ro->image) {
    43     // XXX     psMutexDestroy(ro->image);
    44     // XXX }
    45     // XXX if (ro->variance) {
    46     // XXX     psMutexDestroy(ro->variance);
    47     // XXX }
    48 
    49     return;
    50 }
    51 
    52 void pmSubtractionThreadsInit(pmReadout *in1, pmReadout *in2)
     19void pmSubtractionThreadsInit(void)
    5320{
    5421    if (threaded) {
     
    5724
    5825    threaded = true;
    59 
    60     subtractionMutexInit(in1);
    61     subtractionMutexInit(in2);
    6226
    6327    {
     
    8650
    8751
    88 void pmSubtractionThreadsFinalize(pmReadout *in1, pmReadout *in2)
     52void pmSubtractionThreadsFinalize(void)
    8953{
    9054    if (!threaded) {
     
    9761    psThreadTaskRemove("PSMODULES_SUBTRACTION_CONVOLVE");
    9862
    99     subtractionMutexDestroy(in1);
    100     subtractionMutexDestroy(in1);
    10163    return;
    10264}
Note: See TracChangeset for help on using the changeset viewer.