Changeset 40659 for trunk/Ohana/src/opihi/mana/deimos_mkmodel.c
- Timestamp:
- Mar 29, 2019, 4:23:48 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/mana/deimos_mkmodel.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/mana/deimos_mkmodel.c
r40655 r40659 164 164 opihi_flt g = 0.0, s = 0.0; 165 165 for (int n = -Nkernel_y2; n <= Nkernel_y2; n++) { 166 if (iy +n < 0) continue; // bottom edge of full image167 if (iy +n >= Ny) continue; // top edge of full image166 if (iy - n < 0) continue; // bottom edge of full image 167 if (iy - n >= Ny) continue; // top edge of full image 168 168 int pix = ix + (n + Nkernel_y2)*Nx; 169 169 myAssert (pix < Nkernel_pix, "oops (apply_tilt)"); 170 s += kernel[pix]*input[ix + (iy +n)*Nx];170 s += kernel[pix]*input[ix + (iy - n)*Nx]; 171 171 g += kernel[pix]; // optimization: save g[ix], all should be the same 172 172 }
Note:
See TracChangeset
for help on using the changeset viewer.
