IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30342


Ignore:
Timestamp:
Jan 22, 2011, 11:57:54 AM (15 years ago)
Author:
eugene
Message:

if we need to resize, we need to increase the kernel size and keep footprint-size constant (too small a kernel gives a bad solution)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psModules/src/imcombine/pmSubtractionMatch.c

    r30334 r30342  
    678678                    // in this case, just adjust the footprint and try again.
    679679                    if (tryAgain) {
    680                         footprint = PS_MAX(stamps->normWindow1, stamps->normWindow2) + 2;
     680                        // keep the border constant
     681                        int border = footprint - size;
     682                        size = PS_MAX(stamps->normWindow1, stamps->normWindow2) + 2;
     683                        footprint = size + border;
    681684
    682685                        // we need to reconstruct everything, so just free the stamps here and retry
Note: See TracChangeset for help on using the changeset viewer.