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

fix multiply image and positions #294

Merged
merged 5 commits into from
May 3, 2024
Merged

Conversation

StRigaud
Copy link
Member

@StRigaud StRigaud commented May 3, 2024

No description provided.

thawn and others added 5 commits April 28, 2024 16:13
for images of type int8, multiply_image_and_position was limited to positions < 256 (and for int16 to positions < 2^16), because the return type was the same as the image type. However int8 images can have positions larger than that because position indices are of type int32. This commit ensures that the return type is at least int32 so that multiply_image_and_position can handle positions larger than the maximum integer for int8 and int16 images.

closes issue tier1::multiply_image_and_position_func() implicitly assumes that the position has the same type as the input. #287
that way, the output type is well defined and we do not risk rounding errors in functions that have floating point input, such as center_of_mass()
we now rely on multiply_image_and_position() to return FLOAT values
…ion_return_type

fix the return type of multiply_image_and_position()
@StRigaud StRigaud merged commit cb6e1af into test-bounding-box-large-position May 3, 2024
6 checks passed
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