Definition at line 664 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(). 00665 { 00666 ILOG_VAR(Impala.Application.Im.DoWeibullIRGB); 00667 CmdOptions& options = CmdOptions::GetInstance(); 00668 if (options.GetNrArg() < 3) 00669 { 00670 ILOG_ERROR("Need more arguments"); 00671 return; 00672 } 00673 Util::Database* db = &Util::Database::GetInstance(); 00674 00675 String imName = options.GetArg(1); 00676 double sigma = atof(options.GetArg(2)); 00677 bool doMu = false; 00678 if (options.GetNrArg() >= 4) 00679 doMu = (atol(options.GetArg(3)) != 0); 00680 bool doAnderson = false; 00681 if (options.GetNrArg() >= 5) 00682 doAnderson = (atol(options.GetArg(4)) != 0); 00683 bool doArjan = false; 00684 if (options.GetNrArg() >= 6) 00685 doArjan = (atol(options.GetArg(5)) != 0); 00686 00687 Array2dVec3UInt8* im = 0; 00688 ReadFile(im, imName, db); 00689 Core::Vector::VectorSet<Array2dScalarReal64>* vs = 0; 00690 vs = Core::Feature::WeibullIRGB(im, sigma, doMu, doAnderson, doArjan); 00691 //vs->Dump(); 00692 for (int i=0 ; i<vs->Size() ; i++) 00693 { 00694 Core::Vector::VectorTem<Real64> v = vs->GetVector(i, true); 00695 for (int j=0 ; j<v.Size() ; j++) 00696 std::cout << v[j] << " "; 00697 } 00698 std::cout << std::endl; 00699 delete im; 00700 delete vs; 00701 }
Here is the call graph for this function: ![]()
|