Definition at line 295 of file mainIm.cpp. References Impala::atof(), Impala::atol(), Impala::Core::Array::GaussDerivativeVec3(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, Impala::Application::DemoCamera2d::precision, Impala::Core::Array::ReadRaw(), Impala::Core::Array::Set(), Impala::Application::DemoCamera2d::sigma, Impala::Timer::SplitTime(), and Impala::Core::Array::WriteRaw(). Referenced by mainIm(). 00296 { 00297 ILOG_VAR(Impala.Application.Im.DoGaussVec3UInt8); 00298 CmdOptions& options = CmdOptions::GetInstance(); 00299 if (options.GetNrArg() < 7) 00300 { 00301 ILOG_ERROR("Need more arguments"); 00302 return; 00303 } 00304 Util::Database* db = &Util::Database::GetInstance(); 00305 00306 String dstName = options.GetArg(1); 00307 String srcName = options.GetArg(2); 00308 double sigma = atof(options.GetArg(3)); 00309 int derX = atol(options.GetArg(4)); 00310 int derY = atol(options.GetArg(5)); 00311 double precision = atof(options.GetArg(6)); 00312 00313 Array2dVec3UInt8* srcData = 0; 00314 ReadRaw(srcData, srcName, db); 00315 //Array2dScalarReal64* rData = 0; 00316 //RGB2Intensity(rData, srcData); 00317 Array2dVec3Real64* rData = 0; 00318 Set(rData, srcData); 00319 Timer timer(1); 00320 //Array2dScalarReal64* res = 0; 00321 Array2dVec3Real64* res = 0; 00322 //GaussDerivative(res, rData, sigma, derX, derY, precision); 00323 GaussDerivativeVec3(res, rData, sigma, derX, derY, precision); 00324 ILOG_INFO("time: " << timer.SplitTime()); 00325 WriteRaw(res, dstName, db, false); 00326 delete srcData; 00327 delete rData; 00328 delete res; 00329 }
Here is the call graph for this function:
|