CHistogramStatisticsProcessorComp.h
Go to the documentation of this file.
1 #ifndef imeas_CHistogramStatisticsProcessorComp_included
2 #define imeas_CHistogramStatisticsProcessorComp_included
3 
4 
5 // ACF includes
7 
8 // ACF-Solutions includes
10 
11 
12 namespace imeas
13 {
14 
15 
16 class IDataSequence;
17 class IDataSequenceStatistics;
18 class IDataStatistics;
19 
20 
24 class CHistogramStatisticsProcessorComp: public iproc::TSyncProcessorCompBase<IDataSequenceStatisticsProcessor>
25 {
26 public:
28 
29  I_BEGIN_COMPONENT(CHistogramStatisticsProcessorComp);
30  I_REGISTER_INTERFACE(IDataSequenceStatisticsProcessor);
31  I_END_COMPONENT;
32 
33  // reimplemented (iproc::IProcessor)
34  virtual int DoProcessing(
35  const iprm::IParamsSet* paramsPtr,
36  const istd::IPolymorphic* inputPtr,
37  istd::IChangeable* outputPtr,
38  ibase::IProgressManager* progressManagerPtr = NULL);
39 
40  // reimplemented (IDataSequenceStatisticsProcessor)
41  virtual int CalculateDataStatistics(
42  const imeas::IDataSequence& dataSequence,
43  imeas::IDataSequenceStatistics& dataStatistics) const;
44 
45 private:
46  bool CalculateChannelStatistics(const imeas::IDataSequence& input, int inputIndex, imeas::IDataStatistics& dataStatistics) const;
47 };
48 
49 
50 } // namespace imeas
51 
52 
53 #endif // !imeas_CHistogramStatisticsProcessorComp_included
54 
Simple definition macro for a synchronous processor.
virtual int DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, ibase::IProgressManager *progressManagerPtr=NULL)
Common interace for simple data statistics.
Implementation of a processor for the image histogram calculation.
General definition of sequence contains samples in regular time grid.
Definition: IDataSequence.h:20
Common interaface for data sequence statistics.
iproc::TSyncProcessorCompBase< IDataSequenceStatisticsProcessor > BaseClass
virtual int CalculateDataStatistics(const imeas::IDataSequence &dataSequence, imeas::IDataSequenceStatistics &dataStatistics) const
Processor interface for statistics calculation of a data sequence.

© 2007-2011 Witold Gantzke and Kirill Lepskiy