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

cuFilter apply constraints on all 3 axes at one time. #47

Open
anandkoirala1 opened this issue Aug 3, 2023 · 1 comment
Open

cuFilter apply constraints on all 3 axes at one time. #47

anandkoirala1 opened this issue Aug 3, 2023 · 1 comment

Comments

@anandkoirala1
Copy link

anandkoirala1 commented Aug 3, 2023

how to apply filter constraints on all x,y,z at same time? the following code only applies filter to the most recent axis..

FilterParam_t setPx, setPy, setPz; // filter parameters for each axis

FilterType_t type = PASSTHROUGH; // only passthrough filter implemented in cuCL library for now

// this filter contraints is being applied for only one axis....
setPx.type = type;
setPx.dim = 0; // 0   // it will be 0,1,2 for x,y,z axes  
setPx.upFilterLimits = 1.5; 
setPx.downFilterLimits = -1.5; 
setPx.limitsNegative = false;   
filterTest.set(setPx);


setPy.type = type;
setPy.dim = 1; // 0   // it will be 0,1,2 for x,y,z axes  
setPy.upFilterLimits = 1.5; 
setPy.downFilterLimits = -1.5; 
setPy.limitsNegative = false;
filterTest.set(setPy);


setPz.type = type;
setPz.dim = 2; // 0   // it will be 0,1,2 for x,y,z axes  
setPz.upFilterLimits = 2.0; 
setPz.downFilterLimits = 0.0; 
setPz.limitsNegative = false;
filterTest.set(setPz);

filterTest.filter(output, &countLeft, input, nCount);

@MagicalBrain
Copy link

emm...
The passthrough filter only apply constranints on the one axis.
Maybe you can try the pcl::ConditionRemoval, but the cuPCL doesn't support it now.

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

2 participants