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

SAC Models Refactoring: isModelValid(), ver. 2 #1367

Merged
merged 2 commits into from Oct 9, 2015

Conversation

taketwo
Copy link
Member

@taketwo taketwo commented Oct 8, 2015

This is a new edition of #1075. As discussed, rather than having a global map, the model sizes are stored in a protected member field. The rest is the same as before.

The function returns the value of protected member field model_size_. It
is the responsibility of deriving classes to set it appropriately. All
the classes in PCL are updated to do so.
The default implementation verifies that the number of coefficients in
the supplied model is as expected. Specific SAC models extend this
function by checking the user constraints (when applicable).
@stefanbuettner
Copy link
Contributor

Looks nice 👍
Changing the implementation of getSampleSize() to be similar to getModelSize() will be in another PR then?

Cheers,
Stefan

@taketwo
Copy link
Member Author

taketwo commented Oct 9, 2015

Yes, that's the plan.

jspricke added a commit that referenced this pull request Oct 9, 2015
SAC Models Refactoring: isModelValid(), ver. 2
@jspricke jspricke merged commit 4f420be into PointCloudLibrary:master Oct 9, 2015
@taketwo taketwo deleted the sac-refactoring-2-2 branch October 11, 2015 10:53
@jspricke
Copy link
Member

@taketwo
Copy link
Member Author

taketwo commented Oct 19, 2015

I'm on it

@taketwo
Copy link
Member Author

taketwo commented Oct 19, 2015

See #1388

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.

None yet

4 participants