Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | regionmanager |
absrelvalue | in | Region type value | |
Allowed: | Integer - 1, 2, 3, 4 |
This function is not intended for general user use.
Regions may be specified with coordinates which are absolute or relative. This function converts the integer code defining the absolute/relative type of the coordinates (which is stored in the region) into a string (maybe for printing purposes).
The different types are
Integer String Description 1 abs Absolute coordinate 2 relref Relative reference pixel 3 relcen Relative to center of image 4 reldir Relative to some direction
- r := drm.box(blc=[3,40], trc=[80,90]) # Create region - v := r.get('arblc') # Get absrel value vector for blc - n := length(v) - for (i in 1:n) { + print drm.absreltype(v[i]) # Print string conversion for each axis + } -