ImageDev

ReadArrayXi64

Reads a file containing an ArrayXi64 object.

Function Syntax

This function returns the outputArrayXi64 output parameter.
// Function prototype.
std::shared_ptr<iolink::ArrayXi64>
readArrayXi64( std::string filePath, std::shared_ptr<iolink::ArrayXi64> outputArrayXi64 = NULL );
This function returns the outputArrayXi64 output parameter.
// Function prototype.
read_array_xi64( file_path = "", output_array_xi64 = None )
This function returns the outputArrayXi64 output parameter.
// Function prototype.
public static IOLink.ArrayXi64
ReadArrayXi64( String filePath = "", IOLink.ArrayXi64 outputArrayXi64 = null );

Class Syntax

Parameters

Class Name ReadArrayXi64

Parameter Name Description Type Supported Values Default Value
input
filePath
The path of the ArrayXi64 to read. String ""
output
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 = Processing.ReadArrayXi64( @"Data/objects/polyline2d_1.arrayxi64" );

Console.WriteLine( "outputArrayXi64:" + result.ToString() );