-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
problem in SACMODEL_NORMAL_PARALLEL_PLANE #918
Comments
If the two planes are perpendicular; they can't be parralel. The inverse is also true.
This seems pretty normal when you use a Two planes cannot be both parallel and perpendicular. |
SACMODEL_NORMAL_PARALLEL_PLANE should constrain the plane parallel to a specified AXIS. If one plane is parallel to the other plane's normal, it means that these two planes are perpendicular. So that's why I use SACMODEL_NORMAL_PARALLEL_PLANE to detect two perpendicular planes. |
Or in a simpler way; the dot product between the 2 planes normals is null. |
Sorry for the confusion. I am trying to fit two perpendicular planes. In other words, I am trying to estimate the two planes' coefficients. |
This is the point of
In |
I did that exactly as you mentioned above. But the problem that I found in the PCL implemntation has been stated in my first post. (as the a result, the fitted two planes are parallel instead of being perpendicular.) |
I took a look at whats going on here; first I don't get why there is both
I might be wrong but to me being parallel to the normal of a plane is strictly equivalent to being perpendicular to a plane. Second thing that bugs me: in the If Have you had any success with |
Calling Now here is a question: When you are looking for a parallel plane giving the axis, do you want:
I don't know the answer to that question. |
This thread is rather old so maybe no one is interested any more, but for what it is worth: |
I tried to detect two perpendicular planes in which the normal of the first plane is parallel to the second plane. So I set the normal of the first plane as the axis in SACMODEL_NORMAL_PARALLEL_PLANE and use SACSegmentationFromNormals. However, after it, I find the two detected planes are almost parallel to each other, instead of perpendicular. When I dig into the code, in sample_consensus/impl/sac_model_normal_parallel_plane.hpp, in function isModelValid(), you are checking
which, I feel strange.
I thought it should be (consistent with 'sac_model_parallel_plane'):
The text was updated successfully, but these errors were encountered: