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

VoxelGrid.create_from_point_cloud should allow for choosing color reduction method other than avg #6934

Open
3 tasks done
IDoCodingStuffs opened this issue Aug 26, 2024 · 1 comment · May be fixed by #6937
Open
3 tasks done

Comments

@IDoCodingStuffs
Copy link

Checklist

Proposed new feature or change

Currently, voxel grid from point cloud defaults to averaging colors per the docs: https://www.open3d.org/docs/release/python_api/open3d.geometry.VoxelGrid.html#open3d.geometry.VoxelGrid.create_from_point_cloud

The problem is, that is not always desirable behavior. I am trying to reconstruct a voxel grid from MRI slices with different orientations where I am feeding different modalities as their own channels:

image

When I convert this to a voxel grid, this leads to artifacts where these slices intersect due to averaging:
image
image

Ideally, I should be able to reduce by sum or max per channel instead of average.

References

No response

Additional information

No response

@rxba
Copy link
Contributor

rxba commented Aug 28, 2024

Hey @IDoCodingStuffs , I've added the feature to select between average, min, max and sum color mode for VoxelGrid creation from PointCloud and opened a PR for this.

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

Successfully merging a pull request may close this issue.

6 participants
@IDoCodingStuffs @rxba and others