Definition at line 585 of file mainIm.cpp. References Impala::atof(), 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::Weibull(). Referenced by mainIm(). 00586 { 00587 ILOG_VAR(Impala.Application.Im.DoWeibullW); 00588 CmdOptions& options = CmdOptions::GetInstance(); 00589 if (options.GetNrArg() < 3) 00590 { 00591 ILOG_ERROR("Need more arguments"); 00592 return; 00593 } 00594 Util::Database* db = &Util::Database::GetInstance(); 00595 00596 String imName = options.GetArg(1); 00597 double sigma = atof(options.GetArg(2)); 00598 00599 Array2dVec3UInt8* im = 0; 00600 ReadFile(im, imName, db); 00601 Core::Vector::VectorSet<Array2dScalarReal64>* vs = 0; 00602 vs = Core::Feature::Weibull(im, sigma); 00603 //vs->Dump(); 00604 for (int i=0 ; i<vs->Size() ; i++) 00605 { 00606 Core::Vector::VectorTem<Real64> v = vs->GetVector(i, true); 00607 for (int j=0 ; j<v.Size() ; j++) 00608 std::cout << v[j] << " "; 00609 } 00610 std::cout << std::endl; 00611 delete im; 00612 delete vs; 00613 }
Here is the call graph for this function:
|