MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / DrawHeatMap

Method DrawHeatMap

example/CarsCounting.cpp:365–375  ·  view source on GitHub ↗

\brief CarsCounting::DrawHeatMap

Source from the content-addressed store, hash-verified

363/// \brief CarsCounting::DrawHeatMap
364///
365cv::Mat CarsCounting::DrawHeatMap()
366{
367 cv::Mat res;
368 if (!m_heatMap.empty())
369 {
370 cv::normalize(m_heatMap, m_normHeatMap, 255, 0, cv::NORM_MINMAX, CV_8UC1);
371 cv::applyColorMap(m_normHeatMap, m_colorMap, cv::COLORMAP_HOT);
372 cv::bitwise_or(m_keyFrame, m_colorMap, res);
373 }
374 return res;
375}
376
377///
378/// \brief CarsCounting::AddToHeatMap

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected