Public Member Functions |
| RGBDImage (const std::string &filename, const std::string &depthFilename, bool useDepthImages, bool convertToCIELab=true, bool useDepthFilling=false, bool calculateIntegralImage=true) |
| Load the RGB color image and the according depth from two files on disk.
|
| RGBDImage (int width, int height) |
| For the test case.
|
| RGBDImage (const RGBDImage &other) |
| uses the attributes of another object to set its attributes
|
size_t | getSizeInMemory () const |
void | fillDepth () |
| Simple depth filling.
|
void | reset () |
| resets all values to zero
|
const cuv::ndarray< float,
cuv::host_memory_space > & | getColorImage () const |
const cuv::ndarray< int,
cuv::host_memory_space > & | getDepthImage () const |
void | calculateDerivative () |
| Calculate the image derivative.
|
void | calculateIntegral () |
| Calculate the image integral.
|
void | dump (std::ostream &out) const |
| Print the image color channels in a human-readable format to the output stream.
|
void | dumpDepth (std::ostream &out) const |
| Print the image depth channel in a human-readable format to the output stream.
|
void | dumpDepthValid (std::ostream &out) const |
| Print the image depth valid channel in a human-readable format to the output stream.
|
void | saveColor (const std::string &filename) const |
| save (export) the image color channels to a file
|
void | saveDepth (const std::string &filename) const |
| save (export) the image depth channels to a file
|
const std::string & | getFilename () const |
int | getWidth () const |
int | getHeight () const |
bool | hasIntegratedDepth () const |
bool | hasIntegratedColor () const |
bool | inImage (int x, int y) const |
void | setDepth (int x, int y, const Depth &depth) |
| Sets a new depth at the given position.
|
Depth | getDepth (int x, int y) const |
int | getDepthValid (int x, int y) const |
void | setColor (int x, int y, unsigned int channel, float color) |
| sets a new color value at the given position and color channel
|
float | getColor (int x, int y, unsigned int channel) const |
void | resizeImage (int newWidth, int newHeight) |
| resize an image to a new depth and height
|
An RGB-D image that contains four channels for the RGB color and the depth.
The class provides convenience methods to convert the image between RGB and CIELab color space and to calculate image integrals.
Image loading and saving is implemented using the vigraimpex library.
The image is stored as compact matrix in row-major order using cuv::ndarray.
Definition at line 174 of file image.h.