IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41743 for trunk/psModules


Ignore:
Timestamp:
Jul 30, 2021, 11:26:07 AM (5 years ago)
Author:
eugene
Message:

pattern correction saved to .ptn file over-counts background

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmPattern.c

    r36085 r41743  
    193193        for (int x = 0; x < numCols; x++) {
    194194          image->data.F32[y][x] += background;
    195           corr->data.F64[y][0]  -= background;
    196         }
     195        }
     196        corr->data.F64[y][0]  -= background;
    197197      }
    198198    }
     
    207207          for (int x = 0; x < numCols; x++) {
    208208            image->data.F32[y][x] += background;
    209             corr->data.F64[y][0]  -= background;
    210           }
     209          }
     210          corr->data.F64[y][0]  -= background;
    211211        }
    212212      }
     
    215215          for (int x = 0; x < numCols; x++) {
    216216            image->data.F32[y][x] += solution->data.F32[y];
    217             corr->data.F64[y][0]  -= solution->data.F32[y];
    218217            psTrace("pattern",5,"B: %d %d %g\n",x,y,solution->data.F32[x]);
    219218          }
     219          corr->data.F64[y][0]  -= solution->data.F32[y];
    220220        }
    221221      }
     
    241241          for (int x = 0; x < numCols; x++) {
    242242            image->data.F32[y][x] += solution->data.F32[y] * indices->data.F32[x];
    243             corr->data.F64[y][1]  -= solution->data.F32[y] ;
    244243            psTrace("pattern",5,"C: %d %d %g %g\n",x,y,solution->data.F32[x],indices->data.F32[x]);
    245244          }
     245          corr->data.F64[y][1]  -= solution->data.F32[y] ;
    246246        }
    247247      }
Note: See TracChangeset for help on using the changeset viewer.