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

add option to filter vectors field in 3dSDPViewer #297

Merged
merged 2 commits into from
Mar 30, 2017

Conversation

kerautret
Copy link
Member

@kerautret kerautret commented Mar 7, 2017

PR Description

Add an option to filter vectors field in 3dSDPViewer to obtain better visualization when too numerous vectors are present

Checklist

  • Doxygen documentation of the code completed (classes, methods, types, members...).
  • Main tool doxygen documentation (following existing documentation of DGtalTools documentation.
  • Check if it follows the tools structure described in CONTRIBUTING.md
  • New entry in the ChangeLog.md added.
  • Update the readme with potentially a screenshot of the tools if it applies.
  • No warning raised in Debug cmake mode (otherwise, Travis C.I. will fail).

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

percentage

--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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else->otherwise

@@ -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). " )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

int step=1;
if(vm.count("filterVectors"))
{
double percent = vm["filterVectors"].as<double>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

percentage

@kerautret
Copy link
Member Author

thanks @dcoeurjo corrected ;)

@dcoeurjo
Copy link
Member

thanks. merging

@dcoeurjo dcoeurjo merged commit bde0c4a into DGtal-team:master Mar 30, 2017
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

Successfully merging this pull request may close these issues.

2 participants