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

void Impala::Core::Feature::VisSem::AddImageToAccu ( Array::Array2dVec3UInt8 im,
Geometry::Rectangle  rect 
) [inline]

Definition at line 241 of file VisSem.h.

References Impala::Core::Vector::AddAssign(), ComputePixelFeatureSet(), Impala::Core::Feature::Computor::GetNrPixelFeatureSets(), Impala::Core::Feature::Computor::GetPixelFeatureSetSize(), Impala::Core::Histogram::MakeHistogram1dSet(), Impala::Core::Geometry::Rectangle::mBottom, mHistAccu, Impala::Core::Geometry::Rectangle::mLeft, Impala::Core::Geometry::Rectangle::mRight, Impala::Core::Geometry::Rectangle::mTop, and NewHistSet().

Referenced by Impala::Core::VideoSet::VisSemTrain::HandleNewFrame().

00242     {
00243         // to match rect.Inside:
00244         //
00245         rect.mLeft += 1;
00246         rect.mRight -= 1;
00247         rect.mTop += 1;
00248         rect.mBottom -= 1;
00249         //
00250 
00251         for (int p=0 ; p<GetNrPixelFeatureSets() ; p++)
00252         {
00253             InvSetType invSet;
00254             ComputePixelFeatureSet(invSet, p, im);
00255             HistSetType* hSet = NewHistSet();
00256             Histogram::MakeHistogram1dSet(hSet, invSet, rect, true);
00257             Vector::AddAssign(mHistAccu[p], hSet, 0, 0, GetPixelFeatureSetSize());
00258             mHistAccu[p]->SetSize(GetPixelFeatureSetSize());
00259             delete hSet;
00260             invSet.Delete();
00261         }
00262     }

Here is the call graph for this function:


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