CImage:CoordUnits
The CoordUnits method returns the name of the units used to quote coordinates. If the image has a world coordinate system calibration, this uses WCS units.
sUnits = CImage:CoordUnits( Axis )
|
If the image has a WCS calibration, this returns a WCS units. If there is no WCS calibration, measurements are reported in pixels. This method works even if the image has no WCS calibration.
Assume a displayed image has a WCS calibration in microns per pixel. The following script fragment returns the name of the WCS coordinate units for axis 1 (the x, or column-number axis):
|
-- load the image from a display window |
|
-- return the units string |
|
-- result: Coord units[1]= 'microns' |