#include <malloc.h>
#include <stdint.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | inttab_t |
Defines | |
#define | do_prefilter do_prefilter_xsobel |
#define | do_stereo do_stereo_d_fast |
#define | FILTEREDVAL 0 |
#define | INTOFFSET 8 |
#define | KERNSIZE 3 |
#define | MEMALIGN(x) memalign(16,x) |
#define | MEMFREE(x) {if (x) free(x);} |
#define | XKERN KERNSIZE |
#define | YKERN KERNSIZE |
Functions | |
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) |
void | do_stereo_dp (uint8_t *lim, uint8_t *rim, int16_t *disp, int xim, int yim, uint8_t ftzero, int xwin, int ywin, int dlen, int pfilter_thresh, int ufilter_thresh, int smooth_thresh, int unique_c) |
void | do_stereo_ls (uint8_t *lim, uint8_t *rim, int16_t *disp, int xim, int yim, uint8_t ftzero, int xwin, int ywin, int dlen, int pfilter_thresh, int ufilter_thresh, int smooth_thresh, int unique_c) |
void | do_stereo_mw (uint8_t *lim, uint8_t *rim, int16_t *disp, int xim, int yim, uint8_t ftzero, int xwin, int ywin, int dlen, int pfilter_thresh, int ufilter_thresh, int unique_c) |
void | do_stereo_ncc (uint8_t *lim, uint8_t *rim, int16_t *disp, int xim, int yim, uint8_t ftzero, int xwin, int ywin, int dlen, int pfilter_thresh, int ufilter_thresh, int unique_c) |
void | do_stereo_so (uint8_t *lim, uint8_t *rim, int16_t *disp, int xim, int yim, uint8_t ftzero, int xwin, int ywin, int dlen, int pfilter_thresh, int ufilter_thresh, int smooth_thresh, int unique_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) |
int | do_stereo_sparse_fast (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) |
#define do_prefilter do_prefilter_xsobel |
Definition at line 90 of file stereolib.h.
#define do_stereo do_stereo_d_fast |
Definition at line 127 of file stereolib.h.
#define FILTEREDVAL 0 |
Definition at line 84 of file stereolib.h.
#define INTOFFSET 8 |
Definition at line 284 of file stereolib.h.
#define KERNSIZE 3 |
Definition at line 78 of file stereolib.h.
#define MEMALIGN | ( | x | ) | memalign(16,x) |
Definition at line 58 of file stereolib.h.
#define MEMFREE | ( | x | ) | {if (x) free(x);} |
Definition at line 59 of file stereolib.h.
Definition at line 79 of file stereolib.h.
Definition at line 80 of file stereolib.h.
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 | ||
) |
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.
void do_stereo_dp | ( | uint8_t * | lim, |
uint8_t * | rim, | ||
int16_t * | disp, | ||
int | xim, | ||
int | yim, | ||
uint8_t | ftzero, | ||
int | xwin, | ||
int | ywin, | ||
int | dlen, | ||
int | pfilter_thresh, | ||
int | ufilter_thresh, | ||
int | smooth_thresh, | ||
int | unique_c | ||
) |
void do_stereo_ls | ( | uint8_t * | lim, |
uint8_t * | rim, | ||
int16_t * | disp, | ||
int | xim, | ||
int | yim, | ||
uint8_t | ftzero, | ||
int | xwin, | ||
int | ywin, | ||
int | dlen, | ||
int | pfilter_thresh, | ||
int | ufilter_thresh, | ||
int | smooth_thresh, | ||
int | unique_c | ||
) |
void do_stereo_mw | ( | uint8_t * | lim, |
uint8_t * | rim, | ||
int16_t * | disp, | ||
int | xim, | ||
int | yim, | ||
uint8_t | ftzero, | ||
int | xwin, | ||
int | ywin, | ||
int | dlen, | ||
int | pfilter_thresh, | ||
int | ufilter_thresh, | ||
int | unique_c | ||
) |
void do_stereo_ncc | ( | uint8_t * | lim, |
uint8_t * | rim, | ||
int16_t * | disp, | ||
int | xim, | ||
int | yim, | ||
uint8_t | ftzero, | ||
int | xwin, | ||
int | ywin, | ||
int | dlen, | ||
int | pfilter_thresh, | ||
int | ufilter_thresh, | ||
int | unique_c | ||
) |
void do_stereo_so | ( | uint8_t * | lim, |
uint8_t * | rim, | ||
int16_t * | disp, | ||
int | xim, | ||
int | yim, | ||
uint8_t | ftzero, | ||
int | xwin, | ||
int | ywin, | ||
int | dlen, | ||
int | pfilter_thresh, | ||
int | ufilter_thresh, | ||
int | smooth_thresh, | ||
int | unique_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.
int do_stereo_sparse_fast | ( | 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 | ||
) |
Definition at line 248 of file stereolib.c.