Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
jafar::datareader::ImageReader Class Reference

This class makes it easy to read images from a sequence. More...


Detailed Description

This class makes it easy to read images from a sequence.

Definition at line 31 of file ImageReader.hpp.

#include <ImageReader.hpp>

Inheritance diagram for jafar::datareader::ImageReader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void setup (std::string directory_, std::string pattern_="image.%04d.tiff", double scale_=1.0, BayerType isBayerized_=bayerNo, int width_=-1, int height_=-1, int depth_=-1, int first_=-1, int last_=-1, int step_=1, double reduction=1.0, bool isRectified_=false)
std::string getFilePath (unsigned int index) const
 return the full path to image index
int getImageWidth () const
int getImageHeight () const
int getImageDepth () const
double getOriginalReduction () const
int getFirstIndex () const
int getLastIndex () const
int getIndexStep () const
double getScale () const
bool isImageBayerized () const
bool isImageRectified () const
void loadImage (unsigned int index_, image::Image &image) const
 load image number index_ and put it in image.
jafar::image::ImageloadImage (unsigned int index_) const
 load image number index_.
void setImagePreprocessor (jafar::image::ImagePreprocessor *imagePreprocessor)

Private Attributes

std::string directory
std::string pattern
int width
int height
int depth
double reduction
int first
int last
int step
BayerType isBayerized
bool isRectified
double scale
jafar::image::ImagePreprocessorm_imagePreprocessor

Member Function Documentation

void jafar::datareader::ImageReader::loadImage ( unsigned int  index_,
image::Image image 
) const

load image number index_ and put it in image.

Original image is converted to size, depth and colorspace of image, and preprocessing nodes are applied if set in imagePreprocessor (such as rectification).

load image number index_.

Caution, this function may not resize or convert colorSpace or depth correctly, use ImageReader::loadImage(unsigned int, image::Image&) const instead.


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

Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1
LAAS-CNRS