Skip to content

Class Argos::BoundingBoxMetric

ClassList > Argos > BoundingBoxMetric

Metric comparing the bounding boxes of the original and reconstructed meshes.More...

  • #include <bench_bounding_box.h>

Inherits the following classes: Metric

Public Functions

Type Name
BoundingBoxMetric ()
Construct the metric with label "BoundingBox".
virtual void compute (const Mesh & originalMesh, const Mesh & reconstructedMesh, benchmark::State & state) override const
Compute the metric for a single (original, reconstructed) pair.
~BoundingBoxMetric () = default

Public Functions inherited from Metric

See Metric

Type Name
Metric (const std::string & name)
Construct a metric with the given short label.
virtual void compute (const Mesh & originalMesh, const Mesh & reconstructedMesh, benchmark::State & state) const = 0
Compute the metric for a single (original, reconstructed) pair.
const std::string & getName () const
Return the metric's short label.
virtual ~Metric () = default

Detailed Description

Records the relative volume difference (BoundingBox.VolumeDiffPct) and the center distance (BoundingBox.CenterDist).

Public Functions Documentation

function BoundingBoxMetric

Construct the metric with label "BoundingBox".

inline Argos::BoundingBoxMetric::BoundingBoxMetric () 


function compute

Compute the metric for a single (original, reconstructed) pair.

virtual void Argos::BoundingBoxMetric::compute (
    const Mesh & originalMesh,
    const Mesh & reconstructedMesh,
    benchmark::State & state
) override const

Implementations should record their values on state.counters.

Parameters:

  • originalMesh Ground-truth mesh.
  • reconstructedMesh Mesh produced by the reconstruction algorithm.
  • state Google Benchmark state receiving the counters.

Implements Metric::compute


function ~BoundingBoxMetric

Argos::BoundingBoxMetric::~BoundingBoxMetric () = default


The documentation for this class was generated from the following file benchmark/metrics/implementations/bench_bounding_box.h