Skip to content
Snippets Groups Projects
Commit dd9ce69c authored by am0ebe's avatar am0ebe
Browse files

.

parent 5228cf50
No related branches found
No related tags found
No related merge requests found
...@@ -413,7 +413,7 @@ int main(int argc, char * argv[]) ...@@ -413,7 +413,7 @@ int main(int argc, char * argv[])
//TODO produce center of convex hull of all polygones //TODO produce center of convex hull of all polygones
//TODO double check if ne contour sharing a center point ? nearby ?? //TODO double check if ne contour sharing a center point ? nearby ??
//we merge all points //merge all points
vector<Point> allContourPoints; vector<Point> allContourPoints;
for (size_t cC = 0; cC < contourSelection.size(); ++cC) for (size_t cC = 0; cC < contourSelection.size(); ++cC)
for(size_t cP =0; cP < contourSelection[cC].size(); cP++) for(size_t cP =0; cP < contourSelection[cC].size(); cP++)
...@@ -431,7 +431,8 @@ int main(int argc, char * argv[]) ...@@ -431,7 +431,8 @@ int main(int argc, char * argv[])
// float roiRadius; // float roiRadius;
//minEnclosingCircle(conHull,roiCenter,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; Moments muConvexHull;
if(!conHull.empty()) if(!conHull.empty())
{ {
......
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
w
point2f(y,x) # inverted! point2f(y,x) # inverted!
BGR #not rgb ... BGR #not rgb ...
Scalar = 4 element vector Scalar = 4 element vector
...@@ -65,19 +65,30 @@ Types: ...@@ -65,19 +65,30 @@ Types:
locateROI, adjustROI, locateROI, adjustROI,
# CommandLineParser
@ -> positional arg
no default value -> has_XX
else: get<T>("XX")
<none> dflt value to ensure strings arent ""
# MISC # MISC
######################## ########################
glob( dir, file ) glob( dir, file )
CommandLineParser
randu() # https://docs.opencv.org/4.x/d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0 randu() # https://docs.opencv.org/4.x/d2/de8/group__core__array.html#ga1ba1026dca0807b27057ba6a49d258c0
cvtColor(img, img, COLOR_BGR2Luv); #convert color cvtColor(img, img, COLOR_BGR2Luv); #convert color
sounds interesting: sounds interesting:
selectROI, selectROIs, reduce, qt, dilate, erode, selectROI, selectROIs, reduce, qt, dilate, erode,
convexhull, findcontours, checkChessboard, calibrateCamera convexhull, findcontours, checkChessboard, calibrateCamera
hough ?
hu-invariants, centroid
moments (weigthed avg of pixel intensities)
spatial <> central <> central normalized
randPattern randPattern
BS: BS:
https://docs.opencv.org/4.x/da/d5c/tutorial_canny_detector.html https://docs.opencv.org/4.x/da/d5c/tutorial_canny_detector.html
https://docs.opencv.org/4.x/d1/dc5/tutorial_background_subtraction.html https://docs.opencv.org/4.x/d1/dc5/tutorial_background_subtraction.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment