mlpack_image_converter(1) | User Commands | mlpack_image_converter(1) |
mlpack_image_converter - image converter
mlpack_image_converter -i vector [-c int] [-I string] [-H int] [-q int] [-s bool] [-V bool] [-w int] [-o string] [-h -v]
This utility takes an image or an array of images and loads them to a matrix. You can optionally specify the height '--height (-H)' width '--width (-w)' and channel '--channels (-c)' of the images that needs to be loaded; otherwise, these parameters will be automatically detected from the image. There are other options too, that can be specified such as '--quality (-q)'.
You can also provide a dataset and save them as images using '--dataset_file (-I)' and '--save (-s)' as an parameter.
$ mlpack_image_converter --input X --height 256 --width 256 --channels 3 --output_file Y.csv
An example to load an image :
An example to save an image is :
$ mlpack_image_converter --input X --height 256 --width 256 --channels 3 --dataset_file Y.csv --save
For further information, including relevant papers, citations, and theory, consult the documentation found at http://www.mlpack.org or included with your distribution of mlpack.
12 December 2020 | mlpack-3.4.2 |