BindUpdate#

class deeptrack.features.BindUpdate(feature: Feature, **kwargs: Dict[str, Any])#

Bases: StructuralFeature

Bind a feature with certain arguments.

This feature binds a child feature with specific properties (kwargs) that are passed to it when it is updated. It is similar to the Bind feature but is marked as deprecated in favor of Bind.

Parameters#

featureFeature

The child feature to bind with specific arguments.

**kwargsDict[str, Any]

Properties to send to the child feature during updates.

Warnings#

This feature is deprecated and may be removed in a future release. It is recommended to use Bind instead for equivalent functionality.

Notes#

The current implementation is not guaranteed to be exactly equivalent to prior implementations.

Example#

>>> import deeptrack as dt
>>> gaussian_noise = dt.GaussianNoise()
>>> bound_update_feature = dt.BindUpdate(gaussian_noise, sigma=5)
>>> output_image = bound_update_feature.resolve(input_image)

In this example, the sigma parameter is dynamically set to 5 when resolving the gaussian_noise feature.

Methods Summary

get(image, **kwargs)

Resolve the child feature with the provided arguments.

Methods Documentation

get(image: Any, **kwargs: Dict[str, Any]) Any#

Resolve the child feature with the provided arguments.

Parameters#

imageAny

The input data or image to process.

**kwargsDict[str, Any]

Properties or arguments to pass to the child feature during resolution.

Returns#

Any

The result of resolving the child feature with the provided arguments.