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

void Impala::Application::Im::DoWeibullIRGB (  ) 

Definition at line 616 of file mainIm.cpp.

References Impala::atof(), Impala::atol(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), Impala::Core::Vector::VectorSet< ArrayT >::GetVector(), ILOG_ERROR, ILOG_VAR, Impala::Core::Array::ReadFile(), Impala::Application::DemoCamera2d::sigma, Impala::Core::Vector::VectorSet< ArrayT >::Size(), and Impala::Core::Feature::WeibullIRGB().

Referenced by mainIm().

00617 {
00618     ILOG_VAR(Impala.Application.Im.DoWeibullIRGB);
00619     CmdOptions& options = CmdOptions::GetInstance();
00620     if (options.GetNrArg() < 3)
00621     {
00622         ILOG_ERROR("Need more arguments");
00623         return;
00624     }
00625     Util::Database* db = &Util::Database::GetInstance();
00626 
00627     String imName = options.GetArg(1);
00628     double sigma = atof(options.GetArg(2));
00629     bool doMu = false;
00630     if (options.GetNrArg() >= 4)
00631         doMu = (atol(options.GetArg(3)) != 0);
00632     bool doAnderson = false;
00633     if (options.GetNrArg() >= 5)
00634         doAnderson = (atol(options.GetArg(4)) != 0);
00635     bool doArjan = false;
00636     if (options.GetNrArg() >= 6)
00637         doArjan = (atol(options.GetArg(5)) != 0);
00638 
00639     Array2dVec3UInt8* im = 0;
00640     ReadFile(im, imName, db);
00641     Core::Vector::VectorSet<Array2dScalarReal64>* vs = 0;
00642     vs = Core::Feature::WeibullIRGB(im, sigma, doMu, doAnderson, doArjan);
00643     //vs->Dump();
00644     for (int i=0 ; i<vs->Size() ; i++)
00645     {
00646         Core::Vector::VectorTem<Real64> v = vs->GetVector(i, true);
00647         for (int j=0 ; j<v.Size() ; j++)
00648             std::cout << v[j] << " ";
00649     }
00650     std::cout << std::endl;
00651     delete im;
00652     delete vs;
00653 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:42:25 2010 for ImpalaSrc by  doxygen 1.5.1