diff --git a/data/04_Tb.obj b/data/04_Tb.obj index dee6951..850a3b7 100644 --- a/data/04_Tb.obj +++ b/data/04_Tb.obj @@ -2,5 +2,6 @@ v -1 1 0 v 0 0 0 v 1 -1 0 v 1 1 0 -l 1 2 3 +l 1 2 +l 2 3 l 4 2 diff --git a/main.cpp b/main.cpp index d34fe8e..0935ac2 100644 --- a/main.cpp +++ b/main.cpp @@ -18,21 +18,24 @@ int main(int argc, char* argv[]) exit(1); } + float resample_rate = 0.1; + float sigma = atof(argv[3]); stim::network GT;stim::network T; // load obj files to 3D network class GT.load_obj(argv[1]); T.load_obj(argv[2]); - //std::cout<<"ground truth------"< resampled_GT;stim::network resampled_T; - resampled_GT = GT.resample(sigma); - resampled_T = T.resample(sigma); + + resampled_GT = GT.resample(sigma * resample_rate); + resampled_T = T.resample(sigma * resample_rate); + // compare ground truth with truth and viceversa float gFPR, gFNR; - gFPR = GT.compare(T, sigma); - gFNR = T.compare(GT, sigma); + gFPR = resampled_GT.compare(resampled_T, sigma); + gFNR = resampled_T.compare(resampled_GT, sigma); // print false alarms and misses std::cout << "False postive rate is " << gFPR << std::endl; std::cout << "False negative rate is " << gFNR << std::endl; -- libgit2 0.21.4