Simulation with user-defined emitter positions? #151
-
Greetings, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey, PS: If you have another question add @ASpeiser to the message so I get sent a notification. |
Beta Was this translation helpful? Give feedback.
-
Thanks so much. Works as charm!
Dmitri
…On Mon, Dec 13, 2021 at 8:02 AM ASpeiser ***@***.***> wrote:
Hey,
the simulator you set up in this way contains the forward model.
So for example you can do:
frame = sim_test.psf.forward(torch.tensor([[20,20,10]]), torch.tensor([1]))
To simulate a single PSF at position 20,20,10 with and an intensity of 1.
At the bottom of this function, you can see how afterwards the background
is added and noise simulated:
https://github.com/TuragaLab/DECODE/blob/master/decode/simulation/simulator.py
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#151 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW3SSLBAKCNLYYHFGHN6SHDUQYKJBANCNFSM5JX756RA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
Hey,
the simulator you set up in this way contains the forward model.
So for example you can do:
frame = sim_test.psf.forward(torch.tensor([[20,20,10]]), torch.tensor([1]))
To simulate a single PSF at position 20,20,10 with and an intensity of 1.
At the bottom of this function, you can see how afterwards the background is added and noise simulated: https://github.com/TuragaLab/DECODE/blob/master/decode/simulation/simulator.py
PS: If you have another question add @ASpeiser to the message so I get sent a notification.