Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Modules/ImageProcessor/ImageProcessorTools/LightingChangeTester.h

Go to the documentation of this file.
00001 /** 
00002 * @file LightingChangeTester.h
00003 * Declaration of class LightingChangeTester.
00004 *
00005 * @author <A href=mailto:juengel@informatik.hu-berlin.de>Matthias Jüngel</A>
00006 */
00007 
00008 #include "Tools/RingBufferWithSum.h"
00009 
00010 #ifndef _LightingChangeTester_h_
00011 #define _LightingChangeTester_h_
00012 
00013 /**
00014 * @class LightingChangeTester
00015 *
00016 * The LightingChangeTester checks if the lighting has changed.
00017 * To know this can be important for a color calibration system.
00018 * The calibration system has to extract green pixels from the image.
00019 * Each such pixel must be added using the method addColor.
00020 * If a new image is processed startImage has to be called.
00021 * The method lightingHasChanged returns true, if the lighting has changed.
00022 * 
00023 *
00024 * @author <A href=mailto:juengel@informatik.hu-berlin.de>Matthias Jüngel</A>
00025 */
00026 
00027 class LightingChangeTester
00028 {
00029 public:
00030   /** Constructor */
00031   LightingChangeTester();
00032 
00033   /** Destructor */
00034   ~LightingChangeTester();
00035 
00036   void init();
00037   void startImage();
00038   void addColor(int channel1, int channel2, int channel3);
00039   bool lightingHasChanged();
00040 
00041 private:
00042   int numberOfImages;
00043   int numberOfMeasurementsInImage;
00044   int accumulatedValueInImage[3];
00045 
00046   RingBufferWithSum<10> valuesOfLastImages[3];
00047 };
00048 
00049 #endif   //  _LightingChangeTester_h_

Generated on Mon Mar 20 21:59:50 2006 for GT2005 by doxygen 1.3.6