Open cameronsamuell opened 7 years ago
Thanks for your interest in the project, and apologies for the delay! I've been away from the lab for the summer and don't have access to LightField, meaning that the above pull request is not currently tested on actual spe files. I'm working on getting my hands on some test files, but in the meantime please checkout the new branch and see what you think. Best!
Hi, This is a fantastic utility.
Maybe i've missed an option someplace, but I don't think you're accounting for the possibility of metadata being present. In this case, the times and frame numbers will be present after the data and so become convoluted with the pixel values in your implementation. Easy enough fix, you just need to do a check for the values and dtypes in your MetaBlock and then read them in during _read_data. Alternatively compare the difference between the frame size and stride size to find the number of additional bytes to be read for each frame.
For example, the following would work for 3 pieces of metadata.
Cheers, Cam