forked from zmoratto/PatchMatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ARAPSmoothTerm.h
35 lines (31 loc) · 1.37 KB
/
ARAPSmoothTerm.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
34
35
#ifndef __VW_STEREO_ARAPSMOOTHTERM_H__
#define __VW_STEREO_ARAPSMOOTHTERM_H__
#include <ARAPDataTerm.h>
#include <Eigen/SparseCore>
namespace vw {
namespace stereo {
// Weight numbers correspond to the 4 types of laplacian
// operators.
void generate_weight1(ImageView<float> const& a,
double gamma,
ImageView<float> & weight);
void generate_weight2(ImageView<float> const& a,
double gamma,
ImageView<float> & weight);
void generate_weight3(ImageView<float> const& a,
double gamma,
ImageView<float> & weight);
void generate_weight4(ImageView<float> const& a,
double gamma,
ImageView<float> & weight);
void generate_laplacian1(ImageView<float> const& weight,
Eigen::SparseMatrix<float> & sparse);
void generate_laplacian2(ImageView<float> const& weight,
Eigen::SparseMatrix<float> & sparse);
void generate_laplacian3(ImageView<float> const& weight,
Eigen::SparseMatrix<float> & sparse);
void generate_laplacian4(ImageView<float> const& weight,
Eigen::SparseMatrix<float> & sparse);
}
}
#endif // __VW_STEREO_ARAPSMOOTHTERM_H__