IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2016, 1:14:28 PM (10 years ago)
Author:
eugene
Message:

bump the order for the inverse transform fromTPA

Location:
branches/czw_branch/20160809/psModules/src/astrom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/psModules/src/astrom/pmAstrometryDistortion.c

    r23989 r39754  
    335335
    336336    psFree (fpa->fromTPA);
    337     fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, *region, 50);
     337    psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4);
     338    fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, *region, 50);
     339    psFree (myPT);
    338340    psFree (region);
    339341
  • branches/czw_branch/20160809/psModules/src/astrom/pmAstrometryWCS.c

    r39697 r39754  
    691691    // the region defines the FPA pixels covered by the tranformation
    692692    psFree (fpa->fromTPA);
    693     fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, region, 50);
     693    psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4);
     694    fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, region, 50);
     695    psFree (myPT);
    694696    return true;
    695697}
Note: See TracChangeset for help on using the changeset viewer.