deconstruct
(New page: {{DavinciWiki_Function| Rearranges an 3 dimensional image cube into a 2 dimensional array. All xy (m by n) elements are rearranged into a m x n length y-axis. All z elements are translat...) |
m |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DavinciWiki_Function| | {{DavinciWiki_Function| | ||
− | Rearranges an 3 dimensional image cube into a 2 dimensional array. All xy (m by n) elements are rearranged into a m x n length y-axis. All z elements are translated into the x-axis of the cube. This is similar to resize, but is less flexible. The reason to use this function rather than resize is because the input is very simple. | + | Rearranges an 3 dimensional image cube into a 2 dimensional array. All xy (m by n) elements are rearranged into a m x n length y-axis. All z elements are translated into the x-axis of the cube. This is similar to [[resize]], but is less flexible. The reason to use this function rather than [[resize]] is because the input is very simple. |
| | | | ||
Arguments: | Arguments: | ||
Line 10: | Line 10: | ||
[[Syntax]]: deconstruct(in_array) | [[Syntax]]: deconstruct(in_array) | ||
− | in_array: | + | in_array: array of any size |
| | | | ||
− | dv> a | + | dv> a = create(10,1000,20,start = 1,step = 1,format = float) |
10x1000x20 array of float, bsq format [800,000 bytes] | 10x1000x20 array of float, bsq format [800,000 bytes] | ||
− | dv> b | + | dv> b = deconstruct(a) |
20x10000x1 array of float, bsq format [800,000 bytes] | 20x10000x1 array of float, bsq format [800,000 bytes] | ||
| | | | ||
Line 24: | Line 24: | ||
*[[resize]] | *[[resize]] | ||
| | | | ||
+ | *misc.dvrc | ||
| | | | ||
+ | |||
}} | }} | ||
[[category:Functions]] | [[category:Functions]] | ||
[[category:User Defined Functions]] | [[category:User Defined Functions]] | ||
[[category:Matrix]] | [[category:Matrix]] |
Latest revision as of 16:03, 17 January 2008
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: >1.00
Description Rearranges an 3 dimensional image cube into a 2 dimensional array. All xy (m by n) elements are rearranged into a m x n length y-axis. All z elements are translated into the x-axis of the cube. This is similar to resize, but is less flexible. The reason to use this function rather than resize is because the input is very simple.
Arguments and Return Values Arguments: Input array (m x n x k). Return Value: Output array (k x mn x 1).
Usage
Examples dv> a = create(10,1000,20,start = 1,step = 1,format = float) 10x1000x20 array of float, bsq format [800,000 bytes] dv> b = deconstruct(a) 20x10000x1 array of float, bsq format [800,000 bytes] |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Related Functions
Recent Library Changes Created On: 12-31-2007 |