PARP Research Group University of Murcia, Spain


src/qvip/qvip.cpp File Reference

File from the QVision library. More...

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <qvip.h>
#include <qvipp.h>
#include <qvmath.h>
#include <qvdefines.h>
#include <qvmatrixalgebra.h>
#include <QVPolyline>
#include <QVPolylineF>
#include <QList>
#include <QVComponentTree>
#include <qvmath/qvdisjointset.h>
#include <qvmath/qvvector.h>

Go to the source code of this file.

Functions

void FilterLocalMax (const QVImage< sFloat > &src, QVImage< uChar > &dest, uInt colMaskSize, uInt rowMaskSize, sFloat threshold)
 Generates a binary image of local grey-scale maximal value pixels.

This function receives a QVImage, and generates a binary image where each pixel is set to IPP_MAX_8U if the pixel in the original image is strict maximal in value regarding to pixels in a vicinity window of colMaskSize width, and rowMaskSize height.

void FilterHarrisCornerResponseImage (const QVImage< uChar > &image, QVImage< sFloat > &result, int aperture, int avgwindow, const QPoint &)
void FilterDoG (const QVImage< uChar > &image, QVImage< uChar > &result)
void SobelCornerResponseImage (const QVImage< sFloat > &image, QVImage< sFloat > &result)
void FilterHessianCornerResponseImage (const QVImage< sFloat > &image, QVImage< sFloat > &result, const QPoint &destROIOffset)
int myFloodFill (QVImage< uChar > &image, uInt x, uInt y, uInt value, uInt minVal, uInt maxVal)
QMap< sFloat, QPointF > maximalPoints (const QVImage< sFloat > &cornerResponseImage, const double threshold, const int windowRadius)
QMap< sFloat, QPointF > fastMaximalPoints (const QVImage< sFloat > &image, const double threshold, const int windowRadius)
QVector< QVector< QPoint > > CountingSort (const QVImage< uChar, 1 > &image)
 Sorts pixels in an image, given their gray-scale value.

This function obtains a QVector, that maps any gray-scale values (0..255) to the set of QPoints that hold that gray-scale value, in a given image. It can be used for very fast pixel sorting.

double IterativePointElimination (const QVPolyline &polyline, QVPolyline &result, const double param, bool maxNumberOfPointsMethod, bool intersectLines, double *max_removed_cost)
 Simplifies a contour eliminating points of little area using IPE algorithm

This function eliminates points of a QVPolylineF, simplificating it. Points are recursively eliminated while a) their distance to the line joining its two immediate neighbours is smaller than a given maximum value, or b) the number of points of the approximated polyline falls below a given number (depending on the chosen method).

double IterativePointElimination (const QVPolylineF &polyline, QVPolylineF &result, const double param, bool maxNumberOfPointsMethod, bool intersectLines, double *max_removed_cost)
 Simplifies a contour eliminating points of little area using IPE algorithm

This is an overloaded version of the IterativePointElimination, provided for convenience.

QVPolyline getConnectedSetBorderContourThreshold (const QVImage< uChar > &image, const QPoint startPoint, const uChar threshold)
 Obtains the border contour of a connected set of pixels in an image, given a membership condition.

A contour is a sequence of pixels from an image, were every two contiguous pixels in the sequence are neighbours in the image.

QList< QVPolylinegetConnectedSetBorderContoursThreshold (const QVImage< uChar > &image, const uChar threshold)
 Obtains a list of the border contours of the connected sets in an image, according to a membership condition.

This function gets the border contours for all of the connected sets of pixels in an image, using the function getConnectedSetBorderContourThreshold(const QVImage<uChar> &, const QPoint, const uChar), and returns them in a list of polylines (QList<QVPolyline>).

QList< QVPolylinegetLineContoursThreshold4Connectivity (const QVImage< uChar > &image, const uChar threshold)
 Obtains a list of the 4-connected contour lines in the image

A contour is a sequence of pixels from an image, were every two contiguous pixels in the sequence are neighbours in the image.

QList< QVPolylinegetLineContoursThreshold8Connectivity (const QVImage< uChar > &image, const uChar threshold)
 Obtains a list of the 8-connected contour lines in the image

A contour is a sequence of pixels from an image, were every two contiguous pixels in the sequence are neighbours in the image.


Detailed Description

File from the QVision library.

Author:
PARP Research Group. University of Murcia, Spain.

Definition in file qvip.cpp.


Function Documentation

int myFloodFill ( QVImage< uChar > &  image,
uInt  x,
uInt  y,
uInt  value,
uInt  minVal,
uInt  maxVal 
)

Todo:
this function is deprecated: erase it and replace calls to it by IPP's flood fill function.

Definition at line 111 of file qvip.cpp.




QVision framework. PARP research group, copyright 2007, 2008.