Changeset 19857
- Timestamp:
- Oct 2, 2008, 10:56:52 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080926/psphot/src/psphotMosaicSubimage.c
r14953 r19857 2 2 3 3 // 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 ) {4 bool psphotMosaicSubimage (psImage *outImage, pmSource *source, int Xo, int Yo, int DX, int DY, bool normalize) { 5 5 6 6 psRegion inRegion, outRegion; … … 35 35 for (int iy = 0; iy < newImage->numRows; iy++) { 36 36 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 } 38 42 } 39 43 }
Note:
See TracChangeset
for help on using the changeset viewer.
