dim

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
(Update for 2.18)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{DavinciWiki_Function|
 
{{DavinciWiki_Function|
Shows and object's size
+
Shows a object's size (dimension)
 
|
 
|
 
Arguments: A numeric array
 
Arguments: A numeric array
 
   
 
   
Return Value: a 3x1x1 int array containing the x, y and z dimensions
+
Return Value: a 3x1x1 uint64 array containing the x, y and z dimensions.
 
|
 
|
Syntax: dim(object)
+
[[Syntax]]: dim(object = VAL)
 
   
 
   
 
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.
 
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.
 
|
 
|
 +
Pre davinci 2.18
 
  dv> a
 
  dv> a
 
  320x500x1 array of byte, bsq format [160,000 bytes]
 
  320x500x1 array of byte, bsq format [160,000 bytes]
Line 16: Line 17:
 
  3x1x1 array of int, bsq format [12 bytes]
 
  3x1x1 array of int, bsq format [12 bytes]
 
  320    500    1
 
  320    500    1
|
+
davinci 2.18
 +
dv> a
 +
320x500x1 array of byte, bsq format [160,000 bytes]
 +
 +
dv> dim(a)
 +
3x1x1 array of uint64, bsq format [24 bytes]
 +
320    500    1|
 
|
 
|
 
|
 
|
Line 23: Line 30:
 
|
 
|
 
}}
 
}}
[[category:Davinci Core]]
 
 
[[category:Functions]]
 
[[category:Functions]]
 +
[[category:Davinci Core]]
 
[[category:Davinci Variable Information]]
 
[[category:Davinci Variable Information]]
 +
[[category:64-bit]]

Latest revision as of 18:31, 17 November 2016



64-bit SafeYes

Description

Shows a object's size (dimension)

Arguments and Return Values

Arguments: A numeric array

Return Value: a 3x1x1 uint64 array containing the x, y and z dimensions.

Usage

Syntax: dim(object = VAL)

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

Pre davinci 2.18

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

davinci 2.18

dv> a
320x500x1 array of byte, bsq format [160,000 bytes]

dv> dim(a)
3x1x1 array of uint64, bsq format [24 bytes]
320     500     1

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 11-18-2016

Personal tools