Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | image |
csys | in | Coordinate System | |
Allowed: | Coordsys tool |
This function replaces the Coordinate System in the image. Coordinate System are stored in and manipulated with the Coordsys tool. The Coordinate System can be recovered from an image via the coordsys function.
Note that changing the Coordsys tool has no effect on the original image, until it is replaced with this function.
- im := imagefromshape(shape=[10,20]) # Make image - cs := im.coordsys(); # Recover Coordinate System - incr := cs.increment('n'); # Get increment as numeric vector - cs.setincrement(value=2*incr); # Set new increment in Coordinate System - im.setcoordsys(cs); # Set new Coordinate System in image