Ask Your Question

thewoz's profile - activity

2020-05-18 06:14:07 -0500 commented question Vector of a class that inherits from a standard OpenCV class

Ok so there is a way to fix the Datatype templates to respect my extra class members? I understand that inherit a primit

2020-05-18 02:49:55 -0500 received badge  Enthusiast
2020-05-17 08:47:08 -0500 edited question Vector of a class that inherits from a standard OpenCV class

Vector of a class that heredity a standard OpenCV class Hi all, I try to run this code but I have some troubles. The co

2020-05-17 08:44:55 -0500 edited question Vector of a class that inherits from a standard OpenCV class

Vector of a class that heredity a standard OpenCV class Hi all, I try to run this code but I have some troubles. The co

2020-05-17 08:41:25 -0500 commented question Vector of a class that inherits from a standard OpenCV class

@berak what you think?

2020-05-16 08:57:04 -0500 commented question Vector of a class that inherits from a standard OpenCV class

Ok sorry, In my code I have a lot of function that works on my class point3D_t and point2D_t. I store into that informat

2020-05-16 04:48:16 -0500 commented question Vector of a class that inherits from a standard OpenCV class

this is a simplification of my design. In reality my 2D and 3D class have a lot of stuff inside. However I would like th

2020-05-15 07:39:59 -0500 asked a question Vector of a class that inherits from a standard OpenCV class

Vector of a class that heredity a standard OpenCV class Hi all, I try to run this code but I have some troubles. The co

2019-10-25 09:04:48 -0500 asked a question Calibrate Camera without moving R and T

Calibrate Camera without moving R and T Hi, I need to calibrate camera but I do not want that the solver move the R and

2019-07-11 03:59:56 -0500 asked a question find4QuadCornerSubpix vs cornerSubPix

find4QuadCornerSubpix vs cornerSubPix Hi all, I'm not able to find any kind of information about the find4QuadCornerSub

2016-04-18 10:35:51 -0500 received badge  Editor (source)
2016-04-18 07:20:32 -0500 asked a question multidimensional kmeans

Hello to everyone,

I'm trying to run the kmeans algorithm on a n-dimensional data.

I Have N points and each point have { x, y, z, ... , n } features.

my code is the following:

cv::Mat points(N, n, CV_32F);

// fill the data points

cv::Mat labels; cv::Mat centers;

cv::kmeans(points, k, labels, cv::TermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS, 1000, 0.001), 10, cv::KMEANS_PP_CENTERS, centers);

the problem is that the kmeans algorithm run into a segmentation fault.

any help is appreciated

Update:

had made a mistake in the "fill the data points" so that I corrupts the memory