Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

iptk::Canny Class Reference

#include <canny.h>

Inheritance diagram for iptk::Canny:

Inheritance graph
[legend]
Collaboration diagram for iptk::Canny:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class to perform a canny operation on an image.
The result of the canny operation is stored in a different memory location as compared to the originally registered image.

This result can be accessed using the getResult member function. The original/registered image is not tampered with.


Public Member Functions

 Canny (void)
 Default Constructor.

 Canny (const iptk::Image &im)
 Image registering constructor.

 Canny (const Canny &ip)
 Copy constructor Though this constructor does not look like a reference copier, the image data is shared between the passed object(i.e the parameter to the copy constructor) and the new object.

virtual ~Canny ()
 Do nothing destructor.

virtual void process (void)
 The actual processing function.

virtual void setParams (double params[])
 Sets the parameters neccesary for Canny operation.

tutk::List< gutk::PointgetEdgePixels (void)
 Returns a tutk::List of edge pixels.

virtual iptk::Image getResult (void)
 Returns the result of the canny operation.


Constructor & Destructor Documentation

iptk::Canny::Canny void   ) 
 

Default Constructor.

An object created using the default constructor should set the image by using the setImage member function.

iptk::Canny::Canny const iptk::Image im  ) 
 

Image registering constructor.

The image is autmatically registered at the construction stage.

virtual iptk::Canny::~Canny  )  [virtual]
 

Do nothing destructor.

Destructor does nothing at all as the default destructor would have been sufficient.


Member Function Documentation

tutk::List<gutk::Point> iptk::Canny::getEdgePixels void   ) 
 

Returns a tutk::List of edge pixels.

Contains pixels which have been identified as edge pixels by the canny operator.

virtual iptk::Image iptk::Canny::getResult void   )  [virtual]
 

Returns the result of the canny operation.

The returned image has different memory as compared to the registered image.

Reimplemented from iptk::IP_Function.

virtual void iptk::Canny::process void   )  [virtual]
 

The actual processing function.

The canny operator will act on the registered image with a call to this function.

Implements iptk::IP_Function.

virtual void iptk::Canny::setParams double  params[]  )  [virtual]
 

Sets the parameters neccesary for Canny operation.

The array passed to this function should hold 4 elements. The first element of the passed array should hold the mask size and the second element the standard deviation for use in performing the gaussian filtering. The third element holds the upper threshold value and the fourth element, the lower threshold value. These threshold values will be used to do linking streaking edges.

Reimplemented from iptk::IP_Function.


The documentation for this class was generated from the following file:
Generated on Mon Nov 22 11:12:41 2004 for ImprolaLib by doxygen 1.3.7