Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qgar::CannyGradientImage Class Reference
[Gradients and Laplacians]

#include <qgarlib/CannyGradientImage.H>

Inheritance diagram for qgar::CannyGradientImage:

qgar::AbstractGradientImage qgar::AbstractMultiImage List of all members.

Detailed Description

Canny Gradient image.

Author:
Karl Tombre
Date:
July 2, 2001 15:09
Since:
Qgar 1.0

Definition at line 66 of file CannyGradientImage.H.

Public Types

Types
typedef AbstractGradientImage::value_type value_type
 Type of the elements stored in the pixel map.
typedef value_typereference
 Reference to qgar::CannyGradientImage::value_type.
typedef const value_typeconst_reference
 Constant reference to qgar::CannyGradientImage::value_type.
typedef value_typepointer
 Pointer to qgar::CannyGradientImage::value_type.
typedef const value_typeconst_pointer
 Constant pointer to qgar::CannyGradientImage::value_type.

Public Member Functions

Constructors
 CannyGradientImage (const GreyLevelImage &anImg, double aSigma=1.0)
 Construct from given grey-level image.
 CannyGradientImage (const FloatImage &anImg, double aSigma=1.0)
 Construct from given float image.
Access
FloatImage dxImg () const
 Get copy of x derivatives image.
const FloatImageaccessDxImg () const
 Get image of x derivatives.
FloatImage dyImg () const
 Get copy of y derivatives image.
const FloatImageaccessDyImg () 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.
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 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.

Private Member Functions

Auxiliaries
void PRIVATE_CannyImage (double aSigma)
 The effective construction of the Canny contour image.


Member Typedef Documentation

typedef const value_type* qgar::CannyGradientImage::const_pointer
 

Constant pointer to qgar::CannyGradientImage::value_type.

Reimplemented from qgar::AbstractGradientImage.

Definition at line 103 of file CannyGradientImage.H.

typedef const value_type& qgar::CannyGradientImage::const_reference
 

Constant reference to qgar::CannyGradientImage::value_type.

Reimplemented from qgar::AbstractGradientImage.

Definition at line 93 of file CannyGradientImage.H.

typedef value_type* qgar::CannyGradientImage::pointer
 

Pointer to qgar::CannyGradientImage::value_type.

Reimplemented from qgar::AbstractGradientImage.

Definition at line 98 of file CannyGradientImage.H.

typedef value_type& qgar::CannyGradientImage::reference
 

Reference to qgar::CannyGradientImage::value_type.

Reimplemented from qgar::AbstractGradientImage.

Definition at line 88 of file CannyGradientImage.H.

typedef AbstractGradientImage::value_type qgar::CannyGradientImage::value_type
 

Type of the elements stored in the pixel map.

Reimplemented from qgar::AbstractGradientImage.

Definition at line 83 of file CannyGradientImage.H.


Constructor & Destructor Documentation

qgar::CannyGradientImage::CannyGradientImage const GreyLevelImage anImg,
double  aSigma = 1.0
 

Construct from given grey-level image.

Definition at line 60 of file CannyGradientImage.C.

References PRIVATE_CannyImage().

qgar::CannyGradientImage::CannyGradientImage const FloatImage anImg,
double  aSigma = 1.0
 

Construct from given float image.

Definition at line 72 of file CannyGradientImage.C.

References PRIVATE_CannyImage().


Member Function Documentation

const FloatImage & qgar::AbstractGradientImage::accessDxImg  )  const [inline, inherited]
 

Get image of x derivatives.

Definition at line 339 of file AbstractGradientImage.H.

References qgar::AbstractGradientImage::_dxImg.

Referenced by qgar::GradientLocalMaxImage::GradientLocalMaxImage().

const FloatImage & qgar::AbstractGradientImage::accessDyImg  )  const [inline, inherited]
 

Get copy of y derivatives image.

Definition at line 351 of file AbstractGradientImage.H.

References qgar::AbstractGradientImage::_dyImg.

Referenced by qgar::GradientLocalMaxImage::GradientLocalMaxImage().

FloatImage qgar::AbstractGradientImage::dxImg  )  const [inline, inherited]
 

Get copy of x derivatives image.

Definition at line 333 of file AbstractGradientImage.H.

References qgar::AbstractGradientImage::_dxImg.

Referenced by qgar::GradientModuleImage::GradientModuleImage().

float qgar::AbstractGradientImage::dxPixel int  aX,
int  aY
const [inline, inherited]
 

Get x derivative value of a pixel.

Parameters:
aX X coordinate (column index) of the pixel
aY Y coordinate (row index) of the pixel

Definition at line 357 of file AbstractGradientImage.H.

References qgar::AbstractGradientImage::_dxImg, and qgar::GenImage< T, CheckPolicy >::pixel().

Referenced by qgar::AbstractGradientImage::gradientModule().

