stereolib.c File Reference

#include <frame_common/stereolib.h>
#include <emmintrin.h>
#include <stdio.h>
Include dependency graph for stereolib.c:

Go to the source code of this file.

Defines

#define ACCBUFSIZE   (yim*dlen + 64)
#define ACCBUFSIZE   (yim*dlen + 64)
#define EXACTUNIQ
#define INTBUFSIZE   ((yim-YKERN+ywin)*dlen+64)
#define INTEBUFSIZE   ((yim+16+ywin)*dlen)
#define POW   0.7
#define push(x, y)
#define PXKERN   7
#define PYKERN   7
#define TEXTBUFSIZE   (yim+64)
#define TXTBUFSIZE   (yim + 64)
#define YACCBUFSIZE   (yim*dlen + 64)
#define YINTBUFSIZE   (yim+64)
#define YTEXTBUFSIZE   (yim+64)

Functions

int __attribute__ ((force_align_arg_pointer))
void do_prefilter_fast (uint8_t *im, uint8_t *ftim, int xim, int yim, uint8_t ftzero, uint8_t *buf)
void do_prefilter_norm (uint8_t *im, uint8_t *ftim, int xim, int yim, uint8_t ftzero, uint8_t *buf)
void do_prefilter_xsobel (uint8_t *im, uint8_t *ftim, int xim, int yim, uint8_t ftzero, uint8_t *buf)
void do_rectify_mono (uint8_t *dest, uint8_t *src, int w, int h, inttab_t *rtab)
void do_rectify_mono_fast (uint8_t *dest, uint8_t *src, int w, int h, inttab_t *rtab)
void do_speckle (int16_t *disp, int16_t badval, int width, int height, int rdiff, int rcount, uint32_t *labels, uint32_t *wbuf, uint8_t *rtype)
void do_stereo_d (uint8_t *lim, uint8_t *rim, int16_t *disp, int16_t *text, int xim, int yim, uint8_t ftzero, int xwin, int ywin, int dlen, int tfilter_thresh, int ufilter_thresh, uint8_t *buf)
void do_stereo_d_fast (uint8_t *lim, uint8_t *rim, int16_t *disp, int16_t *text, int xim, int yim, uint8_t ftzero, int xwin, int ywin, int dlen, int tfilter_thresh, int ufilter_thresh, uint8_t *buf)
int do_stereo_sparse (uint8_t *refpat, uint8_t *rim, int x, int y, int xim, int yim, uint8_t ftzero, int dlen, int tfilter_thresh, int ufilter_thresh)
void do_stereo_y (uint8_t *lim, uint8_t *rim, int16_t *disp, int16_t *text, int xim, int yim, uint8_t ftzero, int xwin, int ywin, int dlen, int tfilter_thresh, int ufilter_thresh, uint8_t *buf)
static void memclr (void *buf, int n)
static void memclr_si128 (__m128i *buf, int n)

Define Documentation

#define ACCBUFSIZE   (yim*dlen + 64)
#define ACCBUFSIZE   (yim*dlen + 64)
#define EXACTUNIQ

Definition at line 918 of file stereolib.c.

#define INTBUFSIZE   ((yim-YKERN+ywin)*dlen+64)
#define INTEBUFSIZE   ((yim+16+ywin)*dlen)
#define POW   0.7
#define push ( x,
 ) 
Value:
{ if ((disp[x] != badval) && (!labels[x])           \
                        && (disp[x]-y < rdiff) && (disp[x]-y > -rdiff)) \
    { labels[x] = cur; *ws++ = x; }}

Definition at line 1575 of file stereolib.c.

#define PXKERN   7

Definition at line 685 of file stereolib.c.

#define PYKERN   7

Definition at line 686 of file stereolib.c.

#define TEXTBUFSIZE   (yim+64)
#define TXTBUFSIZE   (yim + 64)
#define YACCBUFSIZE   (yim*dlen + 64)
#define YINTBUFSIZE   (yim+64)
#define YTEXTBUFSIZE   (yim+64)

Function Documentation

int __attribute__ ( (force_align_arg_pointer)   ) 

Definition at line 1452 of file stereolib.c.

void do_prefilter_fast ( uint8_t *  im,
uint8_t *  ftim,
int  xim,
int  yim,
uint8_t  ftzero,
uint8_t *  buf 
)

Definition at line 689 of file stereolib.c.

void do_prefilter_norm ( uint8_t *  im,
uint8_t *  ftim,
int  xim,
int  yim,
uint8_t  ftzero,
uint8_t *  buf 
)

Definition at line 70 of file stereolib.c.

void do_prefilter_xsobel ( uint8_t *  im,
uint8_t *  ftim,
int  xim,
int  yim,
uint8_t  ftzero,
uint8_t *  buf 
)

Definition at line 165 of file stereolib.c.

void do_rectify_mono ( uint8_t *  dest,
uint8_t *  src,
int  w,
int  h,
inttab_t rtab 
)

Definition at line 1667 of file stereolib.c.

void do_rectify_mono_fast ( uint8_t *  dest,
uint8_t *  src,
int  w,
int  h,
inttab_t rtab 
)

Definition at line 1687 of file stereolib.c.

void do_speckle ( int16_t *  disp,
int16_t  badval,
int  width,
int  height,
int  rdiff,
int  rcount,
uint32_t *  labels,
uint32_t *  wbuf,
uint8_t *  rtype 
)

Todo:
These checks shouldn't really be necessary if the border is properly marked invalid

Definition at line 1580 of file stereolib.c.

void do_stereo_d ( uint8_t *  lim,
uint8_t *  rim,
int16_t *  disp,
int16_t *  text,
int  xim,
int  yim,
uint8_t  ftzero,
int  xwin,
int  ywin,
int  dlen,
int  tfilter_thresh,
int  ufilter_thresh,
uint8_t *  buf 
)

Definition at line 443 of file stereolib.c.

void do_stereo_d_fast ( uint8_t *  lim,
uint8_t *  rim,
int16_t *  disp,
int16_t *  text,
int  xim,
int  yim,
uint8_t  ftzero,
int  xwin,
int  ywin,
int  dlen,
int  tfilter_thresh,
int  ufilter_thresh,
uint8_t *  buf 
)

Definition at line 921 of file stereolib.c.

int do_stereo_sparse ( uint8_t *  refpat,
uint8_t *  rim,
int  x,
int  y,
int  xim,
int  yim,
uint8_t  ftzero,
int  dlen,
int  tfilter_thresh,
int  ufilter_thresh 
)

Definition at line 1388 of file stereolib.c.

void do_stereo_y ( uint8_t *  lim,
uint8_t *  rim,
int16_t *  disp,
int16_t *  text,
int  xim,
int  yim,
uint8_t  ftzero,
int  xwin,
int  ywin,
int  dlen,
int  tfilter_thresh,
int  ufilter_thresh,
uint8_t *  buf 
)

Definition at line 248 of file stereolib.c.

static void memclr ( void *  buf,
int  n 
) [inline, static]

Definition at line 50 of file stereolib.c.

static void memclr_si128 ( __m128i *  buf,
int  n 
) [inline, static]

Definition at line 668 of file stereolib.c.

 All Classes Namespaces Files Functions Variables Defines


frame_common
Author(s): Kurt Konolige
autogenerated on Fri Jan 11 09:12:51 2013