mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fixed bug where the size of te image processor had not been set
Former-commit-id: 21b559899fad808a4878ebe7e0e108d8dc11bcae
This commit is contained in:
parent
756e9a28c0
commit
3939380b5e
Binary file not shown.
@ -1 +1 @@
|
||||
71c14781ce343776ab00db70f9d2493e3e2feead
|
||||
2aec2ecd5196371657df1e358ad3946e0da71a14
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user