Alida-C++ 0.5
|
Class for I/O of OpenCV images via commandline. More...
#include <openCVImageProvider.h>
Public Member Functions | |
virtual | ~OpenCVImageProvider () |
Default destructor. | |
virtual void * | parseInput (std::string, std::string) const |
Function to open an image from given file name. | |
virtual std::string | writeOutput (std::string format, std::string type, void *data) const |
Function to output an image. |
Class for I/O of OpenCV images via commandline.
Definition at line 47 of file openCVImageProvider.h.
virtual Alida::OpenCVImageProvider::~OpenCVImageProvider | ( | ) | [inline, virtual] |
Default destructor.
Definition at line 52 of file openCVImageProvider.h.
void * OpenCVImageProvider::parseInput | ( | std::string | input, |
std::string | type | ||
) | const [virtual] |
Function to open an image from given file name.
This function interprets the given input string as filename and tries to read an image from the specified location.
input | Name of file to be read. |
type | Image type requested. |
Implements Alida::ProviderCmdline.
Definition at line 66 of file openCVImageProvider.cc.
string OpenCVImageProvider::writeOutput | ( | std::string | format, |
std::string | type, | ||
void * | data | ||
) | const [virtual] |
Function to output an image.
This function outputs/displays a given image. If the format string just contains "-", the image is displayed on screen, otherwise the format string is interpreted as filename where to save the image. The returned string is empty in both cases.
format | Output filename. |
type | Identifier string for object type. |
data | Image to be displayed/saved. |
Implements Alida::ProviderCmdline.
Definition at line 84 of file openCVImageProvider.cc.