From dd9ce69cb33807b96c9b10785d928175c1747b93 Mon Sep 17 00:00:00 2001
From: am0ebe <am0ebe@gmx.de>
Date: Wed, 9 Feb 2022 17:33:30 +0100
Subject: [PATCH] .

---
 examples/Demo.cpp |  5 +++--
 install           | 12 ------------
 opencv            | 15 +++++++++++++--
 3 files changed, 16 insertions(+), 16 deletions(-)
 delete mode 100644 install

diff --git a/examples/Demo.cpp b/examples/Demo.cpp
index 89b7d93..73cee3e 100644
--- a/examples/Demo.cpp
+++ b/examples/Demo.cpp
@@ -413,7 +413,7 @@ int main(int argc, char * argv[])
 					//TODO produce center of convex hull of all polygones
 					//TODO double check if ne contour sharing a center point ? nearby ??
 
-					//we merge all points
+					//merge all points
 					vector<Point> allContourPoints;
 					for (size_t cC = 0; cC < contourSelection.size(); ++cC)
 						for(size_t cP =0; cP < contourSelection[cC].size(); cP++)
@@ -431,7 +431,8 @@ int main(int argc, char * argv[])
 					//    float roiRadius;
 					//minEnclosingCircle(conHull,roiCenter,roiRadius);
 
-					// calc the mass center of the convex hull
+					// calc the mass center of the convex hull. see:
+					// https://docs.opencv.org/4.x/d8/d23/classcv_1_1Moments.html#details
 						Moments muConvexHull;
 						if(!conHull.empty())
 						{
diff --git a/install b/install
deleted file mode 100644
index e3737eb..0000000
--- a/install
+++ /dev/null
@@ -1,12 +0,0 @@
-g++ -ggdb  -o  `pkg-config --cflags --libs opencv4`
-
-
-camera_matrix 5678
-distortion_coefficients 76745
-
-where is the data?
-PATHIN="/data/ibtrack/move/input/rec$IDSTRING/"
-
-files:
-randlist.yml
-fileErrorList.yml
diff --git a/opencv b/opencv
index a93ce4d..cb548bc 100644
--- a/opencv
+++ b/opencv
@@ -1,4 +1,4 @@
-w
+
 point2f(y,x) # inverted!
 BGR 	#not rgb ...
 Scalar = 4 element vector
@@ -65,19 +65,30 @@ Types:
 	locateROI, adjustROI,
 
 
+# CommandLineParser
+	@ -> positional arg
+	no default value -> has_XX
+	else: get<T>("XX")
+	<none> dflt value to ensure strings arent ""
 
 # MISC
 ########################
 	glob( dir, file )
-	CommandLineParser
+
 	randu() # https://docs.opencv.org/4.x/d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0
 	cvtColor(img, img, COLOR_BGR2Luv); #convert color
 
 	sounds interesting:
 	selectROI, selectROIs, reduce, qt, dilate, erode,
 	convexhull, findcontours, checkChessboard, calibrateCamera
+	hough ?
+	hu-invariants, centroid
+	moments (weigthed avg of pixel intensities)
+		spatial <> central <> central normalized
+
 	randPattern
 
+
 BS:
 https://docs.opencv.org/4.x/da/d5c/tutorial_canny_detector.html
 https://docs.opencv.org/4.x/d1/dc5/tutorial_background_subtraction.html
-- 
GitLab