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

ProjDataInMemory fails with more than 2^31 bins #1505

Open
KrisThielemans opened this issue Sep 6, 2024 · 1 comment
Open

ProjDataInMemory fails with more than 2^31 bins #1505

KrisThielemans opened this issue Sep 6, 2024 · 1 comment
Assignees
Labels

Comments

@KrisThielemans
Copy link
Collaborator

KrisThielemans commented Sep 6, 2024

As the underlying buffer is an Array<1,float>, we are limited by its maximum size, which is determined by int (unfortunately). GE TOF scanners go over that limit.

PS: This was done a long time ago in #561, replacing boost boost::shared_array and stream things (which had a more restrictive limit of 2GB bytes due to a bug in boost, since then resolved)

@KrisThielemans KrisThielemans self-assigned this Sep 6, 2024
@KrisThielemans
Copy link
Collaborator Author

Array<1, float> buffer;

this->buffer = Array<1, float>(static_cast<int>(this->size_all()));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant