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

updated estimateProjectionMatrix() to make the down-sampled image have t... #1176

Merged
merged 1 commit into from
Apr 14, 2015

Conversation

liuhuanjim013
Copy link
Contributor

...he same number of points for each row (e.g. given a 5x5 input with x/yskip=2, the downsampled image now has 3 points for each row instead of 3,2,3 points for each row), which could cause segfault if the user assumes all rows having the same number of points

{
for (unsigned xIdx = 0; xIdx < input_->width; xIdx += xSkip, idx += xSkip)
for (unsigned xIdx = 0, idx2 =idx; xIdx < input_->width; xIdx += xSkip, idx2 += xSkip)
Copy link
Member

Choose a reason for hiding this comment

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

Please remove extra two spaces before for and add a space after equal sign in =idx.

@taketwo
Copy link
Member

taketwo commented Apr 13, 2015

Hi, sorry for the delay. Could you please update the pull request?

…e the same number of points for each row (e.g. given a 5x5 input with x/yskip=2, the downsampled image now has 3 points for each row instead of 3,2,3 points for each row)
@liuhuanjim013
Copy link
Contributor Author

No problem. Sorry about that. Should be good now

taketwo added a commit that referenced this pull request Apr 14, 2015
updated estimateProjectionMatrix() to make the down-sampled image have t...
@taketwo taketwo merged commit e34acbf into PointCloudLibrary:master Apr 14, 2015
@taketwo
Copy link
Member

taketwo commented Apr 14, 2015

Thank you!

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