Sphere#
- class deeptrack.scatterers.Sphere(radius: float | Callable[[...], float] = 1e-06, **kwargs)#
Bases:
Scatterer
Generates a spherical scatterer
Parameters#
- radiusfloat
Radius of the sphere in meters.
- positionarray_like[float, float (, float)]
The position of the particle. Third index is optional, and represents the position in the direction normal to the camera plane.
- zfloat
The position in the direction normal to the camera plane. Used if position is of length 2.
- valuefloat
A default value of the characteristic of the particle. Used by optics unless a more direct property is set: (eg. refractive_index for Brightfield and intensity for Fluorescence).
- upsampleint
Upsamples the calculations of the pixel occupancy fraction.
Methods Summary
get
(image, radius, voxel_size, **kwargs)Transform an image [abstract method].
Methods Documentation
- get(image, radius, voxel_size, **kwargs)#
Transform an image [abstract method].
Abstract method that defines how the feature transforms the input. The current value of all properties will be passed as keyword arguments.
Parameters#
- image‘Image’ or List[‘Image’]
The Image or list of images to transform.
- **kwargsDict[str, Any]
The current value of all properties in properties as well as any global arguments.
Returns#
- ‘Image’ or List[‘Image’]
The transformed image or list of images.
Raises#
- NotImplementedError
Must be overridden by subclasses.