Skip to content

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