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

◆ hash_region()

void MayaFlux::Kinesis::Vision::hash_region ( size_t &  seed,
const std::optional< BoundingBox > &  region 
)
inline

Combine an optional region into a hash: absence and presence hash differently, presence by its four bounds.

Definition at line 603 of file VisionOp.hpp.

604{
605 hash_combine(seed, std::hash<bool> {}(region.has_value()));
606 if (!region)
607 return;
608 hash_combine(seed, std::hash<float> {}(region->x));
609 hash_combine(seed, std::hash<float> {}(region->y));
610 hash_combine(seed, std::hash<float> {}(region->w));
611 hash_combine(seed, std::hash<float> {}(region->h));
612}
void hash_combine(size_t &seed, size_t value)
Combine a hash into an existing seed, FNV-style.
Definition VisionOp.hpp:594

References hash_combine().

Referenced by hash_vision_step().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: