#include <image_ref.h>
Inheritance diagram for mimas::image_ref< T >:


Public Member Functions | |
| image_ref (void) | |
| Default constructor. | |
| image_ref (const image_ref< T > &_imgref) | |
| Copy constructor. | |
| image_ref (T *_data, int _width, int _height) | |
| virtual void | fill (const T &initVal) |
| Fill all pixel with a value. | |
| T & | getPixel (int x, int y) |
| Get reference to a pixel. | |
| const T & | getPixel (int x, int y) const |
| Get const-reference to a pixel. | |
| virtual void | setPixel (int x, int y, T val) |
| Set value of a pixel. | |
| T & | pixel (int x, int y) |
| Get reference to a pixel. | |
| const T & | pixel (int x, int y) const |
| Get const-reference to a pixel. | |
| const T * | rawData (void) const |
| Read-only access to data. | |
| T * | rawData (void) |
| Access to aggregated data. | |
| iterator | upperLeft (void) |
| iterator | lowerRight (void) |
| iterator | ul (void) |
| iterator | lr (void) |
Classes | |
| class | iterator |
| iterator implementation of iterator for images as described in the paper STL-style generic programming with images by Ullrich Kothe More... | |
This class is used for wrapping raw data for the purpose of making it accessible to the Mimas-library.
Definition at line 315 of file image_ref.h.
| mimas::image_ref< T >::image_ref | ( | void | ) | [inline] |
| mimas::image_ref< T >::image_ref | ( | const image_ref< T > & | _imgref | ) | [inline, explicit] |
Copy constructor.
The data-pointer of the other object is copied (i.e. the data will be shared).
Definition at line 488 of file image_ref.h.
| mimas::image_ref< T >::image_ref | ( | T * | _data, | |
| int | _width, | |||
| int | _height | |||
| ) | [inline] |
Definition at line 492 of file image_ref.h.
| virtual void mimas::image_ref< T >::fill | ( | const T & | initVal | ) | [inline, virtual] |
Fill all pixel with a value.
Definition at line 496 of file image_ref.h.
Referenced by mimas::colour_properties_tool< T >::brightness(), mimas::colour_properties_tool< T >::contrast(), mimas::halfResolutionEdgePyramid(), and mimas::paethRotateRadian().
| T& mimas::image_ref< T >::getPixel | ( | int | x, | |
| int | y | |||
| ) | [inline] |
Get reference to a pixel.
This method includes clipping! Specifying out-of-image coordinates will result in a reference to a dummy pixel.
| x | x-coordinate | |
| y | y-coordinate |
Definition at line 509 of file image_ref.h.
Referenced by mimas::activeContour< T >::adaptContour(), mimas::pyramid_tool::expandGaussian(), mimas::pyramid_tool::reduceGaussian(), and mimas::segment_sct_tool::segment().
| const T& mimas::image_ref< T >::getPixel | ( | int | x, | |
| int | y | |||
| ) | const [inline] |
Get const-reference to a pixel.
This method includes clipping! Specifying out-of-image coordinates will result in a const-reference to the dummy pixel.
| x | x-coordinate | |
| y | y-coordinate |
Reimplemented from mimas::const_image_ref< T, T * >.
Definition at line 535 of file image_ref.h.
| virtual void mimas::image_ref< T >::setPixel | ( | int | x, | |
| int | y, | |||
| T | val | |||
| ) | [inline, virtual] |
Set value of a pixel.
This method includes clipping!
| x | x-coordinate | |
| y | y-coordinate | |
| val | New value. |
Definition at line 559 of file image_ref.h.
Referenced by mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::draw(), mimas::drawLine(), mimas::drawThickLine(), mimas::strong_features_tool::findFeatures(), mimas::segment_sct_tool::segment(), and mimas::image< Pixel_T >::sub_image().
| T& mimas::image_ref< T >::pixel | ( | int | x, | |
| int | y | |||
| ) | [inline] |
Get reference to a pixel.
No clipping!
| x | x-coordinate | |
| y | y-coordinate |
Definition at line 573 of file image_ref.h.
Referenced by mimas::pyramid_tool::buildLaplacian(), mimas::chamfer(), mimas::cgh_scene< T >::createFromImage(), mimas::bg_subtract< T >::createTemplate(), mimas::despeckleKuwahara(), mimas::despeckleMedian(), mimas::displayWithOverlay(), mimas::canny< T >::dxy_separable_convolution(), mimas::edgeLoG(), mimas::equaliseIt(), mimas::canny< T >::estimate_thresh(), mimas::pyramid_tool::expandGaussian(), mimas::filter< T >::filterCols(), mimas::filter< T >::filterRows(), mimas::strong_features_tool::findFeatures(), mimas::canny< T >::getEdges(), mimas::filter< T >::gradX(), mimas::filter< T >::gradY(), mimas::halfResolution(), mimas::halfResolutionEdgePyramid(), mimas::canny< T >::hysteresis(), mimas::canny< T >::nonmax_suppress(), mimas::oilPainting(), mimas::paethRotateRadian(), mimas::pyramid_tool::reconstructLaplacian(), mimas::pyramid_tool::reduceGaussian(), mimas::bg_subtract< T >::removeBackground(), mimas::colour_properties_tool< T >::saturation(), mimas::canny< T >::separable_convolution(), mimas::stereo< T >::stereoMap(), mimas::canny< T >::trace(), and mimas::stereo< T >::writeNormalisedDepthMapToFilePGM().
| const T& mimas::image_ref< T >::pixel | ( | int | x, | |
| int | y | |||
| ) | const [inline] |
Get const-reference to a pixel.
No clipping!
| x | x-coordinate | |
| y | y-coordinate |
Reimplemented from mimas::const_image_ref< T, T * >.
Definition at line 584 of file image_ref.h.
| const T* mimas::image_ref< T >::rawData | ( | void | ) | const [inline] |
Read-only access to data.
Reimplemented from mimas::const_image_ref< T, T * >.
Definition at line 593 of file image_ref.h.
Referenced by mimas::correlate(), mimas::filter< T >::filterRows(), mimas::gaussBlur(), mimas::filter< T >::gradX(), mimas::image_apply(), mimas::image< Pixel_T >::operator=(), and mimas::stereo< T >::writeNormalisedDepthMapToFilePGM().
| T* mimas::image_ref< T >::rawData | ( | void | ) | [inline] |
| iterator mimas::image_ref< T >::upperLeft | ( | void | ) | [inline] |
Definition at line 602 of file image_ref.h.
| iterator mimas::image_ref< T >::lowerRight | ( | void | ) | [inline] |
Definition at line 608 of file image_ref.h.
| iterator mimas::image_ref< T >::ul | ( | void | ) | [inline] |
| iterator mimas::image_ref< T >::lr | ( | void | ) | [inline] |