#include <qgarlib/AbstractGradientImage.H>
Inheritance diagram for qgar::AbstractGradientImage:

A pixel of such an image represents a gradient value, i.e. a pair of floats corresponding to derivatives in x and y directions.
Definition at line 74 of file AbstractGradientImage.H.
Public Types | |
Types | |
| typedef float | value_type |
| Type of the elements stored in the pixmaps. | |
| typedef value_type & | reference |
| Reference to qgar::AbstractGradientImage::value_type. | |
| typedef const value_type & | const_reference |
| Constant reference to qgar::AbstractGradientImage::value_type. | |
| typedef value_type * | pointer |
| Pointer to qgar::AbstractGradientImage::value_type. | |
| typedef const value_type * | const_pointer |
| Constant pointer to qgar::AbstractGradientImage::value_type. | |
Public Member Functions | |
Destructor | |
| virtual | ~AbstractGradientImage () |
| Virtual destructor. | |
Access | |
| FloatImage | dxImg () const |
| Get copy of x derivatives image. | |
| const FloatImage & | accessDxImg () const |
| Get image of x derivatives. | |
| FloatImage | dyImg () const |
| Get copy of y derivatives image. | |
| const FloatImage & | accessDyImg () const |
| Get copy of y derivatives image. | |
| float | dxPixel (int aX, int aY) const |
| Get x derivative value of a pixel. | |
| float | dyPixel (int aX, int aY) const |
| Get y derivative value of a pixel. | |
| float | gradientModule (int aX, int aY) const |
| Get the gradient module of a pixel. | |
Operators | |
| AbstractGradientImage & | operator= (const AbstractGradientImage &anImg) |
| Assignment (same as copy constructor). | |
Copy the current image | |
| AbstractGradientImage | shallowCopy () |
| Shallow copy: The x and y pixel maps of the deritave images (qgar::AbstractGradientImage::_dxImg and qgar::AbstractGradientImage::_dyImg) of the given image are not duplicated. | |
Access to image characteristics | |
| int | width () const |
| Get the image width. | |
| int | height () const |
| Get the image height. | |
Protected Member Functions | |
Constructors | |
Constructors belong to the protected section so that the class cannot be instantiated. | |
| AbstractGradientImage () | |
| Default constructor. | |
| AbstractGradientImage (const AbstractGradientImage &anImg) | |
| Copy constructor: Initialize from given gradient image. | |
| AbstractGradientImage (const GreyLevelImage &anImg) | |
| Initialize from given grey-level image. | |
| AbstractGradientImage (const FloatImage &anImg) | |
| Initialize from given float image. | |
| AbstractGradientImage (const DoubleImage &anImg) | |
| Initialize from given double image. | |
| AbstractGradientImage (int aWidth, int aHeight) | |
| Initialize using given width and height. | |
| AbstractGradientImage (int aWidth, int aHeight, FloatImage aDxImg, FloatImage aDyImg) | |
| Initialize from all data. | |
Protected Attributes | |
Representation of a gradient image | |
| FloatImage | _dxImg |
| Image of x derivatives. | |
| FloatImage | _dyImg |
| Image of y derivatives. | |
Representation of an image | |
| int | _width |
| Width of the image. | |
| int | _height |
| Height of the image. | |
|
|
Constant pointer to qgar::AbstractGradientImage::value_type.
Reimplemented in qgar::CannyGradientImage. Definition at line 112 of file AbstractGradientImage.H. |
|
|
Constant reference to qgar::AbstractGradientImage::value_type.
Reimplemented in qgar::CannyGradientImage. Definition at line 102 of file AbstractGradientImage.H. |
|
|
Pointer to qgar::AbstractGradientImage::value_type.
Reimplemented in qgar::CannyGradientImage. Definition at line 107 of file AbstractGradientImage.H. |
|
|
Reference to qgar::AbstractGradientImage::value_type.
Reimplemented in qgar::CannyGradientImage. Definition at line 97 of file AbstractGradientImage.H. |
|
|
Type of the elements stored in the pixmaps.
Reimplemented in qgar::CannyGradientImage. Definition at line 92 of file AbstractGradientImage.H. |
|
|
Virtual destructor.
Definition at line 129 of file AbstractGradientImage.H. |
|
|
Default constructor.
Definition at line 54 of file AbstractGradientImage.C. Referenced by shallowCopy(). |
|
|
Copy constructor: Initialize from given gradient image.
Definition at line 62 of file AbstractGradientImage.C. |
|
|
Initialize from given grey-level image.
Definition at line 71 of file AbstractGradientImage.C. References _dxImg, _dyImg, qgar::AbstractMultiImage::_height, qgar::AbstractMultiImage::_width, and qgar::GenImage< T, CheckPolicy >::pPixMap(). |
|
|
Initialize from given float image.
Definition at line 95 of file AbstractGradientImage.C. References _dxImg, _dyImg, qgar::AbstractMultiImage::_height, qgar::AbstractMultiImage::_width, and qgar::GenImage< T, CheckPolicy >::pPixMap(). |
|
|
Initialize from given double image.
Definition at line 117 of file AbstractGradientImage.C. References _dxImg, _dyImg, qgar::AbstractMultiImage::_height, qgar::AbstractMultiImage::_width, and qgar::GenImage< T, CheckPolicy >::pPixMap(). |
|
||||||||||||
|
Initialize using given width and height.
Definition at line 139 of file AbstractGradientImage.C. |
|
||||||||||||||||||||
|
Initialize from all data.
Definition at line 148 of file AbstractGradientImage.C. |
|
|
Get image of x derivatives.
Definition at line 339 of file AbstractGradientImage.H. References _dxImg. Referenced by qgar::GradientLocalMaxImage::GradientLocalMaxImage(). |
|
|
Get copy of y derivatives image.
Definition at line 351 of file AbstractGradientImage.H. References _dyImg. Referenced by qgar::GradientLocalMaxImage::GradientLocalMaxImage(). |
|
|
Get copy of x derivatives image.
Definition at line 333 of file AbstractGradientImage.H. References _dxImg. Referenced by qgar::GradientModuleImage::GradientModuleImage(). |
|
||||||||||||
|
Get x derivative value of a pixel.
Definition at line 357 of file AbstractGradientImage.H. References _dxImg, and qgar::GenImage< T, CheckPolicy >::pixel(). Referenced by gradientModule(). |
|
|
Get copy of y derivatives image.
Definition at line 345 of file AbstractGradientImage.H. References _dyImg. Referenced by qgar::GradientModuleImage::GradientModuleImage(). |
|
||||||||||||
|
Get y derivative value of a pixel.
Definition at line 363 of file AbstractGradientImage.H. References _dyImg, and qgar::GenImage< T, CheckPolicy >::pixel(). Referenced by gradientModule(). |
|
||||||||||||
|
Get the gradient module of a pixel.
Definition at line 369 of file AbstractGradientImage.H. |
|
|
Get the image height.
Definition at line 191 of file AbstractMultiImage.H. References qgar::AbstractMultiImage::_height. |
|
|
Assignment (same as copy constructor). The current image is not supposed to initially have the same dimensions as the given image.
Definition at line 165 of file AbstractGradientImage.C. References _dxImg, _dyImg, and qgar::AbstractMultiImage::operator=(). |
|
|
Shallow copy: The x and y pixel maps of the deritave images (qgar::AbstractGradientImage::_dxImg and qgar::AbstractGradientImage::_dyImg) of the given image are not duplicated.
Definition at line 381 of file AbstractGradientImage.H. References _dxImg, _dyImg, qgar::AbstractMultiImage::_height, qgar::AbstractMultiImage::_width, AbstractGradientImage(), and qgar::GenImage< T, CheckPolicy >::shallowCopy(). |
|
|
Get the image width.
Definition at line 182 of file AbstractMultiImage.H. References qgar::AbstractMultiImage::_width. |
|
|
Image of x derivatives.
Definition at line 308 of file AbstractGradientImage.H. Referenced by AbstractGradientImage(), accessDxImg(), qgar::DericheGradientImage::dfilterX(), dxImg(), dxPixel(), operator=(), qgar::CannyGradientImage::PRIVATE_CannyImage(), and shallowCopy(). |
|
|
Image of y derivatives.
Definition at line 312 of file AbstractGradientImage.H. Referenced by AbstractGradientImage(), accessDyImg(), qgar::DericheGradientImage::dfilterY(), dyImg(), dyPixel(), operator=(), qgar::CannyGradientImage::PRIVATE_CannyImage(), and shallowCopy(). |
|
|
Height of the image.
Definition at line 159 of file AbstractMultiImage.H. Referenced by AbstractGradientImage(), qgar::DericheGradientImage::dfilterX(), qgar::DericheGradientImage::dfilterY(), qgar::AbstractMultiImage::height(), qgar::AbstractMultiImage::operator=(), and shallowCopy(). |
|
|
Width of the image.
Definition at line 154 of file AbstractMultiImage.H. Referenced by AbstractGradientImage(), qgar::DericheGradientImage::dfilterX(), qgar::DericheGradientImage::dfilterY(), qgar::AbstractMultiImage::operator=(), shallowCopy(), and qgar::AbstractMultiImage::width(). |