dim
From DavinciWiki
(Difference between revisions)
Line 1: | Line 1: | ||
− | {{DavinciWiki_Function}} | + | {{DavinciWiki_Function| |
− | [[category: | + | Shows and object's size |
+ | | | ||
+ | Arguments: A numeric array | ||
+ | |||
+ | Return Value: a 3x1x1 int array containing the x, y and z dimensions | ||
+ | | | ||
+ | Syntax: dim(object) | ||
+ | |||
+ | The dim() function reports the size of each axis of an object. The values are returned in a 3x1x1 array, as the size of the X, Y and Z axis, respectivly. | ||
+ | | | ||
+ | dv> a | ||
+ | 320x500x1 array of byte, bsq format [160,000 bytes] | ||
+ | |||
+ | dv> dim(a) | ||
+ | 3x1x1 array of int, bsq format [12 bytes] | ||
+ | 320 500 1 | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | *[[length]] | ||
+ | | | ||
+ | | | ||
+ | }} | ||
+ | [[category:Davinci Core]] | ||
[[category:Functions]] | [[category:Functions]] | ||
[[category:Davinci Variable Information]] | [[category:Davinci Variable Information]] |
Revision as of 18:07, 21 February 2006
Contents: Description, Arguments, Usage, Examples, Related Functions Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: Yes
Description Shows and object's size
Arguments and Return Values Arguments: A numeric array Return Value: a 3x1x1 int array containing the x, y and z dimensions
Usage Syntax: dim(object) The dim() function reports the size of each axis of an object. The values are returned in a 3x1x1 array, as the size of the X, Y and Z axis, respectivly.
Examples dv> a 320x500x1 array of byte, bsq format [160,000 bytes] dv> dim(a) 3x1x1 array of int, bsq format [12 bytes] 320 500 1 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Related Functions
Recent Core Changes Modified On: 11-18-2016 |