IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19857


Ignore:
Timestamp:
Oct 2, 2008, 10:56:52 AM (18 years ago)
Author:
eugene
Message:

normalized or unnormalized inserts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080926/psphot/src/psphotMosaicSubimage.c

    r14953 r19857  
    22
    33// insert the source image into the outimage at Xo, Yo
    4 bool psphotMosaicSubimage (psImage *outImage, pmSource *source, int Xo, int Yo, int DX, int DY) {
     4bool psphotMosaicSubimage (psImage *outImage, pmSource *source, int Xo, int Yo, int DX, int DY, bool normalize) {
    55
    66    psRegion inRegion, outRegion;
     
    3535    for (int iy = 0; iy < newImage->numRows; iy++) {
    3636        for (int ix = 0; ix < newImage->numCols; ix++) {
    37             newImage->data.F32[iy][ix] = subImage->data.F32[iy][ix] / peak;
     37            if (normalize) {
     38                newImage->data.F32[iy][ix] = subImage->data.F32[iy][ix] / peak;
     39            } else {
     40                newImage->data.F32[iy][ix] = subImage->data.F32[iy][ix] / peak;
     41            }
    3842        }
    3943    }
Note: See TracChangeset for help on using the changeset viewer.