Skip to content

Commit 9bacae1

Browse files
committed
clang-format fixups
1 parent be12f32 commit 9bacae1

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

modules/alphamat/src/cm.cpp

+7-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
namespace cv { namespace alphamat {
1010

11-
static void generateFVectorCM(my_vector_of_vectors_t& samples, Mat& img)
11+
static
12+
void generateFVectorCM(my_vector_of_vectors_t& samples, Mat& img)
1213
{
1314
int nRows = img.rows;
1415
int nCols = img.cols;
@@ -31,7 +32,8 @@ static void generateFVectorCM(my_vector_of_vectors_t& samples, Mat& img)
3132
}
3233
}
3334

34-
static void kdtree_CM(Mat& img, my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples, std::unordered_set<int>& unk)
35+
static
36+
void kdtree_CM(Mat& img, my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples, std::unordered_set<int>& unk)
3537
{
3638
// Generate feature vectors for intra U:
3739
generateFVectorCM(samples, img);
@@ -70,7 +72,9 @@ static void kdtree_CM(Mat& img, my_vector_of_vectors_t& indm, my_vector_of_vecto
7072
}
7173
}
7274

73-
static void lle(my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples, float eps, std::unordered_set<int>& unk, SparseMatrix<double>& Wcm, SparseMatrix<double>& Dcm, Mat& img)
75+
static
76+
void lle(my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples, float eps, std::unordered_set<int>& unk,
77+
SparseMatrix<double>& Wcm, SparseMatrix<double>& Dcm, Mat& img)
7478
{
7579
CV_LOG_INFO(NULL, "ALPHAMAT: In cm's lle function");
7680
int k = indm[0].size(); //number of neighbours that we are considering

modules/alphamat/src/infoflow.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ using namespace Eigen;
1010

1111
namespace cv { namespace alphamat {
1212

13-
static void solve(SparseMatrix<double> Wcm, SparseMatrix<double> Wuu, SparseMatrix<double> Wl, SparseMatrix<double> Dcm,
13+
static
14+
void solve(SparseMatrix<double> Wcm, SparseMatrix<double> Wuu, SparseMatrix<double> Wl, SparseMatrix<double> Dcm,
1415
SparseMatrix<double> Duu, SparseMatrix<double> Dl, SparseMatrix<double> T,
1516
Mat& wf, Mat& alpha)
1617
{

modules/alphamat/src/intraU.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ int findColMajorInd(int rowMajorInd, int nRows, int nCols)
1414
return (jInd * nRows + iInd);
1515
}
1616

17-
static void generateFVectorIntraU(my_vector_of_vectors_t& samples, Mat& img, Mat& tmap, std::vector<int>& orig_ind)
17+
static
18+
void generateFVectorIntraU(my_vector_of_vectors_t& samples, Mat& img, Mat& tmap, std::vector<int>& orig_ind)
1819
{
1920
int nRows = img.rows;
2021
int nCols = img.cols;
@@ -55,7 +56,8 @@ static void generateFVectorIntraU(my_vector_of_vectors_t& samples, Mat& img, Mat
5556
CV_LOG_INFO(NULL, "ALPHAMAT: Total number of unknown pixels : " << c1);
5657
}
5758

58-
static void kdtree_intraU(Mat& img, Mat& tmap, my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples, std::vector<int>& orig_ind)
59+
static
60+
void kdtree_intraU(Mat& img, Mat& tmap, my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples, std::vector<int>& orig_ind)
5961
{
6062
// Generate feature vectors for intra U:
6163
generateFVectorIntraU(samples, img, tmap, orig_ind);
@@ -95,7 +97,8 @@ double l1norm(std::vector<double>& x, std::vector<double>& y)
9597
return sum / ALPHAMAT_DIM;
9698
}
9799

98-
static void intraU(Mat& img, my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples,
100+
static
101+
void intraU(Mat& img, my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples,
99102
std::vector<int>& orig_ind, SparseMatrix<double>& Wuu, SparseMatrix<double>& Duu)
100103
{
101104
// input: indm, samples

0 commit comments

Comments
 (0)