3.10.1.5.1.5.1.2. opengate.contrib.phantoms.nemaiec¶
3.10.1.5.1.5.1.2.1. Attributes¶
3.10.1.5.1.5.1.2.2. Functions¶
|
|
|
|
|
|
|
|
|
Starting angle : in deg. Indicate the (angle) position of the first smallest sphere. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
Global spheres centers in the phantom, to avoid using the phantom in same cases. |
3.10.1.5.1.5.1.2.3. Module Contents¶
- opengate.contrib.phantoms.nemaiec.add_iec_phantom(simulation, name='iec', check_overlap=False, sphere_starting_angle=False, toggle_sphere_order=False)[source]¶
- opengate.contrib.phantoms.nemaiec.add_iec_body(simulation, name, thickness=0.0, thickness_z=0.0)[source]¶
- opengate.contrib.phantoms.nemaiec.add_iec_all_spheres(simulation, name, thickness_z, starting_angle=False, reverse_order=False)[source]¶
Starting angle : in deg. Indicate the (angle) position of the first smallest sphere. It is 180 deg by default.
- opengate.contrib.phantoms.nemaiec.add_iec_one_sphere(sim, name, vol, diam, sph_thick, cap_thick, position, thickness_z)[source]¶
- opengate.contrib.phantoms.nemaiec.add_spheres_sources(simulation, iec_name, src_name, spheres, activity_Bq_mL, verbose=False, source_type='GenericSource')[source]¶
- opengate.contrib.phantoms.nemaiec.compute_sphere_activity(simulation, iec_name, src_name, diam)[source]¶
- opengate.contrib.phantoms.nemaiec.compute_total_spheres_activity(simulation, iec_name, src_name)[source]¶
- opengate.contrib.phantoms.nemaiec.add_one_sphere_source(simulation, iec_name, src_name, diameter, activity_Bq_mL, source_type)[source]¶
- opengate.contrib.phantoms.nemaiec.add_central_cylinder_source(simulation, iec_name, src_name, activity_Bq_mL, verbose=False)[source]¶
- opengate.contrib.phantoms.nemaiec.add_background_source(simulation, iec_name, src_name, activity_Bq_mL, verbose=False)[source]¶
- opengate.contrib.phantoms.nemaiec.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.phantoms.nemaiec.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.phantoms.nemaiec.generate_pos_spheres(centers, radius, n_samples, shuffle, rs=np.random)[source]¶
Like generate_pos_dir_spheres, but position only
- opengate.contrib.phantoms.nemaiec.get_n_samples_from_ratio(n, ratio)[source]¶
For a given proportion of activities (in ratio) and total number of particle n, compute the list of particle for each index.