-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathANCCwithCSBP.h
33 lines (22 loc) · 1017 Bytes
/
ANCCwithCSBP.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include "cv.h"
#include "highgui.h"
#include "Util.h"
class ANCCwithCSBP
{
public:
ANCCwithCSBP(void);
~ANCCwithCSBP(void);
void match(IplImage *leftImg, IplImage *rightImg, IplImage* disparityImg,
int disparityRangeFrom, int disparityRangeTo,
int winSize, double sigmaDistance, double sigmaColor,
int nPyramidLevels, int nIter, double discCostTruncate, double dataCostTruncate, double dataCostWeighting);
private:
void initTheCoarsestLevelOfBPdataCostsUsingANCC(IplImage *leftImg, IplImage *rightImg,
CvMemStorage**** dataCostsStorage, CvSeq**** dataCosts,
int disparityRangeTo, int disparityRangeFrom,
int winSize, double sigmaDistance, double sigmaColor,
int nPyramidLevels, double dataCostTruncate, double dataCostWeighting);
void createPyramidImages(IplImage *leftImg, IplImage *rightImg, int nPyramidLevels,
IplImage **leftPyramidImages, IplImage **rightPyramidImages);
};