Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does the K value mean? #13

Open
argan719 opened this issue Oct 30, 2023 · 0 comments
Open

What does the K value mean? #13

argan719 opened this issue Oct 30, 2023 · 0 comments

Comments

@argan719
Copy link

`void main()
{
string fileData = "D://Facade//data.txt";
string fileOut = "D://Facade//data";

// read in data
PointCloud<double> pointData; 
readDataFromFile( fileData, pointData );

int k = 20;
LineDetection3D detector;
std::vector<PLANE> planes;
std::vector<std::vector<cv::Point3d> > lines;
std::vector<double> ts;
detector.run( pointData, k, planes, lines, ts );
cout<<"lines number: "<<lines.size()<<endl;
cout<<"planes number: "<<planes.size()<<endl;

writeOutPlanes( fileOut, planes, detector.scale );
writeOutLines( fileOut, lines, detector.scale );

}`

What does the K value mean?
I have seen that the k value is used in other functions as well.
I'm curious about what k does and why it's set to 20.
And can better results be obtained by changing the value of k depending on the data used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant