mlpack
Functions
image_converter_main.cpp File Reference
#include <mlpack/prereqs.hpp>
#include <mlpack/core/util/io.hpp>
#include <mlpack/core/util/mlpack_main.hpp>
#include <mlpack/core.hpp>
Include dependency graph for image_converter_main.cpp:
This graph shows which files directly or indirectly include this file:

Functions

 BINDING_NAME ("Image Converter")
 
 BINDING_SHORT_DESC ("A utility to load an image or set of images into a single dataset that" " can then be used by other mlpack methods and utilities. This can also" " unpack an image dataset into individual files, for instance after mlpack" " methods have been used.")
 
 BINDING_LONG_DESC ("This utility takes an image or an array of images and loads them to a" " matrix. You can optionally specify the height "+PRINT_PARAM_STRING("height")+" width "+PRINT_PARAM_STRING("width")+" and channel "+PRINT_PARAM_STRING("channels")+" 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 "++".\\"+"You can also provide a dataset and save them as images using "+PRINT_PARAM_STRING("dataset")+" and "+PRINT_PARAM_STRING("save")+" as an parameter.")
 
 BINDING_EXAMPLE (" An example to load an image : " "\"+PRINT_CALL("image_converter", "input", "X", "height", 256, "width", 256, "channels", 3, "output", "Y")+"\"+" An example to save an image is :" "\"+PRINT_CALL("image_converter", "input", "X", "height", 256, "width", 256, "channels", 3, "dataset", "Y", "save", true))
 
 BINDING_SEE_ALSO ("@preprocess_binarize", "#preprocess_binarize")
 
 BINDING_SEE_ALSO ("@preprocess_describe", "#preprocess_describe")
 
 BINDING_SEE_ALSO ("@preprocess_imputer", "#preprocess_imputer")
 
 PARAM_VECTOR_IN_REQ (string, "input", "Image filenames which have to " "be loaded/saved.", "i")
 
 PARAM_INT_IN ("width", "Width of the image.", "w", 0)
 
 PARAM_INT_IN ("channels", "Number of channels in the image.", "c", 0)
 
 PARAM_MATRIX_OUT ("output", "Matrix to save images data to, Only" "needed if you are specifying 'save' option.", "o")
 
 PARAM_INT_IN ("quality", "Compression of the image if saved as jpg (0-100).", "q", 90)
 
 PARAM_INT_IN ("height", "Height of the images.", "H", 0)
 
 PARAM_FLAG ("save", "Save a dataset as images.", "s")
 
 PARAM_MATRIX_IN ("dataset", "Input matrix to save as images.", "I")
 

Detailed Description

Author
Jeffin Sam

A binding to load and save a image dataset.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.