Definition at line 364 of file mainIm.cpp. References Impala::Core::Array::AniGauss(), Impala::atof(), Impala::atol(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Array::ReadFile(), Impala::Core::Array::RGB2Intensity(), and Impala::Core::Array::WriteRaw(). Referenced by mainIm(). 00365 { 00366 ILOG_VAR(Impala.Application.Im.DoAniGaussVec3UInt8); 00367 CmdOptions& options = CmdOptions::GetInstance(); 00368 if (options.GetNrArg() < 8) 00369 { 00370 ILOG_ERROR("Need more arguments"); 00371 return; 00372 } 00373 Util::Database* db = &Util::Database::GetInstance(); 00374 00375 String dstName = options.GetArg(1); 00376 String srcName = options.GetArg(2); 00377 Real64 sigmaV = atof(options.GetArg(3)); 00378 Real64 sigmaU = atof(options.GetArg(4)); 00379 Real64 phi = atof(options.GetArg(5)); 00380 int derV = atol(options.GetArg(6)); 00381 int derU = atol(options.GetArg(7)); 00382 00383 Array2dVec3UInt8* srcData = 0; 00384 ReadFile(srcData, srcName, db); 00385 Array2dScalarReal64* rData = 0; 00386 RGB2Intensity(rData, srcData); 00387 Array2dScalarReal64* res = 0; 00388 AniGauss(res, rData, sigmaV, sigmaU, phi, derV, derU); 00389 WriteRaw(res, dstName, db, true); 00390 delete srcData; 00391 delete rData; 00392 delete res; 00393 }
Here is the call graph for this function:
|