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

#include <junctiondetector.h>

Classes

struct  ColorSignature
 

Static Public Member Functions

static void detectJunctions (const QImage &image, const QImage &cannyEdgeImage, const QImage &gradientImage, QImage &junctionImage, QImage &outputJunctionImage)
 
static void detectXJunctions (QImage &image, QImage &junctionImage, QImage &outputXJunctionImage, std::vector< std::vector< float >> &luminances)
 

Detailed Description

JunctionDetecotr class. This class provides all the necessary methods to do X junction detection.

Author
Christian Hirsch
Clemens Roegner

Member Function Documentation

void JunctionDetector::detectJunctions ( const QImage &  image,
const QImage &  cannyEdgeImage,
const QImage &  gradientImage,
QImage &  junctionImage,
QImage &  outputJunctionImage 
)
static

Detect junctions in an image. This method computes the junctions in an image using the images gradient fields and canny edges.

Parameters
imageThe original image used to compute junctions.
cannyEdgeImageThe image in which the canny edges are drawn (R, G, B = 255, 0, 0).
gradientImageThe image in which the gradients are drawn (R, G = gradient vector, B = magnitude).
junctionImageIn this image the calculated junctions are drawn (R, G, B = 0, 255, 0).
outputJunctionImageIn this image, the junctions are marked.
void JunctionDetector::detectXJunctions ( QImage &  image,
QImage &  junctionImage,
QImage &  outputXJunctionImage,
std::vector< std::vector< float >> &  luminances 
)
static

Detect X-junctions of an image. This method calculates the X-junctions from an image and stores them in another image. It also returns the surrounding luminances of an X-junction.

Parameters
imageThe original image used to calculate the X-junctions.
junctionImageThis image originally consists of all the junctions (R, G, B = 0, 255, 0) and the calculated X-junctions are drawn into it.
outputXJunctionImageIn this image, the X-junctions are marked.
luminancesStores the surrounding 4 luminances of an detected X-junction.

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