Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | regionmanager |
- im := image('quintin') - im.shape() [155 178 256] - - blc := [12,drm.def(),43] - trc := [drm.def(),50] - r1 := drm.box(blc, trc) - - im.boundingbox(r1) [blc=[12 1 43] , trc=[155 50 256] , inc=[1 1 1] , bbShape=[144 50 214] , regionShape=[144 50 214] , imageShape=[155 178 256] ]
So you can see that the blc and trc elements which were given the value drm.def() have been given default values; 1 for the blc and shape=128 for the trc. Note that trc[3] was not given. It has been returned as 256. It didn't need a drm.def() because it was the last dimension.
Typing drm.def() is rather cumbersome. However, it is unique. To make it easier, you could define your own symbol according to
- const rmd := drm.def() - blc := [1,23,43] - trc := [rmd,50] - r1 := drm.box(blc, trc)