#include <junctiondetector.h>
|
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) |
|
JunctionDetecotr class. This class provides all the necessary methods to do X junction detection.
- Author
- Christian Hirsch
-
Clemens Roegner
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
-
image | The original image used to compute junctions. |
cannyEdgeImage | The image in which the canny edges are drawn (R, G, B = 255, 0, 0). |
gradientImage | The image in which the gradients are drawn (R, G = gradient vector, B = magnitude). |
junctionImage | In this image the calculated junctions are drawn (R, G, B = 0, 255, 0). |
outputJunctionImage | In 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
-
image | The original image used to calculate the X-junctions. |
junctionImage | This image originally consists of all the junctions (R, G, B = 0, 255, 0) and the calculated X-junctions are drawn into it. |
outputXJunctionImage | In this image, the X-junctions are marked. |
luminances | Stores the surrounding 4 luminances of an detected X-junction. |
The documentation for this class was generated from the following files:
- C:/Development/workspace/Vis2/src/junctiondetector.h
- C:/Development/workspace/Vis2/src/junctiondetector.cpp