Changeset 30266 for branches/eam_branches/ipp-20101205/psModules/src/imcombine/pmSubtractionStamps.c
- Timestamp:
- Jan 12, 2011, 9:32:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psModules/src/imcombine/pmSubtractionStamps.c
r29543 r30266 812 812 stamps->normWindow2 = 2.0*R2; 813 813 psLogMsg ("psModules.imcombine", PS_LOG_DETAIL, "Kron Radii: %f for 1, %f for 2\n", stamps->normWindow1, stamps->normWindow2); 814 815 // Generate a weighting window based on the kron radii 816 { 817 float radius = 1.5 * PS_MAX(R1, R2); 818 819 psImageInit(stamps->window->image, 0.0); 820 821 for (int y = -size; y <= size; y++) { 822 for (int x = -size; x <= size; x++) { 823 if (hypot(x,y) > radius) continue; 824 stamps->window->kernel[y][x] = 1.0; 825 } 826 } 827 } 814 828 815 829 # else
Note:
See TracChangeset
for help on using the changeset viewer.
