qvdta Namespace Reference


Classes

class  QVDisjointSet
 This class is an implementation of a disjoint-set data structure. More...

Functions

uInt debug_aux_print_componentTree (const QVComponentTree *componentTree, int node, int numTabs)
uInt debug_print_componentTree (const QVComponentTree *componentTree)
QVPolyline getContourThresholdFromBorderPoint (const QVImage< uChar > &image, const int startPointX, const int startPointY, const uChar threshold)
QVPolyline getContourThreshold (const QVImage< uChar > &image, const QPoint startPoint, const uChar threshold)
QList< QVPolyline > getContoursThreshold (const QVImage< uChar > &image, const uChar threshold)
 Obtains a list of border poly-lines , for all connected sets in an image, following a thresholding criteria.
QVPolyline getContourThreshold (QVImage< uChar > &image, QPoint point, uChar threshold)
 Obtains a list of border pixels in a connected region of an image, by thresholding criteria.
QVector< QVector
< QPoint > > 
CountingSort (const QVImage< uChar, 1 > &img)
 Sorts pixels in an image, given their gray-scale value.
void HarrisCornerResponseImage (const QVImage< uChar > &image, QVImage< sFloat > &result)
void SobelCornerResponseImage (const QVImage< uChar > &image, QVImage< sFloat > &result)
void FilterLocalMax (const QVImage< sFloat > &src, QVImage< uChar > &dest, uInt colMaskSize, uInt rowMaskSize, sFloat threshold=0)
 Generates a binary image of local grey-scale maximal value pixels.
int myFloodFill (QVImage< uChar > &image, uInt x, uInt y, uInt value, uInt minVal, uInt maxVal)

Variables

const char coorX [8] = { 0, 1, 1, 1, 0, -1, -1, -1 }
const char coorY [8] = { -1, -1, 0, 1, 1, 1, 0, -1 }


Function Documentation

QVector< QVector< QPoint > > qvdta::CountingSort ( const QVImage< uChar, 1 > &  img  ) 

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.

The function itself is based in Counting Sort algorithm , so the cost of this function is O(number_of_columns * number_of_rows).

Parameters:
img source image to obtain sorted lists of QPoints.
Returns:
A QVector, indexed by the gray-scale value (0-255), to a QVector of QPoints, containing the corresponding points to the pixels that hold that gray-scale value in the image.

Definition at line 30 of file qvdta.cpp.

References QVImage< Type, Planes >::getCols(), QVImage< Type, Planes >::getRows(), qvipp::HistogramRange(), QVIMAGE_INIT_READ, and QVIMAGE_PIXEL.

void qvdta::FilterLocalMax ( const QVImage< sFloat > &  src,
QVImage< uChar > &  dest,
uInt  colMaskSize,
uInt  rowMaskSize,
sFloat  threshold = 0 
)

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.

Parameters:
src source image.
dest binary image that will contain maximal values.
colMaskSize width of the vicinity.
rowMaskSize height of the vicinity.

Definition at line 93 of file qvdta.cpp.

References QVImage< Type, Planes >::getCols(), QVImage< Type, Planes >::getRows(), QVIMAGE_INIT_READ, QVIMAGE_INIT_WRITE, QVIMAGE_PIXEL, and qvipp::Set().

QList< QVPolyline > qvdta::getContoursThreshold ( const QVImage< uChar > &  image,
const uChar  threshold 
)

Obtains a list of border poly-lines , for all connected sets in an image, following a thresholding criteria.

This function gets the border subsets of a connected set of pixels in an image, as a list of QVPolyline's.

The condition to consider any pixel inside of the connected set will be that it's gray-scale value should be higher or equal than a given threshold value, considering any pixel with a lesser gray-scale value outside the set.

This function uses getContourThreshold to get contours of the connected sets it finds in the picture.

Parameters:
image image from were to obtain the poly-lines.
threshold threshold to consider pixels inside or outside the connected sets.
Returns:
a QList of QVPolyline's that follows the border sets of the connected sets in the image.
See also:
getContourThreshold

Definition at line 158 of file qvcontour.cpp.

References draw(), QVImage< Type, Planes >::getCols(), getContourThresholdFromBorderPoint(), QVGenericImage::getROI(), QVImage< Type, Planes >::getRows(), QVIMAGE_INIT_READ, QVIMAGE_INIT_WRITE, QVIMAGE_PIXEL, and qvipp::Set().

QVPolyline qvdta::getContourThreshold ( QVImage< uChar > &  image,
QPoint  point,
uChar  threshold 
)

Obtains a list of border pixels in a connected region of an image, by thresholding criteria.

This function gets the border subset of a connected set of pixels in an image, as a QVPolyline.

The condition to consider any pixel inside of the connected set will be that it's gray-scale value should be higher or equal than a given threshold value, considering any pixel with a lesser gray-scale value outside the set.

Parameters:
image image from were to obtain the poly-line.
point any point inside the connected set.
threshold threshold to consider pixels inside or outside the connected set.
Returns:
a QVPolyline that follows the border set of the connected set.
See also:
getContoursThreshold


Generated on Fri Dec 7 12:21:00 2007 for QVision by  doxygen 1.5.3