Fixed bug where the size of te image processor had not been set

Former-commit-id: 21b559899fad808a4878ebe7e0e108d8dc11bcae
This commit is contained in:
johan 2013-10-21 21:13:01 +02:00
parent 756e9a28c0
commit 3939380b5e
4 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -1 +1 @@
71c14781ce343776ab00db70f9d2493e3e2feead
2aec2ecd5196371657df1e358ad3946e0da71a14

View File

@ -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);

View File

@ -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