Changeset 12519 for trunk/psModules/src/astrom/pmAstrometryDistortion.c
- Timestamp:
- Mar 21, 2007, 12:00:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryDistortion.c
r12485 r12519 7 7 * @author EAM, IfA 8 8 * 9 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-03- 18 22:06:58$9 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-03-21 22:00:49 $ 11 11 * 12 12 * Copyright 2006 Institute for Astronomy, University of Hawaii … … 29 29 #include "pmFPAExtent.h" 30 30 #include "pmAstrometryObjects.h" 31 #include "pmAstrometryRegions.h" 31 32 #include "pmAstrometryDistortion.h" 32 33 #include "pmKapaPlots.h" … … 317 318 // reset the fromTPA terms here. choose an appropriate region based on the dimensions of 318 319 // the complete FPA 319 psRegion *region = pmFPAExtent (fpa); 320 region->x0 *= pixelScale; 321 region->x1 *= pixelScale; 322 region->y0 *= pixelScale; 323 region->y1 *= pixelScale; 324 int xCenter = 0.5*(region->x0 + region->x1); 325 int yCenter = 0.5*(region->y0 + region->y1); 326 region->x0 -= xCenter; 327 region->x1 -= xCenter; 328 region->y0 -= yCenter; 329 region->y1 -= yCenter; 320 psRegion *region = pmAstromFPAExtent (fpa); 321 330 322 psFree (fpa->fromTPA); 331 323 fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, *region, 50);
Note:
See TracChangeset
for help on using the changeset viewer.
