Changeset 24045
- Timestamp:
- May 3, 2009, 3:23:46 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMaskUtils.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMaskUtils.c
r23810 r24045 181 181 bool psastroMaskEllipticalAnnulus (psImage *mask, psImageMaskType value, float x0, float y0, psEllipseAxes eInner, psEllipseAxes eOuter) { 182 182 183 // skip the masking if the outer ellipse is nonsensical 184 psEllipseShape sOuter = psEllipseAxesToShape (eOuter); 185 if (isnan(sOuter.sx) || isnan(sOuter.sy) || isnan(sOuter.sxy)) return false; 186 183 187 psEllipseShape sInner = psEllipseAxesToShape (eInner); 184 psEllipseShape sOuter = psEllipseAxesToShape (eOuter); 188 if (isnan(sInner.sx) || isnan(sInner.sy) || isnan(sInner.sxy)) { 189 // use a solid ellipse if the inner ellipse is nonsensical 190 sInner.sx = 0.1; 191 sInner.sy = 0.1; 192 sInner.sxy = 0.0; 193 } 185 194 186 195 // phi is the coordinate along the elliptical path
Note:
See TracChangeset
for help on using the changeset viewer.
