4 #include "GLM/gtx/type_ptr.hpp"
10 #include <QtConcurrentRun>
12 #include <QFutureWatcher>
36 static void Eigen(glm::mat2& rvec, glm::vec2& rval, glm::mat2 covariance);
44 static void SVD(glm::vec2& rw, glm::mat2& ru, glm::mat2& rvt, glm::mat2 covariance);
51 static float getDensity(glm::vec2 pos, glm::vec2 mean, glm::mat2 covariance);
70 static void kMeans(glm::vec2** x, glm::vec2* m,
float* numComponents,
float** g,
int N,
int K,
int Iterations);
78 static void DoClustering(glm::vec2* m, glm::mat2* c, glm::vec2* x,
int N,
int K);
86 static glm::vec4*
CalculateTFTexture(glm::vec2* m, glm::mat2* covariance, glm::vec4* color);