OSVR-Core
|
Header. More...
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <tuple>
Go to the source code of this file.
Namespaces | |
osvr | |
The main namespace for all C++ elements of the framework, internal and external. | |
Functions | |
void | osvr::vbtracker::drawTwoStepProgressBar (cv::Mat &image, cv::Point location, cv::Size size, std::size_t complete, std::size_t partial, std::size_t incomplete) |
Header.
void osvr::vbtracker::drawTwoStepProgressBar | ( | cv::Mat & | image, |
cv::Point | location, | ||
cv::Size | size, | ||
std::size_t | complete, | ||
std::size_t | partial, | ||
std::size_t | incomplete | ||
) |
Helper lambdas to reduce duplicate code. Taking colors as vec3b because Scalar has too many implicit conversions.
Most basic, drawing a bar starting at the right place, right height, of designated width and color.
Draw a bar that's a fraction of the total length, based on the units passed in (computing the fraction internally), in a given color.
Drawing overlapping rectangles to avoid noisy lines at borders. So, the bottom one will always be the full size... This we call the "base bar"
A list of the layers, bottom to top, with their individual portions and their color, to iterate through.
Iterate through the layers.
skip empty sections