Alida-C++ 0.5

Alida::OpenCVImageProvider Class Reference

Class for I/O of OpenCV images via commandline. More...

#include <openCVImageProvider.h>

Inheritance diagram for Alida::OpenCVImageProvider:
Collaboration diagram for Alida::OpenCVImageProvider:

List of all members.

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.

Detailed Description

Class for I/O of OpenCV images via commandline.

Definition at line 47 of file openCVImageProvider.h.


Constructor & Destructor Documentation

virtual Alida::OpenCVImageProvider::~OpenCVImageProvider ( ) [inline, virtual]

Default destructor.

Definition at line 52 of file openCVImageProvider.h.


Member Function Documentation

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.

Parameters:
inputName of file to be read.
typeImage type requested.
Returns:
Generated openCV image.

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.

Parameters:
formatOutput filename.
typeIdentifier string for object type.
dataImage to be displayed/saved.
Returns:
Empty string.

Implements Alida::ProviderCmdline.

Definition at line 84 of file openCVImageProvider.cc.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines