Skip to content

ENH: Resample Image Geometry uses much less memory at the cost of some computation time#1529

Open
imikejackson wants to merge 4 commits intoBlueQuartzSoftware:developfrom
imikejackson:topic/resample_image_geometry
Open

ENH: Resample Image Geometry uses much less memory at the cost of some computation time#1529
imikejackson wants to merge 4 commits intoBlueQuartzSoftware:developfrom
imikejackson:topic/resample_image_geometry

Conversation

@imikejackson
Copy link
Contributor

The code was updated to remove the pre-calculated voxel indices which added an 8 byte integer at every voxel which can quickly blow up memory usage. The code now uses some extra cpu cycles to compute the source and destination indices.

@imikejackson imikejackson linked an issue Feb 13, 2026 that may be closed by this pull request
@imikejackson imikejackson force-pushed the topic/resample_image_geometry branch from 9fae1de to ab3332f Compare February 13, 2026 19:07
imikejackson and others added 4 commits February 17, 2026 16:38
Uses ProgressMessageHelper with shared atomic counter to report
percentage complete for each DataArray during the resampling loop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
We cannot parallelize effectively over each array without allocating 8 byte indices
or other large buffers so go back to at copying each Data Array on its own thread.
@imikejackson imikejackson force-pushed the topic/resample_image_geometry branch from ab3332f to 1b22dfd Compare February 17, 2026 21:39
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.

Resample Data (Image Geometry) Takes massive amounts of memory

1 participant

Comments