Jafar
|
This class makes it easy to read images from a sequence. More...
This class makes it easy to read images from a sequence.
Definition at line 31 of file ImageReader.hpp.
#include <ImageReader.hpp>
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::Image * | loadImage (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::ImagePreprocessor * | m_imagePreprocessor |
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).
jafar::image::Image* jafar::datareader::ImageReader::loadImage | ( | unsigned int | index_ | ) | const |
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.
Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1 |