Changeset 39724
- Timestamp:
- Sep 25, 2016, 6:47:47 PM (10 years ago)
- Location:
- branches/czw_branch/20160809/psastro/src
- Files:
-
- 2 edited
-
psastroMosaicAstrom.c (modified) (2 diffs)
-
psastroMosaicCorrectDistortion.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/psastro/src/psastroMosaicAstrom.c
r39699 r39724 280 280 281 281 // psPlaneTransformInvert will generate a new fromTPA with order to match toTPA 282 fpa->fromTPA = psPlaneTransformInvert (fpa->fromTPA, fpa->toTPA, fitRegion, 100); 282 psFree (fpa->fromTPA); 283 psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4); 284 285 fpa->fromTPA = psPlaneTransformInvert (myPT, fpa->toTPA, fitRegion, 100); 286 psFree (myPT); 283 287 284 288 psFree (fpa->toSky); … … 291 295 292 296 psFree (view); 297 298 if (!psastroMosaicSetAstrom (fpa)) { 299 psError(PSASTRO_ERR_UNKNOWN, false, "failed to apply mosaic distortion terms\n"); 300 return false; 301 } 302 293 303 return true; 294 304 } -
branches/czw_branch/20160809/psastro/src/psastroMosaicCorrectDistortion.c
r21409 r39724 62 62 63 63 psFree (fpa->fromTPA); 64 fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, *region, 50); 64 psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4); 65 fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, *region, 50); 66 psFree (myPT); 65 67 psFree (region); 66 68
Note:
See TracChangeset
for help on using the changeset viewer.
