Definition at line 396 of file mainIm.cpp. References Impala::atof(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Array::ReadRaw(), Impala::Core::Array::RecGabor(), Impala::Core::Array::RGB2Intensity(), Impala::Core::Array::Set(), and Impala::Core::Array::WriteRaw(). Referenced by mainIm(). 00397 { 00398 ILOG_VAR(Impala.Application.Im.DoRecGaborVec3UInt8); 00399 CmdOptions& options = CmdOptions::GetInstance(); 00400 if (options.GetNrArg() < 6) 00401 { 00402 ILOG_ERROR("Need more arguments"); 00403 return; 00404 } 00405 Util::Database* db = &Util::Database::GetInstance(); 00406 00407 String dstName = options.GetArg(1); 00408 String srcName = options.GetArg(2); 00409 double s = atof(options.GetArg(3)); 00410 double omega0 = atof(options.GetArg(4)); 00411 double theta = atof(options.GetArg(5)); 00412 00413 Array2dVec3UInt8* srcData = 0; 00414 ReadRaw(srcData, srcName, db); 00415 Array2dScalarReal64* rData = 0; 00416 RGB2Intensity(rData, srcData); 00417 Array2dComplex64* comData = 0; 00418 Set(comData, rData); 00419 Array2dComplex64* res = 0; 00420 RecGabor(res, comData, s, omega0, theta); 00421 WriteRaw(res, dstName, db, true); 00422 /* 00423 Array2dScalarReal64* norm = 0; 00424 norm = Norm2(norm, res); 00425 WriteRaw(norm, dstName+String("2"), db, false); 00426 */ 00427 delete srcData; 00428 delete rData; 00429 delete res; 00430 }
Here is the call graph for this function:
|