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

Optimize FlatStruct and applyFlat for memory efficiency #393

Draft
wants to merge 2 commits into
base: prerelease
Choose a base branch
from

Conversation

Cybis320
Copy link
Contributor

Optimize FlatStruct and applyFlat for memory efficiency and bit depth flexibility

Changes

  • Refactored FlatStruct to dynamically handle both 8-bit and 16-bit flat field images
  • Updated applyFlat function to work with the new FlatStruct
  • Implemented memory-efficient storage using appropriate integer types (uint8 or uint16)
  • Eliminated redundant float64 arrays
  • Implemented in-place calculations to minimize memory allocation

Motivation

Addresses #392

@Cybis320
Copy link
Contributor Author

FlstStruct went from 33MB to 4MB for a 1080p flat.

@Cybis320 Cybis320 marked this pull request as draft August 31, 2024 18:50
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.

1 participant