Sequence#
- class deeptrack.sequences.Sequence(feature: Feature, sequence_length: int | Callable[[...], int] = 1, **kwargs)#
Bases:
FeatureResolves a feature as a sequence.
The input feature is resolved sequence_length times, with the kwarg arguments sequene_length and sequence_step passed to all properties of the feature set.
Parameters#
- featureFeature
The feature to resolve as a sequence.
- sequence_lengthint
The number of times to resolve the feature.
Attributes#
- featureFeature
The feature to resolve as a sequence.
Methods Summary
get(input_list[, sequence_length])Transform an image [abstract method].
Methods Documentation
- get(input_list, sequence_length=None, **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: np.ndarray or list of np.ndarray or Image or list of Images
The image or list of images to transform.
- **kwargs: dict of str to Any
The current value of all properties in properties, as well as any global arguments passed to the feature.
Returns#
- Image or list of Images
The transformed image or list of images.
Raises#
- NotImplementedError
Raised if this method is not overridden by subclasses.