mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fixed bug where the size of te image processor had not been set
Former-commit-id: 21b559899fad808a4878ebe7e0e108d8dc11bcae
This commit is contained in:
@@ -57,6 +57,9 @@ std::vector<RgbColor> ImageProcessor::process(const RgbImage& image)
|
||||
|
||||
void ImageProcessor::process(const RgbImage& image, std::vector<RgbColor>& ledColors)
|
||||
{
|
||||
// Ensure that the buffer-image is the proper size
|
||||
setSize(image.width(), image.height());
|
||||
|
||||
// Check black border detection
|
||||
verifyBorder(image);
|
||||
|
||||
|
@@ -80,7 +80,7 @@ namespace hyperion
|
||||
/// The height of the indexed image
|
||||
const unsigned _height;
|
||||
/// The absolute indices into the image for each led
|
||||
std::vector<std::vector<unsigned> > mColorsMap;
|
||||
std::vector<std::vector<unsigned>> mColorsMap;
|
||||
|
||||
///
|
||||
/// Calculates the 'mean color' of the given list. This is the mean over each color-channel
|
||||
|
Reference in New Issue
Block a user