FloatImage qgar::AbstractGradientImage::dyImg  )  const [inline, inherited]
 

Get copy of y derivatives image.

Definition at line 345 of file AbstractGradientImage.H.

References qgar::AbstractGradientImage::_dyImg.

Referenced by qgar::GradientModuleImage::GradientModuleImage().

float qgar::AbstractGradientImage::dyPixel int  aX,
int  aY
const [inline, inherited]
 

Get y derivative value of a pixel.

Parameters:
aX X coordinate (column index) of the pixel
aY Y coordinate (row index) of the pixel

Definition at line 363 of file AbstractGradientImage.H.

References qgar::AbstractGradientImage::_dyImg, and qgar::GenImage< T, CheckPolicy >::pixel().

Referenced by qgar::AbstractGradientImage::gradientModule().

float qgar::AbstractGradientImage::gradientModule int  aX,
int  aY
const [inline, inherited]
 

Get the gradient module of a pixel.

Parameters:
aX X coordinate (column index) of the pixel
aY Y coordinate (row index) of the pixel

Definition at line 369 of file AbstractGradientImage.H.

References qgar::AbstractGradientImage::dxPixel(), and qgar::AbstractGradientImage::dyPixel().

int qgar::AbstractMultiImage::height  )  const [inline, inherited]
 

Get the image height.

Definition at line 191 of file AbstractMultiImage.H.

References qgar::AbstractMultiImage::_height.

void qgar::CannyGradientImage::PRIVATE_CannyImage double  aSigma  )  [private]
 

The effective construction of the Canny contour image.

Definition at line 88 of file CannyGradientImage.C.

References qgar::AbstractGradientImage::_dxImg, qgar::AbstractGradientImage::_dyImg, qgar::QGE_AXIS_X, and qgar::QGE_AXIS_Y.

Referenced by CannyGradientImage().

AbstractGradientImage qgar::AbstractGradientImage::shallowCopy  )  [inline, inherited]
 

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.

See also:
qgar::AbstractGradientImage::operator= and copy constructor.
Warning:
When the copy is completed, the x and y pixel maps of the deritave images of the new image share their memory space with the pixel maps of the current image.

Definition at line 381 of file AbstractGradientImage.H.

References qgar::AbstractGradientImage::_dxImg, qgar::AbstractGradientImage::_dyImg, qgar::AbstractMultiImage::_height, qgar::AbstractMultiImage::_width, qgar::AbstractGradientImage::AbstractGradientImage(), and qgar::GenImage< T, CheckPolicy >::shallowCopy().

int qgar::AbstractMultiImage::width  )  const [inline, inherited]
 

Get the image width.

Definition at line 182 of file AbstractMultiImage.H.

References qgar::AbstractMultiImage::_width.


Member Data Documentation

FloatImage qgar::AbstractGradientImage::_dxImg [protected, inherited]
 

Image of x derivatives.

Definition at line 308 of file AbstractGradientImage.H.

Referenced by qgar::AbstractGradientImage::AbstractGradientImage(), qgar::AbstractGradientImage::accessDxImg(), qgar::DericheGradientImage::dfilterX(), qgar::AbstractGradientImage::dxImg(), qgar::AbstractGradientImage::dxPixel(), qgar::AbstractGradientImage::operator=(), PRIVATE_CannyImage(), and qgar::AbstractGradientImage::shallowCopy().

FloatImage qgar::AbstractGradientImage::_dyImg [protected, inherited]
 

Image of y derivatives.

Definition at line 312 of file AbstractGradientImage.H.

Referenced by qgar::AbstractGradientImage::AbstractGradientImage(), qgar::AbstractGradientImage::accessDyImg(), qgar::DericheGradientImage::dfilterY(), qgar::AbstractGradientImage::dyImg(), qgar::AbstractGradientImage::dyPixel(), qgar::AbstractGradientImage::operator=(), PRIVATE_CannyImage(), and qgar::AbstractGradientImage::shallowCopy().

int qgar::AbstractMultiImage::_height [protected, inherited]
 

Height of the image.

Definition at line 159 of file AbstractMultiImage.H.

Referenced by qgar::AbstractGradientImage::AbstractGradientImage(), qgar::DericheGradientImage::dfilterX(), qgar::DericheGradientImage::dfilterY(), qgar::AbstractMultiImage::height(), qgar::AbstractMultiImage::operator=(), and qgar::AbstractGradientImage::shallowCopy().

int qgar::AbstractMultiImage::_width [protected, inherited]
 

Width of the image.

Definition at line 154 of file AbstractMultiImage.H.

Referenced by qgar::AbstractGradientImage::AbstractGradientImage(), qgar::DericheGradientImage::dfilterX(), qgar::DericheGradientImage::dfilterY(), qgar::AbstractMultiImage::operator=(), qgar::AbstractGradientImage::shallowCopy(), and qgar::AbstractMultiImage::width().


The documentation for this class was generated from the following files: