Visualization 2 - Lab Course
 All Classes Functions Enumerations Enumerator
Public Member Functions | List of all members
CannyEdge Class Reference

#include <cannyedge.h>

Public Member Functions

 CannyEdge (QWindow *_qgl_window, QOpenGLContext *_qgl_contex, float _sigma, int _filterSize, int _width, int _height)
 
 ~CannyEdge ()
 
void setSigma (float _sigma)
 
float getSigma ()
 
void setFilterSize (int _filterSize)
 
int getFilterSize ()
 
void detectEdges (GLuint texture)
 
GLuint getGradientFieldTexture ()
 
GLuint getCannyEdgeTexture ()
 
QImage getGradientFieldImage ()
 
QImage getCannyEdgeImage ()
 

Detailed Description

Class to detect canny edge using OpenGL. The CannyEdge class stores data to create an image containing red edges that are created using the canny edge detector.

Author
Clemens Roegner
Christian Hirsch

Constructor & Destructor Documentation

CannyEdge::CannyEdge ( QWindow *  _qgl_window,
QOpenGLContext *  _qgl_contex,
float  _sigma,
int  _filterSize,
int  _width,
int  _height 
)

Constructor. Creates a new CannyEdge object with all necessary settings.

Parameters
_qgl_windowPointer to the Window where rendering is done.
_qgl_contexPointer to the used and initialized OpenGL context.
_sigmaSigma used for gaussian blurring of the image.
_filterSizeFilterkernel size used for the gaussion blurring of the image.
_widthWindow width.
_heightWindow height.
CannyEdge::~CannyEdge ( )

Destructor.

Member Function Documentation

void CannyEdge::detectEdges ( GLuint  texture)

Detects canny edges on an given texture.

QImage CannyEdge::getCannyEdgeImage ( )

Getter for the gradient field image.

Returns
A new QImage in which the gradient fields are stored.
GLuint CannyEdge::getCannyEdgeTexture ( )

Getter for the canny edge texture handler.

Returns
The texture handler in which the canny edges are stored.
int CannyEdge::getFilterSize ( )

Getter for kernelfilter size value.

Returns
The kernel filtersize value used for the gaussian blurring of the image.
QImage CannyEdge::getGradientFieldImage ( )

Getter for the gradient field image.

Returns
A new QImage in which the gradient fields are stored.
GLuint CannyEdge::getGradientFieldTexture ( )

Getter for the gradient field texture handler.

Returns
The texture handler in which the gradient fields are stored.
float CannyEdge::getSigma ( )

Getter for sigma value.

Returns
The sigma value used for the gaussian blurring of the image.
void CannyEdge::setFilterSize ( int  _filterSize)

Setter for the kernel filtersize value.

Parameters
_filterSizeNew value of the kernel filtersize used for the guassian blurring of the image.
void CannyEdge::setSigma ( float  _sigma)

Setter for the sigma value.

Parameters
_sigmaNew value of sigma used for the guassian blurring of the image.

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