Wondercoll
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
cvfloodfill.cpp File Reference
#include "_cv.h"

Classes

struct  CvFFillSegment
 

Macros

#define UP   1
 
#define DOWN   -1
 
#define ICV_PUSH(Y, L, R, PREV_L, PREV_R, DIR)
 
#define ICV_POP(Y, L, R, PREV_L, PREV_R, DIR)
 
#define ICV_EQ_C3(p1, p2)   ((p1)[0] == (p2)[0] && (p1)[1] == (p2)[1] && (p1)[2] == (p2)[2])
 
#define ICV_SET_C3(p, q)   ((p)[0] = (q)[0], (p)[1] = (q)[1], (p)[2] = (q)[2])
 
#define DIFF_INT_C1(p1, p2)   ((unsigned)((p1)[0] - (p2)[0] + d_lw[0]) <= interval[0])
 
#define DIFF_INT_C3(p1, p2)
 
#define DIFF_FLT_C1(p1, p2)   (fabs((p1)[0] - (p2)[0] + d_lw[0]) <= interval[0])
 
#define DIFF_FLT_C3(p1, p2)
 

Typedefs

typedef struct CvFFillSegment CvFFillSegment
 
typedef CvStatus(CV_CDECLCvFloodFillFunc )(void *img, int step, CvSize size, CvPoint seed, void *newval, CvConnectedComp *comp, int flags, void *buffer, int buffer_size, int cn)
 
typedef CvStatus(CV_CDECLCvFloodFillGradFunc )(void *img, int step, uchar *mask, int maskStep, CvSize size, CvPoint seed, void *newval, void *d_lw, void *d_up, void *ccomp, int flags, void *buffer, int buffer_size, int cn)
 

Functions

CV_IMPL void cvFloodFill (CvArr *arr, CvPoint seed_point, CvScalar newVal, CvScalar lo_diff, CvScalar up_diff, CvConnectedComp *comp, int flags, CvArr *maskarr)
 

Macro Definition Documentation

#define DIFF_FLT_C1 (   p1,
  p2 
)    (fabs((p1)[0] - (p2)[0] + d_lw[0]) <= interval[0])
#define DIFF_FLT_C3 (   p1,
  p2 
)
Value:
(fabs((p1)[0] - (p2)[0] + d_lw[0]) <= interval[0] && \
fabs((p1)[1] - (p2)[1] + d_lw[1]) <= interval[1] && \
fabs((p1)[2] - (p2)[2] + d_lw[2]) <= interval[2])
#define DIFF_INT_C1 (   p1,
  p2 
)    ((unsigned)((p1)[0] - (p2)[0] + d_lw[0]) <= interval[0])
#define DIFF_INT_C3 (   p1,
  p2 
)
Value:
((unsigned)((p1)[0] - (p2)[0] + d_lw[0])<= interval[0] && \
(unsigned)((p1)[1] - (p2)[1] + d_lw[1])<= interval[1] && \
(unsigned)((p1)[2] - (p2)[2] + d_lw[2])<= interval[2])
#define DOWN   -1
#define ICV_EQ_C3 (   p1,
  p2 
)    ((p1)[0] == (p2)[0] && (p1)[1] == (p2)[1] && (p1)[2] == (p2)[2])
#define ICV_POP (   Y,
  L,
  R,
  PREV_L,
  PREV_R,
  DIR 
)
Value:
{ \
Y = head->y; \
L = head->l; \
R = head->r; \
PREV_L = head->prevl; \
PREV_R = head->prevr; \
DIR = head->dir; \
if( ++head >= buffer_end ) \
head = buffer; \
}
#define ICV_PUSH (   Y,
  L,
  R,
  PREV_L,
  PREV_R,
  DIR 
)
Value:
{ \
tail->y = (ushort)(Y); \
tail->l = (ushort)(L); \
tail->r = (ushort)(R); \
tail->prevl = (ushort)(PREV_L); \
tail->prevr = (ushort)(PREV_R); \
tail->dir = (short)(DIR); \
if( ++tail >= buffer_end ) \
tail = buffer; \
}
#define ICV_SET_C3 (   p,
 
)    ((p)[0] = (q)[0], (p)[1] = (q)[1], (p)[2] = (q)[2])
#define UP   1

Typedef Documentation

typedef CvStatus(CV_CDECL* CvFloodFillFunc)(void *img, int step, CvSize size, CvPoint seed, void *newval, CvConnectedComp *comp, int flags, void *buffer, int buffer_size, int cn)
typedef CvStatus(CV_CDECL* CvFloodFillGradFunc)(void *img, int step, uchar *mask, int maskStep, CvSize size, CvPoint seed, void *newval, void *d_lw, void *d_up, void *ccomp, int flags, void *buffer, int buffer_size, int cn)

Function Documentation

CV_IMPL void cvFloodFill ( CvArr arr,
CvPoint  seed_point,
CvScalar  newVal,
CvScalar  lo_diff,
CvScalar  up_diff,
CvConnectedComp comp,
int  flags,
CvArr maskarr 
)