Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class VecElemT, class HistArrayT>
void Impala::Core::Histogram::ComputeWeibull ( Vector::VectorTem< VecElemT > &  v,
Histogram1dSet< HistArrayT > *  hSet,
bool  storeMu,
bool  storeA 
)

Computes Weibull parameters for each histogram in the set and concatenates them into a vector.

Definition at line 58 of file ComputeWeibull.h.

References Impala::Core::Histogram::Histogram1dSet< ArrayT >::Hist(), and Impala::Core::Vector::VectorSet< ArrayT >::Size().

Referenced by Impala::Core::Feature::VisSem::ComputeRegionDescriptor(), Impala::Core::Test::TestWeibull::Run(), Impala::Core::Feature::Weibull(), and Impala::Core::Feature::WeibullIRGB().

00060 {
00061     typedef typename Histogram1dSet<HistArrayT>::HistT HistType;
00062 
00063     int nrPar = 2 + ((storeMu) ? 1 : 0) + ((storeA) ? 1 : 0);
00064     for (int i=0 ; i<hSet->Size() ; i++)
00065     {
00066         HistType hist = hSet->Hist(i);
00067         FitWeibullMarginal<VecElemT> fit(hist.GetData(), hist.GetBinCount(),
00068                                          hist.GetLow(), hist.GetHigh());
00069         int idx = i*nrPar;
00070         v[idx++] = fit.Beta();
00071         v[idx++] = fit.Gamma();
00072         if (storeMu)
00073             v[idx++] = fit.Mu();
00074         if (storeA)
00075             v[idx++] = fit.A2();
00076     }
00077 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:12:05 2010 for ImpalaSrc by  doxygen 1.5.1