tobyte
From DavinciWiki
(Difference between revisions)
(Created page with '{{DavinciWiki_Function| Converts numeric values to 8-bit unsigned integers, while preserving their relative scale | Arguments: a numeric array, and optionally the minimum and max…') |
|||
Line 9: | Line 9: | ||
This is a wrapper for [[tointeger]], in which the '''integertype''' parameter of that function is specified as "byte". | This is a wrapper for [[tointeger]], in which the '''integertype''' parameter of that function is specified as "byte". | ||
− | |||
| | | | ||
dv> d | dv> d |
Revision as of 18:47, 15 July 2012
Contents: Description, Arguments, Usage, Examples, Related Functions, Source Supported Under Version: > 1.00
Description Converts numeric values to 8-bit unsigned integers, while preserving their relative scale
Arguments and Return Values Arguments: a numeric array, and optionally the minimum and maximum values to use for the output data Return Value: A byte array
Usage
Examples dv> d 4x1x1 array of float, bsq format [16 bytes] 0.5000000000 0.0000000000 0.7500000000 1.000000000 dv> tobyte(d) 4x1x1 array of byte, bsq format [4 bytes] 127 0 191 255 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Library Changes Created On: 07-16-2012 |