ImageDev

ReadArrayXd

Reads a file containing an ArrayXd object.

Function Syntax

This function returns the outputArrayXd output parameter.
// Function prototype.
std::shared_ptr<iolink::ArrayXd>
readArrayXd( std::string filePath, std::shared_ptr<iolink::ArrayXd> outputArrayXd = NULL );
This function returns the outputArrayXd output parameter.
// Function prototype.
read_array_xd( file_path = "", output_array_xd = None )
This function returns the outputArrayXd output parameter.
// Function prototype.
public static IOLink.ArrayXd
ReadArrayXd( String filePath = "", IOLink.ArrayXd outputArrayXd = null );

Class Syntax

Parameters

Class Name ReadArrayXd

Parameter Name Description Type Supported Values Default Value
input
filePath
The path of the ArrayXd to read. String ""
output
outputArrayXd
The ArrayXd object read in the file. ArrayXd nullptr

Object Examples


ReadArrayXd readArrayXdAlgo;
readArrayXdAlgo.setFilePath( std::string( IMAGEDEVDATA_OBJECTS_FOLDER ) + "surfaceMesh.arrayxd" );
readArrayXdAlgo.execute();

std::cout << "outputArrayXd:" << readArrayXdAlgo.outputArrayXd()->shape();

read_array_xd_algo = imagedev.ReadArrayXd()
read_array_xd_algo.file_path = imagedev_data.get_object_path("surfaceMesh.arrayxd")
read_array_xd_algo.execute()

print( "output_array_xd:", str( read_array_xd_algo.output_array_xd ) )

ReadArrayXd readArrayXdAlgo = new ReadArrayXd
{
    filePath = @"Data/objects/surfaceMesh.arrayxd"
};
readArrayXdAlgo.Execute();

Console.WriteLine( "outputArrayXd:" + readArrayXdAlgo.outputArrayXd.ToString() );

Function Examples


auto result = readArrayXd( std::string( IMAGEDEVDATA_OBJECTS_FOLDER ) + "surfaceMesh.arrayxd" );

std::cout << "outputArrayXd:" << result->shape();

result = imagedev.read_array_xd( imagedev_data.get_object_path("surfaceMesh.arrayxd") )

print( "output_array_xd:", str( result ) )

IOLink.ArrayXd result = Processing.ReadArrayXd( @"Data/objects/surfaceMesh.arrayxd" );

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