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

Vector::VectorSet<Core::Array::Array2dScalarReal64>* Impala::Core::Feature::Weibull ( Core::Array::Array2dVec3UInt8 *  im,
Real64  sigma 
)

Definition at line 20 of file Weibull.h.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Histogram::ComputeWeibull(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::Core::Array::InvWiccest(), and Impala::Core::Histogram::MakeHistogram1dSet().

Referenced by Impala::Application::Im::DoWeibullW().

00021 {
00022     typedef Array::Array2dScalarReal64 Array2dScalarReal64;
00023     typedef Vector::VectorTem<Real64> VectorReal64;
00024     typedef Array::ArraySet<Array2dScalarReal64> InvSetType;
00025     typedef Histogram::Histogram1dSet<Array2dScalarReal64> HistSetType;
00026     typedef HistSetType::HistT HistType;
00027     typedef Vector::VectorSet<Array2dScalarReal64> VecSetType;
00028 
00029     int histBinCount = 1001;
00030     Real64 histLow = -1;
00031     Real64 histHigh = 1;
00032     bool doRot = false;
00033     bool doC = false;
00034     int borderSize = 15;
00035 
00036     Geometry::Rectangle rect(15, 15, im->CW() - 15, im->CH() - 15);
00037     Array::ArraySet<Array2dScalarReal64> invSet;
00038     Array::InvWiccest(invSet, im, doRot, doC, sigma, 3, true);
00039     //Array::WriteRawList(invSet, "outW.raw", true);
00040 
00041     HistSetType hSet(histLow, histHigh, histBinCount, invSet.Size());
00042     Histogram::MakeHistogram1dSet(&hSet, invSet, rect, true);
00043     VecSetType* res = new VecSetType(true, 2, invSet.Size());
00044     for (int h=0 ; h<hSet.Size() ; h++)
00045     {
00046         VectorReal64 v(2);
00047         Histogram::ComputeWeibull(v, hSet.Hist(h), false, false);
00048         res->AddVector(v);
00049     }
00050 
00051     invSet.Delete();
00052     return res;
00053 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:08:36 2010 for ImpalaSrc by  doxygen 1.5.1