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

Run SRRF in "Realtime" #96

Open
beniroquai opened this issue Jan 22, 2024 · 1 comment
Open

Run SRRF in "Realtime" #96

beniroquai opened this issue Jan 22, 2024 · 1 comment

Comments

@beniroquai
Copy link

First of all: Great project! Thanks a lot for making all that open-source! I really appreciate that! :-)
While screening the code, I had a question: Would it be possible to reconstruct frames using eSRRF while they are flying in? As far as I understood, the code requires a chunk of images, but would it also be possible to provide a "sliding" window and update the result continuously? Did you ever think about that? As of now, I'm not 100% sure how much memory/computational overload the creation of the SRRF object takes - maybe I can ignore it.

Thanks a lot!

@brunomsaraiva
Copy link
Collaborator

Hi @beniroquai, currently we don't have that kind of feature.
However, as the code currently is implemented the Radial Gradient Convergence (RGC) calculations are done independently of the temporal correlation. In practice this means that you can calculate smaller chunks of RGC and generate temporary results of the temporal correlation. Once you would have RGC calculated for your desired frames, you could perform a rolling average to see the update effect of more frames.

If you're using the python package this would entail calling the run method of the eSRRF class on the smaller chunks, store them and when all of them have been calculated, just concatenate all of the chunks in one single array and perform the temporal correlation of your choice for a static output or a rolling average for the sliding window effect.

In terms of computational overload, as the code stands, if using the GPU, you could lose performance by having multiple writing/reading call into the GPU memory.

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

No branches or pull requests

2 participants