ImFusion C++ SDK 4.5.0
ImFusion::US::UltrasoundConeCalibrationAlgorithm::TrackedCone Class Reference

#include <ImFusion/US/UltrasoundConeCalibrationAlgorithm.h>

Represents a cone detected in an ultrasound sweep across multiple frames. More...

Detailed Description

Represents a cone detected in an ultrasound sweep across multiple frames.

Public Member Functions

 TrackedCone (int sweep, int frame, double height, const Geometry::AlignedRectangle2D &box, const vec3 &tip)
 Constructor for a tracked cone.
double scoreMatch (int frame, const Geometry::AlignedRectangle2D &box)
 Scores the match between the current cone and a new frame, based on the bounding box overlap.
void addFrame (int frame, double height, const Geometry::AlignedRectangle2D &box, const vec3 &tip)
 Adds a new frame to the tracked cone.

Public Attributes

int sweepIdx
 Index of the sweep where the cone was detected.
int lastFrame
 Last frame index where the cone was tracked.
std::vector< int > frames
 List of frames where the cone was detected.
std::vector< double > heights
 Heights of the cone tip in each frame.
std::vector< vec3 > tipPositions
 Positions of the cone tip in each frame.
Geometry::AlignedRectangle2D lastBox
 Bounding box of the cone in the last frame.

Constructor & Destructor Documentation

◆ TrackedCone()

ImFusion::US::UltrasoundConeCalibrationAlgorithm::TrackedCone::TrackedCone ( int sweep,
int frame,
double height,
const Geometry::AlignedRectangle2D & box,
const vec3 & tip )

Constructor for a tracked cone.

Parameters
sweepIndex of the sweep where the cone was detected.
frameFrame index where the cone was first detected.
heightHeight of the cone tip.
boxBounding box of the cone.
tipPosition of the cone tip (image coordinates).

Member Function Documentation

◆ scoreMatch()

double ImFusion::US::UltrasoundConeCalibrationAlgorithm::TrackedCone::scoreMatch ( int frame,
const Geometry::AlignedRectangle2D & box )

Scores the match between the current cone and a new frame, based on the bounding box overlap.

Parameters
frameFrame index to compare.
boxBounding box of the cone in the new frame.
Returns
Score of the match.

◆ addFrame()

void ImFusion::US::UltrasoundConeCalibrationAlgorithm::TrackedCone::addFrame ( int frame,
double height,
const Geometry::AlignedRectangle2D & box,
const vec3 & tip )

Adds a new frame to the tracked cone.

Parameters
frameFrame index.
heightHeight of the cone tip.
boxBounding box of the cone.
tipPosition of the cone tip.

The documentation for this class was generated from the following file:
  • ImFusion/US/UltrasoundConeCalibrationAlgorithm.h
Search Tab / S to search, Esc to close