Helper Module

Functions and values

Function or value Description

generatePath outputDirectory imageName

Full Usage: generatePath outputDirectory imageName

Parameters:
    outputDirectory : string - The directory where the file will be located
    imageName : string - The name of the file or image

Returns: string A full file path obtained by combining the output directory and image name

Generates a file path by combining an output directory and an image name

outputDirectory : string

The directory where the file will be located

imageName : string

The name of the file or image

Returns: string

A full file path obtained by combining the output directory and image name

toFlatArray array2D

Full Usage: toFlatArray array2D

Parameters:
    array2D : 'a[,] - The input 2D array to be flattened

Returns: 'a[] A 1D array containing all the elements of the input 2D array

Converts a 2D array to a flat 1D array

array2D : 'a[,]

The input 2D array to be flattened

Returns: 'a[]

A 1D array containing all the elements of the input 2D array