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

Impala::Core::Feature::VisSem::VisSem ( String  name,
CmdOptions options 
) [inline]

Definition at line 42 of file VisSem.h.

References Impala::Core::Feature::Computor::AddScale(), ComputePixelFeatureSet(), Impala::FileNameBase(), Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetDouble(), Impala::CmdOptions::GetInt(), Impala::Core::Feature::Computor::GetName(), Impala::Core::Feature::Computor::GetNrPixelFeatureSets(), Impala::CmdOptions::GetString(), ILOG_INFO, Impala::Core::Feature::Computor::IsClusterBased(), Impala::MakeString(), mCumulativeHist, mDoC, mDoCodebook, mDoRot, mDoUNC, mFreq, mHistAccu, mHistBinCount, mKeyframesName, mNrOrient, NewHistSet(), Impala::Core::Feature::Computor::SetPixelFeatureSetSize(), Impala::Core::Feature::Computor::SetRegionDescriptorLength(), and Impala::Core::Array::ArraySet< ArrayT >::Size().

00042                                              : Computor(name, options)
00043     {
00044         if (GetName() == "vissem")
00045         {
00046             for (int i=0 ; i<options.GetInt("nrScales") ; i++)
00047             {
00048                 String s = "spatialSigma_s" + MakeString(i);
00049                 AddScale(options.GetDouble(s));
00050             }
00051             mDoRot = options.GetBool("doRot");
00052             mDoC = options.GetBool("doC");
00053             mHistBinCount = options.GetInt("histBinCount");
00054             SetRegionDescriptorLength(2); // weibulls
00055         }
00056         if (GetName() == "vissemgabor")
00057         {
00058             mNrOrient = 4;
00059             AddScale(2.828);
00060             mFreq.push_back(0.720);
00061             AddScale(1.414);
00062             mFreq.push_back(2.094);
00063             mHistBinCount = 101;
00064             mCumulativeHist = false;
00065             SetRegionDescriptorLength(mHistBinCount);
00066         }
00067 
00068         mDoCodebook = options.GetBool("doCodebook");
00069         ILOG_INFO("mDoCodebook: " << mDoCodebook);
00070 
00071         // do codeword uncertainty (instead of kernel codebook)
00072         mDoUNC = options.GetBool("doUNC");
00073         ILOG_INFO("doUNC: " << mDoUNC);
00074 
00075         mKeyframesName = FileNameBase(options.GetString("keyframeMask"));
00076         if (mKeyframesName == "")
00077             mKeyframesName = FileNameBase(options.GetString("keyframeMaskAnno"));
00078         if (mKeyframesName == "")
00079             mKeyframesName = "all";
00080 
00081         InvSetType invSet;  // to figure out what is to be computed
00082         ComputePixelFeatureSet(invSet, 0, 0);
00083         SetPixelFeatureSetSize(invSet.Size());
00084 
00085         if (!IsClusterBased())
00086             for (int i=0 ; i<GetNrPixelFeatureSets() ; i++)
00087                 mHistAccu.push_back(NewHistSet());
00088     }

Here is the call graph for this function:


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