Changeset 41533 for trunk/psModules/src/astrom/pmAstrometryWCS.c
- Timestamp:
- Apr 3, 2021, 2:21:37 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/astrom/pmAstrometryWCS.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryWCS.c
r40553 r41533 606 606 psRegion *region = pmChipPixels (chip); 607 607 608 // as of r40806, psPlaneTransformInvert supplies the extra order (if non-linear) 608 609 psFree (chip->fromFPA); 609 assert (chip->fromFPA == NULL); 610 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50); 610 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 4); 611 611 psFree (region); 612 612 … … 666 666 psRegion *region = pmChipPixels (chip); 667 667 668 // as of r40806, psPlaneTransformInvert supplies the extra order (if non-linear) 668 669 psFree (chip->fromFPA); 669 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50 );670 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 4); 670 671 psFree (region); 671 672 … … 691 692 } 692 693 } 694 695 // XXX the way this is coded, updates will NOT have the same behavior as with the 696 // original code: the if ADDITIONAL_WCS_ORDERS is not found, the default 697 // should be 0 (or else we need some way to detect the update version) 693 698 694 699 // the transformation used the region to define the inversion grid … … 701 706 additional_orders = config_additional_orders; 702 707 } 703 704 psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+additional_orders, fpa->toTPA->x->nY+additional_orders); 705 706 fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, region, 50); 707 psFree (myPT); 708 fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, region, 50, additional_orders); 708 709 return true; 709 710 } … … 1030 1031 } 1031 1032 1032 psPlaneTransform *outFromFPA = psPlaneTransformInvert(NULL, outToFPA, *outputBounds, 50); 1033 // NOTE: the extraOrders value (4) should be ignored since outToFPA is specified to be linear 1034 psPlaneTransform *outFromFPA = psPlaneTransformInvert(NULL, outToFPA, *outputBounds, 50, 4); 1033 1035 if (!outFromFPA) { 1034 1036 psFree(outToFPA); … … 1147 1149 1148 1150 // this is a linear transformation 1149 psPlaneTransform *newFromFPA = psPlaneTransformInvert(NULL, newToFPA, *bounds, 1 );1151 psPlaneTransform *newFromFPA = psPlaneTransformInvert(NULL, newToFPA, *bounds, 1, 0); 1150 1152 if (!newFromFPA) { 1151 1153 psFree(newToFPA);
Note:
See TracChangeset
for help on using the changeset viewer.
