mimas::image_ref< T > Class Template Reference

Wrapper to access image-data. More...

#include <image_ref.h>

Inheritance diagram for mimas::image_ref< T >:

Inheritance graph
[legend]
Collaboration diagram for mimas::image_ref< T >:

Collaboration graph
[legend]
List of all members.

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...

Detailed Description

template<typename T>
class mimas::image_ref< T >

Wrapper to access image-data.

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.


Constructor & Destructor Documentation

template<typename T>
mimas::image_ref< T >::image_ref ( void   )  [inline]

Default constructor.

Creates an empty image.

Definition at line 484 of file image_ref.h.

template<typename T>
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.

template<typename T>
mimas::image_ref< T >::image_ref ( T *  _data,
int  _width,
int  _height 
) [inline]

Definition at line 492 of file image_ref.h.


Member Function Documentation

template<typename T>
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().

template<typename T>
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.

Parameters:
x x-coordinate
y y-coordinate
See also:
pixel

dummy

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().

template<typename T>
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.

Parameters:
x x-coordinate
y y-coordinate
See also:
pixel

dummy

Reimplemented from mimas::const_image_ref< T, T * >.

Definition at line 535 of file image_ref.h.

template<typename T>
virtual void mimas::image_ref< T >::setPixel ( int  x,
int  y,
val 
) [inline, virtual]

Set value of a pixel.

This method includes clipping!

Parameters:
x x-coordinate
y y-coordinate
val New value.
See also:
pixel

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().

template<typename T>
T& mimas::image_ref< T >::pixel ( int  x,
int  y 
) [inline]

Get reference to a pixel.

No clipping!

Parameters:
x x-coordinate
y y-coordinate
See also:
setPixel

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().

template<typename T>
const T& mimas::image_ref< T >::pixel ( int  x,
int  y 
) const [inline]

Get const-reference to a pixel.

No clipping!

Parameters:
x x-coordinate
y y-coordinate
See also:
getPixel

Reimplemented from mimas::const_image_ref< T, T * >.

Definition at line 584 of file image_ref.h.

template<typename T>
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().

template<typename T>
T* mimas::image_ref< T >::rawData ( void   )  [inline]

Access to aggregated data.

Definition at line 598 of file image_ref.h.

template<typename T>
iterator mimas::image_ref< T >::upperLeft ( void   )  [inline]

Definition at line 602 of file image_ref.h.

template<typename T>
iterator mimas::image_ref< T >::lowerRight ( void   )  [inline]

Definition at line 608 of file image_ref.h.

template<typename T>
iterator mimas::image_ref< T >::ul ( void   )  [inline]

Definition at line 619 of file image_ref.h.

Referenced by mimas::image< Pixel_T >::sub_image().

template<typename T>
iterator mimas::image_ref< T >::lr ( void   )  [inline]

Definition at line 626 of file image_ref.h.

Referenced by mimas::image< Pixel_T >::sub_image().


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:35 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...