Description Usage Arguments Value See Also Examples
Given an output of bbm_simulate()
, create an image in the style of an
ijtiff_img where each frame represents a time-point in
the simulation. You must set the pixel size and there is the option for the
pixel values to be counts of the number of molecules in that pixel, or
Poisson photon counts where each particle has a user-defined brightness.
1 2 | bbm_simulation_to_img(bbms, pixel_size, method = c("count", "poisson"),
brightness = NULL, check_duplicates = TRUE)
|
bbms |
An object of class bbm_sim; the result of a
simulation with |
pixel_size |
The pixel size for the image. A grid of pixels is filled out over the simulation space, starting at the bottom-left (the origin). Any pixels crossing the boundary of the simulation are discarded. |
method |
How shall the pixel values be calculated? |
brightness |
Required only if |
check_duplicates |
Check for duplicate coordinates at each time point of the
simulation, throwing an error if any are present. One reason to turn this
off is for speed; the check slows things down slightly. If it's off and
|
An ijtiff_img.
bbm_simulate_img
1 2 3 | sim <- bbm_simulate(n_particles = 2, D = 1.5, dim = c(3, 5), end_time = 2)
bbm_simulation_to_img(sim, pixel_size = 1, method = "c")
bbm_simulation_to_img(sim, pixel_size = 1, method = "p", brightness = 9)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.