diff --git a/examples/Demo.cpp b/examples/Demo.cpp index 89b7d933d54c33f941c1d3c9dd65096911a053a2..73cee3e3758217969578b92025e1614a2359767b 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 e3737eb6a57a8a7479a86e15dd7ee95b0103beca..0000000000000000000000000000000000000000 --- 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 a93ce4da30e1e99d3098a97ea4260e2f28fe40b2..cb548bcad92dc45d48f2d42355b044a063c55f0f 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