Merge branch 'master' into mediafoundation

This commit is contained in:
Paulchen Panther
2021-05-19 20:14:11 +02:00
committed by GitHub
7 changed files with 45 additions and 45 deletions

View File

@@ -154,7 +154,7 @@ namespace hyperion
const unsigned _verticalBorder;
/// The absolute indices into the image for each led
std::vector<std::vector<unsigned>> _colorsMap;
std::vector<std::vector<int32_t>> _colorsMap;
///
/// Calculates the 'mean color' of the given list. This is the mean over each color-channel
@@ -166,7 +166,7 @@ namespace hyperion
/// @return The mean of the given list of colors (or black when empty)
///
template <typename Pixel_T>
ColorRgb calcMeanColor(const Image<Pixel_T> & image, const std::vector<unsigned> & colors) const
ColorRgb calcMeanColor(const Image<Pixel_T> & image, const std::vector<int32_t> & colors) const
{
const auto colorVecSize = colors.size();