Contains auto-opened utilities related to the dfx programming model.
| Function or value |
Description
|
Full Usage:
loadImage fileName resize
Parameters:
string
resize : (int * int) option
Returns: float32[,,]
|
Loads a pixel array from a file and optionally resizes it in the process. Resizing uses bicubic interpolation.
|
Full Usage:
saveImage pixels fileName resize
Parameters:
float32[,,]
fileName : string
resize : (int * int) option
|
Saves the given pixel array to a file and optionally resizes it in the process. Resizing uses bicubic interpolation. Supports .png and .jpg formats.
|
© Copyright 2021, DiffSharp and dfx Contributors.