Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | image |
value | in | Absolute world coordinate | |
Allowed: | Numeric vector, vector of quantities or record | ||
Default: | Reference value |
This function converts from absolute world to pixel coordinate (1-rel). The world coordinate can be provided in many formats (numeric, string, quantum etc.) via the argument value. These match the output formats of function toworld.
This function is just a wrapper for the Coordsys tool function topixel so see the documentation there for a description and more examples.
- im := imagemaketestimage(); - w := im.toworld([10,10], 'n') # Numeric vector - im.topixel(w) [10 10] - w := im.toworld([10,10], 'm') # Record of measures - im.topixel(w) [10 10]Convert to a pixel coordinate to world as floats and then back to pixel. Do the same with the world coordinate formatted as measures instead.