MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ key_for()

template<ComputeData InputType = std::shared_ptr<Kakshya::SignalSourceContainer>, ComputeData OutputType = InputType>
template<typename T >
float MayaFlux::Yantra::VisionSorter< InputType, OutputType >::key_for ( size_t  index,
const std::vector< T > &  coll,
const VisionAnalysis analysis 
) const
inlineprivate

Definition at line 275 of file VisionSorter.hpp.

277 {
278 if constexpr (std::is_same_v<T, Kinesis::Vision::BoundingBox>) {
279 return key_for_box(coll[index]);
280 } else {
281 return key_for_contour(coll[index]);
282 }
283 (void)analysis;
284 }
float key_for_box(const Kinesis::Vision::BoundingBox &box) const
float key_for_contour(const Kinesis::Vision::Contour &contour) const

References MayaFlux::Yantra::VisionSorter< InputType, OutputType >::key_for_box(), and MayaFlux::Yantra::VisionSorter< InputType, OutputType >::key_for_contour().

+ Here is the call graph for this function: