IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32130


Ignore:
Timestamp:
Aug 18, 2011, 6:39:56 PM (15 years ago)
Author:
mhuber
Message:

first test changes for convol choice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/meh_branches/ppsub_test/psModules/src/imcombine/pmSubtractionMatch.c

    r31671 r32130  
    810810                    }
    811811                }
    812 
     812               
     813                //MEH probably should comment out but should be ok?
    813814                // step 0 : calculate the normalizations, pass along to the next steps via stamps->normValue
    814815                psTrace("psModules.imcombine", 3, "Calculating normalization...\n");
     
    825826                for (int order = 0; order <= N_TEST_ORDER; order++) {
    826827                    for (int j = 0; j < N_TEST_MODES; j++) {
    827                         if (!pmSubtractionMatchAttempt(&bestMatch, kernels, stamps, TestModes[j], order, false)) {
     828                        //MEH: thinking pmSubtractionCalculateNormalization needs to be called here for conv source
     829                        // per mode
     830                        psTrace("psModules.imcombine", 3, "Calculating normalization...order: %d  mode: %d\n",order,j);
     831                        if (!pmSubtractionCalculateNormalization(stamps, TestModes[j])) {
     832                            psError(psErrorCodeLast(), false, "Unable to calculate least-squares equation.");
    828833                            goto MATCH_ERROR;
    829                         }
     834                        }
     835                        //
     836                        if (!pmSubtractionMatchAttempt(&bestMatch, kernels, stamps, TestModes[j], order, false)) {
     837                          goto MATCH_ERROR;
     838                        }
    830839                    }
    831840                }
     
    843852            // apply the best fit so we are ready to roll
    844853            psLogMsg("psModules.imcombine", PS_LOG_INFO, "applying order: %d, mode: %d\n", bestMatch->spatialOrder, bestMatch->mode);
     854            //MEH need to call normalization one more time for final/best run -
     855            // but what if dual - already checked for in pmSubtractionCalculateNormalization
     856            if (!pmSubtractionCalculateNormalization(stamps, bestMatch->mode)) {
     857                psError(psErrorCodeLast(), false, "Unable to calculate least-squares equation.");
     858                goto MATCH_ERROR;
     859            }
     860            //
    845861            if (!pmSubtractionMatchAttempt(NULL, kernels, stamps, bestMatch->mode, bestMatch->spatialOrder, true)) {
    846862                goto MATCH_ERROR;
Note: See TracChangeset for help on using the changeset viewer.