ReadArrayXi64
Reads a file containing an ArrayXi64 object.
Function Syntax
This function returns outputArrayXi64.
// Function prototype
std::shared_ptr<iolink::ArrayXi64> readArrayXi64( std::string filePath, std::shared_ptr<iolink::ArrayXi64> outputArrayXi64 = nullptr );
This function returns outputArrayXi64.
// Function prototype. read_array_xi64(file_path: str = "", output_array_xi64: Union[idt.NDArrayInt, None] = None) -> Union[idt.NDArrayInt, None]
This function returns outputArrayXi64.
// Function prototype. public static IOLink.ArrayXi64 ReadArrayXi64( String filePath = "", IOLink.ArrayXi64 outputArrayXi64 = null );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
filePath |
The path of the ArrayXi64 to read. | String | "" | ||
outputArrayXi64 |
The ArrayXi64 object read in the file. | ArrayXi64 | nullptr |
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
file_path |
The path of the ArrayXi64 to read. | string | "" | ||
output_array_xi64 |
The ArrayXi64 object read in the file. | arrayXi64 | nullptr |
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
filePath |
The path of the ArrayXi64 to read. | String | "" | ||
outputArrayXi64 |
The ArrayXi64 object read in the file. | ArrayXi64 | nullptr |
Object Examples
ReadArrayXi64 readArrayXi64Algo; readArrayXi64Algo.setFilePath( std::string( IMAGEDEVDATA_OBJECTS_FOLDER ) + "polyline2d_1.arrayxi64" ); readArrayXi64Algo.execute(); std::cout << "outputArrayXi64:" << readArrayXi64Algo.outputArrayXi64()->shape();
read_array_xi64_algo = imagedev.ReadArrayXi64() read_array_xi64_algo.file_path = imagedev_data.get_object_path("polyline2d_1.arrayxi64") read_array_xi64_algo.execute() print("output_array_xi64:", str(read_array_xi64_algo.output_array_xi64))
ReadArrayXi64 readArrayXi64Algo = new ReadArrayXi64 { filePath = @"Data/objects/polyline2d_1.arrayxi64" }; readArrayXi64Algo.Execute(); Console.WriteLine( "outputArrayXi64:" + readArrayXi64Algo.outputArrayXi64.ToString() );
Function Examples
auto result = readArrayXi64( std::string( IMAGEDEVDATA_OBJECTS_FOLDER ) + "polyline2d_1.arrayxi64" ); std::cout << "outputArrayXi64:" << result->shape();
result = imagedev.read_array_xi64(imagedev_data.get_object_path("polyline2d_1.arrayxi64")) print("output_array_xi64:", str(result))
IOLink.ArrayXi64 result = Data.ReadArrayXi64( @"Data/objects/polyline2d_1.arrayxi64" ); Console.WriteLine( "outputArrayXi64:" + result.ToString() );