rii-mango/Daikon

Cannot extract single frames without allocating memory for all

DLiblik opened this issue · 1 comments

Many files have multiple image frames, but getInterpolatedData() does not have an option to extract only a single frame in this situation. It can be done by the calling code, but a large amount of memory must be allocated to interpret all of the data.

As a first step to resolve, getInterpolatedData() can be updated to only process the frame of interest. I did this in PR #12

Next step would be to extend this to only decompress the frame of interest as well, but this is a start.

Merged. Agree about not needing to decompress everything. I recently added getJPEGs() and decompressJPEG(jpeg) to improve that.