Definition at line 633 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(). 00634 { 00635 ILOG_VAR(Impala.Application.Im.DoWeibullW); 00636 CmdOptions& options = CmdOptions::GetInstance(); 00637 if (options.GetNrArg() < 3) 00638 { 00639 ILOG_ERROR("Need more arguments"); 00640 return; 00641 } 00642 Util::Database* db = &Util::Database::GetInstance(); 00643 00644 String imName = options.GetArg(1); 00645 double sigma = atof(options.GetArg(2)); 00646 00647 Array2dVec3UInt8* im = 0; 00648 ReadFile(im, imName, db); 00649 Core::Vector::VectorSet<Array2dScalarReal64>* vs = 0; 00650 vs = Core::Feature::Weibull(im, sigma); 00651 //vs->Dump(); 00652 for (int i=0 ; i<vs->Size() ; i++) 00653 { 00654 Core::Vector::VectorTem<Real64> v = vs->GetVector(i, true); 00655 for (int j=0 ; j<v.Size() ; j++) 00656 std::cout << v[j] << " "; 00657 } 00658 std::cout << std::endl; 00659 delete im; 00660 delete vs; 00661 }
Here is the call graph for this function: ![]()
|