3.1.1.3.1.6. opengate.contrib.phantom_nema_iec_body¶
3.1.1.3.1.6.1. Module Contents¶
3.1.1.3.1.6.1.1. Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This function should be useful to generate conditional data for condGAN. |
|
|
|
This function generate conditional data for condGAN. |
|
Like generate_pos_dir_spheres, but position only |
|
For a given proportion of activities (in ratio) and total number of particle n, |
|
|
Global spheres centers in the phantom, to avoid using the phantom in same cases. |
3.1.1.3.1.6.1.2. Attributes¶
- opengate.contrib.phantom_nema_iec_body.iec_add_sphere(sim, name, vol, diam, sph_thick, cap_thick, position)[source]¶
- opengate.contrib.phantom_nema_iec_body.add_spheres_sources(simulation, iec_name, src_name, spheres, activity_Bq_mL, verbose=False)[source]¶
- opengate.contrib.phantom_nema_iec_body.dump_spheres_activity(simulation, iec_name, src_name)[source]¶
- opengate.contrib.phantom_nema_iec_body.add_one_sphere_source(simulation, iec_name, src_name, diameter, activity_Bq_mL)[source]¶
- opengate.contrib.phantom_nema_iec_body.add_background_source(simulation, iec_name, src_name, activity_Bq_mL, verbose=False)[source]¶
- opengate.contrib.phantom_nema_iec_body.generate_pos_dir_one_sphere(center, radius, n, rs=np.random)[source]¶
This function should be useful to generate conditional data for condGAN. It samples the position in a sphere and isotropic direction. The center/radius is the center and radius of the sphere A numpy array of (n,6) is returned. 3 first = position 3 last = direction
- opengate.contrib.phantom_nema_iec_body.generate_pos_one_sphere(center, radius, n, rs=np.random)[source]¶
- opengate.contrib.phantom_nema_iec_body.generate_pos_dir_spheres(centers, radius, n_samples, shuffle, rs=np.random)[source]¶
This function generate conditional data for condGAN. It samples the position in several spheres, with isotropic direction. The center/radius are the center and radius of the spheres. n_samples is the number of samples per sphere, with a total of n. Samples can be shuffled (by default). A numpy array of (n,6) is returned.
- opengate.contrib.phantom_nema_iec_body.generate_pos_spheres(centers, radius, n_samples, shuffle, rs=np.random)[source]¶
Like generate_pos_dir_spheres, but position only