Functions | Variables
ComponentLabeling.cpp File Reference
#include "hrl_cvblobslib/ComponentLabeling.h"
Include dependency graph for ComponentLabeling.cpp:

Go to the source code of this file.

Functions

void ASSIGN_LABEL (CvPoint p, t_labelType *labels, int imageWidth, int newLabel)
void ASSIGN_VISITED (CvPoint p, bool *visitedPoints, int imageWidth)
bool ComponentLabeling (IplImage *inputImage, IplImage *maskImage, unsigned char backgroundColor, Blob_vector &blobs)
void contourTracing (IplImage *image, IplImage *maskImage, CvPoint contourStart, t_labelType *labels, bool *visitedPoints, t_labelType label, bool internalContour, unsigned char backgroundColor, CBlobContour *currentBlobcontour)
unsigned char GET_ABOVE_IMAGEPIXEL (unsigned char *currentPixel, IplImage *image)
unsigned char GET_BELOW_IMAGEPIXEL (unsigned char *currentPixel, IplImage *image)
bool GET_BELOW_VISITEDPIXEL (bool *currentPixel, int imageWidth)
unsigned char GET_IMAGE_PIXEL (IplImage *image, CvPoint p)
bool GET_IMAGEMASK_PIXEL (IplImage *mask, CvPoint p)
CvPoint tracer (IplImage *image, IplImage *maskImage, CvPoint P, bool *visitedPoints, short initialMovement, unsigned char backgroundColor, short &movement)

Variables

static const CvPoint freemanCodeIncrement [8]
 Conversion from freeman code to coordinate increments (counterclockwise)

Function Documentation

void ASSIGN_LABEL ( CvPoint  p,
t_labelType labels,
int  imageWidth,
int  newLabel 
) [inline]
  • FUNCIÓ: ASSIGN_LABEL
  • FUNCIONALITAT: Assigns label value to label image
  • PARÀMETRES:
  • RESULTAT:
  • RESTRICCIONS:
  • AUTOR: rborras
  • DATA DE CREACIÓ: 2008/04/29
  • MODIFICACIÓ: Data. Autor. Descripció.

Definition at line 64 of file ComponentLabeling.cpp.

void ASSIGN_VISITED ( CvPoint  p,
bool visitedPoints,
int  imageWidth 
) [inline]

Definition at line 70 of file ComponentLabeling.cpp.

bool ComponentLabeling ( IplImage *  inputImage,
IplImage *  maskImage,
unsigned char  backgroundColor,
Blob_vector blobs 
)
  • FUNCIÓ: ComponentLabeling
  • FUNCIONALITAT: Calcula els components binaris (blobs) d'una imatge amb connectivitat a 8
  • PARÀMETRES:
    • inputImage: image to segment (pixel values different than blobColor are treated as background)
    • maskImage: if not NULL, all the pixels equal to 0 in mask are skipped in input image
    • backgroundColor: color of background (ignored pixels)
    • blobs: blob vector destination
  • RESULTAT:
  • RESTRICCIONS:
  • AUTOR: rborras
  • DATA DE CREACIÓ: 2008/04/21
  • MODIFICACIÓ: Data. Autor. Descripció.
  • NOTA: Algorithm based on "A linear-time component labeling algorithm using contour tracing technique", F.Chang et al

current blob pointer

Definition at line 93 of file ComponentLabeling.cpp.

void contourTracing ( IplImage *  image,
IplImage *  maskImage,
CvPoint  contourStart,
t_labelType labels,
bool visitedPoints,
t_labelType  label,
bool  internalContour,
unsigned char  backgroundColor,
CBlobContour currentBlobcontour 
)
  • FUNCIÓ:
  • FUNCIONALITAT:
  • PARÀMETRES:
  • RESULTAT:
  • RESTRICCIONS:
  • AUTOR: rborras
  • DATA DE CREACIÓ: 2008/04/29
  • MODIFICACIÓ: Data. Autor. Descripció.

Definition at line 267 of file ComponentLabeling.cpp.

unsigned char GET_ABOVE_IMAGEPIXEL ( unsigned char *  currentPixel,
IplImage *  image 
) [inline]
  • FUNCIÓ:
  • FUNCIONALITAT:
  • PARÀMETRES:
  • RESULTAT:
  • RESTRICCIONS:
  • AUTOR: rborras
  • DATA DE CREACIÓ: 2008/04/29
  • MODIFICACIÓ: Data. Autor. Descripció.

Definition at line 23 of file ComponentLabeling.cpp.

unsigned char GET_BELOW_IMAGEPIXEL ( unsigned char *  currentPixel,
IplImage *  image 
) [inline]

Definition at line 27 of file ComponentLabeling.cpp.

bool GET_BELOW_VISITEDPIXEL ( bool currentPixel,
int  imageWidth 
) [inline]

Definition at line 46 of file ComponentLabeling.cpp.

unsigned char GET_IMAGE_PIXEL ( IplImage *  image,
CvPoint  p 
) [inline]

Definition at line 34 of file ComponentLabeling.cpp.

bool GET_IMAGEMASK_PIXEL ( IplImage *  mask,
CvPoint  p 
) [inline]

Definition at line 39 of file ComponentLabeling.cpp.

CvPoint tracer ( IplImage *  image,
IplImage *  maskImage,
CvPoint  P,
bool visitedPoints,
short  initialMovement,
unsigned char  backgroundColor,
short &  movement 
)
  • FUNCIÓ: tracer
  • FUNCIONALITAT: Searches for next point of a contour
  • PARÀMETRES:
  • RESULTAT:
  • RESTRICCIONS:
  • AUTOR: rborras
  • DATA DE CREACIÓ: 2008/04/30
  • MODIFICACIÓ: Data. Autor. Descripció.

Definition at line 345 of file ComponentLabeling.cpp.


Variable Documentation

const CvPoint freemanCodeIncrement[8] [static]
Initial value:
    { {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} }

Conversion from freeman code to coordinate increments (counterclockwise)

Definition at line 5 of file ComponentLabeling.cpp.



hrl_cvblobslib
Author(s): kelsey
autogenerated on Wed Nov 27 2013 11:32:58