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

template<class HistArrayT, class ImArrayT>
void Impala::Core::Histogram::MakeHistogram1dSet ( Histogram1dSet< HistArrayT > *  hSet,
Array::ArraySet< ImArrayT >  imSet,
Geometry::Rectangle  rect,
bool  doClearDst 
)

Definition at line 18 of file MakeHistogram1dSet.h.

References Impala::Core::Vector::VectorSet< ArrayT >::AllocateVector(), Impala::Core::Array::ArraySet< ArrayT >::Array(), Impala::Core::Histogram::Histogram1dSet< ArrayT >::Hist(), MakeHistogram1d(), Impala::Core::Vector::VectorSet< ArrayT >::Reserve(), Impala::Core::Vector::VectorSet< ArrayT >::SetSize(), and Impala::Core::Array::ArraySet< ArrayT >::Size().

Referenced by Impala::Core::Feature::VisSem::AddImageToAccu(), Impala::Core::Feature::VisSem::ComputeFeaturesPixelSet(), Impala::Core::Feature::VisSem::ComputeRegionFeatures(), Impala::Core::Feature::VisSem::ImageStat(), Impala::Core::Test::TestWeibull::Run(), Impala::Core::Feature::Weibull(), and Impala::Core::Feature::WeibullIRGB().

00021 {
00022     typedef typename Histogram1dSet<HistArrayT>::HistT HistType;
00023 
00024     int start = (doClearDst) ? 0 : hSet->AllocateVector(imSet.Size());
00025     if (doClearDst)
00026     {
00027         hSet->Reserve(imSet.Size(), false);
00028         hSet->SetSize(imSet.Size());
00029     }
00030     for (int i=0 ; i<imSet.Size() ; i++)
00031     {
00032         HistType hist = hSet->Hist(start + i);
00033         MakeHistogram1d(&hist, imSet.Array(i), rect);
00034     }
00035 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:19:44 2011 for ImpalaSrc by  doxygen 1.5.1