Skip to main content

PointParticleFilterOperation

PointParticleFilterOperation

Transform operation for tracking points through masks with particle filter. More…

#include <point_particle_filter.hpp>

Inherits from TransformOperation

Public Functions

Name
virtual std::string getName() const override
Gets the user-friendly name of this operation.
virtual std::type_index getTargetInputTypeIndex() const override
virtual bool canApply(DataTypeVariant const & dataVariant) const override
Checks if this operation can be applied to the given data variant.
virtual std::unique_ptr< TransformParametersBase > getDefaultParameters() const override
Gets the default parameters for the point particle filter operation.
virtual DataTypeVariant execute(DataTypeVariant const & dataVariant, TransformParametersBase const * transformParameters) override
Executes the point particle filter using data from the variant.
virtual DataTypeVariant execute(DataTypeVariant const & dataVariant, TransformParametersBase const * transformParameters, ProgressCallback progressCallback) override

Additional inherited members

Public Functions inherited from TransformOperation

Name
virtual ~TransformOperation() =default

Detailed Description

class PointParticleFilterOperation;

Transform operation for tracking points through masks with particle filter.

This operation applies a discrete particle filter to track sparse point labels through mask data. The filter:

  • Uses existing point labels as ground truth anchors
  • Fills in missing frames between ground truth labels
  • Constrains particle states to mask pixels only
  • Performs forward filtering and backward smoothing for each segment

Points are organized by group ID, and each group is tracked independently.

Public Functions Documentation

function getName

virtual std::string getName() const override

Gets the user-friendly name of this operation.

Return: The name as a string.

Reimplements: TransformOperation::getName

function getTargetInputTypeIndex

virtual std::type_index getTargetInputTypeIndex() const override

Reimplements: TransformOperation::getTargetInputTypeIndex

function canApply

virtual bool canApply(
    DataTypeVariant const & dataVariant
) const override

Checks if this operation can be applied to the given data variant.

Parameters:

  • dataVariant The variant holding a shared_ptr to the data object.

Return: True if the variant holds a non-null PointData shared_ptr, false otherwise.

Reimplements: TransformOperation::canApply

function getDefaultParameters

virtual std::unique_ptr< TransformParametersBase > getDefaultParameters() const override

Gets the default parameters for the point particle filter operation.

Return: A unique_ptr to the default parameters.

Reimplements: TransformOperation::getDefaultParameters

function execute

virtual DataTypeVariant execute(
    DataTypeVariant const & dataVariant,
    TransformParametersBase const * transformParameters
) override

Executes the point particle filter using data from the variant.

Parameters:

  • dataVariant The variant holding a non-null shared_ptr to the PointData object.
  • transformParameters Parameters for the filter, including mask data and filter settings.

Return: DataTypeVariant containing a std::shared_ptr on success, or an empty variant on failure.

Reimplements: TransformOperation::execute

function execute

virtual DataTypeVariant execute(
    DataTypeVariant const & dataVariant,
    TransformParametersBase const * transformParameters,
    ProgressCallback progressCallback
) override

Reimplements: TransformOperation::execute


Updated on 2026-11-13 at 20:25:40 +0000