Autoware.Auto
autoware::perception::tracking::IOUHeuristic Struct Reference

Simple heuristic functor that returns the IoU between two shapes. More...

#include <greedy_roi_associator.hpp>

Public Member Functions

template<template< typename ... > class Iterable1T, template< typename ... > class Iterable2T, typename Point1T , typename Point2T >
common::types::float32_t operator() (const Iterable1T< Point1T > &shape1, const Iterable2T< Point2T > &shape2) const
 Get the match score of a projection and a roi. More...
 

Detailed Description

Simple heuristic functor that returns the IoU between two shapes.

Member Function Documentation

◆ operator()()

template<template< typename ... > class Iterable1T, template< typename ... > class Iterable2T, typename Point1T , typename Point2T >
common::types::float32_t autoware::perception::tracking::IOUHeuristic::operator() ( const Iterable1T< Point1T > &  shape1,
const Iterable2T< Point2T > &  shape2 
) const
inline

Get the match score of a projection and a roi.

Template Parameters
Iterable1TA container class that has stl style iterators defined.
Iterable2TA container class that has stl style iterators defined.
Point1TPoint type that have the adapters for the x and y fields.
Point2TPoint type that have the adapters for the x and y fields.
Parameters
shape1Polygon 1
shape2Polygon 2
Returns
The IOU between two given shapes.

The documentation for this struct was generated from the following file: