Definition at line 343 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(). 00344 { 00345 ILOG_VAR(Impala.Application.Im.DoGaussVec3UInt8); 00346 CmdOptions& options = CmdOptions::GetInstance(); 00347 if (options.GetNrArg() < 7) 00348 { 00349 ILOG_ERROR("Need more arguments"); 00350 return; 00351 } 00352 Util::Database* db = &Util::Database::GetInstance(); 00353 00354 String dstName = options.GetArg(1); 00355 String srcName = options.GetArg(2); 00356 double sigma = atof(options.GetArg(3)); 00357 int derX = atol(options.GetArg(4)); 00358 int derY = atol(options.GetArg(5)); 00359 double precision = atof(options.GetArg(6)); 00360 00361 Array2dVec3UInt8* srcData = 0; 00362 ReadRaw(srcData, srcName, db); 00363 //Array2dScalarReal64* rData = 0; 00364 //RGB2Intensity(rData, srcData); 00365 Array2dVec3Real64* rData = 0; 00366 Set(rData, srcData); 00367 Timer timer(1); 00368 //Array2dScalarReal64* res = 0; 00369 Array2dVec3Real64* res = 0; 00370 //GaussDerivative(res, rData, sigma, derX, derY, precision); 00371 GaussDerivativeVec3(res, rData, sigma, derX, derY, precision); 00372 ILOG_INFO("time: " << timer.SplitTime()); 00373 WriteRaw(res, dstName, db, 0); 00374 delete srcData; 00375 delete rData; 00376 delete res; 00377 }
Here is the call graph for this function: ![]()
|