-
Notifications
You must be signed in to change notification settings - Fork 40
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
add option to filter vectors field in 3dSDPViewer #297
Conversation
visualisation/3dSDPViewer.cpp
Outdated
@@ -124,6 +124,11 @@ typedef Viewer3D<Z3i::Space, Z3i::KSpace> Viewer; | |||
determined by two consecutive point | |||
given, each point represented by its | |||
coordinates on a single line. | |||
--filterVectors arg (=100) filters vector input file in order to | |||
display only the [arg] pourcent of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
percentage
visualisation/3dSDPViewer.cpp
Outdated
--filterVectors arg (=100) filters vector input file in order to | ||
display only the [arg] pourcent of the | ||
input vectors (uniformly selected, to | ||
be used with option --drawVectors else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else->otherwise
visualisation/3dSDPViewer.cpp
Outdated
@@ -212,7 +217,9 @@ int main( int argc, char** argv ) | |||
("lineSize", po::value<double>()->default_value(0.2), "defines the line size (used when the --drawLines or --drawVectors option is selected). (default value 0.2))") | |||
("primitive,p", po::value<std::string>()->default_value("voxel"), "set the primitive to display the set of points (can be sphere, voxel (default), or glPoints (opengl points).") | |||
("drawVectors,v", po::value<std::string>(), "SDP vector file: draw a set of vectors from the given file (each vector are determined by two consecutive point given, each point represented by its coordinates on a single line.") | |||
("interactiveDisplayVoxCoords", "by using this option the pixel coordinates can be displayed after selection (shift+left click on voxel)." ); | |||
("filterVectors",po::value<double>()->default_value(100.0), "filters vector input file in order to display only the [arg] pourcent of the input vectors (uniformly selected, to be used with option --drawVectors else no effect). " ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
visualisation/3dSDPViewer.cpp
Outdated
int step=1; | ||
if(vm.count("filterVectors")) | ||
{ | ||
double percent = vm["filterVectors"].as<double>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
percentage
thanks @dcoeurjo corrected ;) |
thanks. merging |
PR Description
Add an option to filter vectors field in 3dSDPViewer to obtain better visualization when too numerous vectors are present
Checklist
cmake
mode (otherwise, Travis C.I. will fail).