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

Classes

struct  CvHeapElem
 
class  CvPriorityQueueFloat
 

Macros

#define CV_MAT_ELEM_PTR_FAST(mat, row, col, pix_size)   ((mat).data.ptr + (size_t)(mat).step*(row) + (pix_size)*(col))
 
#define CV_MAT_3COLOR_ELEM(img, type, y, x, c)   CV_MAT_ELEM(img,type,y,(x)*3+(c))
 
#define KNOWN   0
 
#define BAND   1
 
#define INSIDE   2
 
#define CHANGE   3
 
#define SET_BORDER1_C1(image, type, value)
 
#define COPY_MASK_BORDER1_C1(src, dst, type)
 

Typedefs

typedef struct CvHeapElem CvHeapElem
 

Functions

float min4 (float a, float b, float c, float d)
 
float VectorScalMult (CvPoint2D32f v1, CvPoint2D32f v2)
 
float VectorLength (CvPoint2D32f v1)
 
float FastMarching_solve (int i1, int j1, int i2, int j2, const CvMat *f, const CvMat *t)
 
CV_IMPL void cvInpaint (const CvArr *_input_img, const CvArr *_inpaint_mask, CvArr *_output_img, double inpaintRange, int flags)
 

Macro Definition Documentation

#define BAND   1
#define CHANGE   3
#define COPY_MASK_BORDER1_C1 (   src,
  dst,
  type 
)
Value:
{\
int i,j;\
for (i=0; i<src->rows; i++) {\
for(j=0; j<src->cols; j++) {\
if (CV_MAT_ELEM(*src,type,i,j)!=0)\
CV_MAT_ELEM(*dst,type,i+1,j+1) = INSIDE;\
}\
}\
}
#define CV_MAT_3COLOR_ELEM (   img,
  type,
  y,
  x,
  c 
)    CV_MAT_ELEM(img,type,y,(x)*3+(c))
#define CV_MAT_ELEM_PTR_FAST (   mat,
  row,
  col,
  pix_size 
)    ((mat).data.ptr + (size_t)(mat).step*(row) + (pix_size)*(col))
#define INSIDE   2
#define KNOWN   0
#define SET_BORDER1_C1 (   image,
  type,
  value 
)
Value:
{\
int i,j;\
for(j=0; j<image->cols; j++) {\
CV_MAT_ELEM(*image,type,0,j) = value;\
}\
for (i=1; i<image->rows-1; i++) {\
CV_MAT_ELEM(*image,type,i,0) = CV_MAT_ELEM(*image,type,i,image->cols-1) = value;\
}\
for(j=0; j<image->cols; j++) {\
CV_MAT_ELEM(*image,type,erows-1,j) = value;\
}\
}

Typedef Documentation

typedef struct CvHeapElem CvHeapElem

Function Documentation

CV_IMPL void cvInpaint ( const CvArr _input_img,
const CvArr _inpaint_mask,
CvArr _output_img,
double  inpaintRange,
int  flags 
)
float FastMarching_solve ( int  i1,
int  j1,
int  i2,
int  j2,
const CvMat f,
const CvMat t 
)
float min4 ( float  a,
float  b,
float  c,
float  d 
)
float VectorLength ( CvPoint2D32f  v1)
float VectorScalMult ( CvPoint2D32f  v1,
CvPoint2D32f  v2 
)