Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1367 |
|
Any application programmer must know a lot about the underlying conceptual structure of the Image and its three coordinate systems. For example, if I want to set the parameters associated with a coordinate system, I must write something like
nx = outImage.GetDim(1); ny = outImage.GetDim(2); CoordSys *myCoords = outImage.GetCoordSys(); ImageCoord myDelta = myCoords.GetDeltaCoord(); double xcell = myDelta.GetImageCoord(1); double ycell = myDelta.GetImageCoord(2); ImPixelCoord myRefPix = myCoords.GetRefPix(); double xrefpix = myRefPix.GetImPixCoord(1); double yrefpix = myRefPix.GetImPixCoord(2); . .while in the system SDE the analogous operation is implemented with a single line of code:
CALL CRDPUT (IMAGE, NAX, TYPE, NAXIS, RVAL, RPIX, DELT, ROTA)