Composite geometries #193
-
Hello,
Is there another way of doing what I want? |
Beta Was this translation helpful? Give feedback.
Answered by
BenjaminMidtvedt
Oct 6, 2023
Replies: 1 comment
-
@lauriejy Sure! Intensities in deeptrack are additive. So your inner would need to have the negative of the outer particle's intensity. You can add this as a relation between the two if you want: outer = Sphere(
refractive_index=1.33,
intensity=1, # Squared magnitude of the field
position_unit="meter", # Units of position (default meter)
position=(64, 64), # Position of the particle
radius=30e-6, # Radius of the sphere
upsample=2, # Amount the resolution is upsampled for accuracy
)
inner = Sphere(
refractive_index=1.33,
intensity=outer.intensity * -1, # Squared magnitude of the field
position_unit="meter", # Units of position (default meter)
position=(64, 64), # Position of the particle
radius=29e-6, # Radius of the sphere
upsample=2, # Amount the resolution is upsampled for accuracy
)
hollow_shell = outer & inner
imaged_scatterer = fluorescence_optics(hollow_shell) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lauriejy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lauriejy Sure! Intensities in deeptrack are additive. So your inner would need to have the negative of the outer particle's intensity. You can add this as a relation between the two if you want: