
Contents |
Binary 2D Array
Import binary 2d array file
Minimum Origin Version Required: 8.0 SR5
impBin2d fname:="C:\temp4096x5120.img"
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| File Name | fname |
Input string | | Specify the file to be imported. |
| Number of Columns | ncols |
Input int | | Specify the number of columns of the output matrix. |
| Byte Length | bytes |
Input int | | Specify the byte length of the import data.
|
| Signed/Unsigned | sign |
Input int | | Specify the type of data in the input file.
Option list:
|
| Big-Endian | bigend |
Input int | | Specify whether the byte order of the import data is Big-Endian. The default value is false. |
| Header Bytes | offset |
Input int | | Specify the number of header bytes in the import file. These header bytes will be skipped. |
| Output | orng |
Output Range | | Specify the destination of imported data.
See the syntax here. |
This function imports image data (.img files) and Origin binary matrix data (.b2d files) into matrix windows.
For example, you want to import a binary 2D data into a matrix. The byte length of the file is two. And the file has no header bytes. To import it into a matrix which has 256 columns, you can do the following steps: