Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::Im::DoAniGaussVec3UInt8 (  ) 

Definition at line 412 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().

00413 {
00414     ILOG_VAR(Impala.Application.Im.DoAniGaussVec3UInt8);
00415     CmdOptions& options = CmdOptions::GetInstance();
00416     if (options.GetNrArg() < 8)
00417     {
00418         ILOG_ERROR("Need more arguments");
00419         return;
00420     }
00421     Util::Database* db = &Util::Database::GetInstance();
00422 
00423     String dstName = options.GetArg(1);
00424     String srcName = options.GetArg(2);
00425     Real64 sigmaV = atof(options.GetArg(3));
00426     Real64 sigmaU = atof(options.GetArg(4));
00427     Real64 phi = atof(options.GetArg(5));
00428     int derV = atol(options.GetArg(6));
00429     int derU = atol(options.GetArg(7));
00430 
00431     Array2dVec3UInt8* srcData = 0;
00432     ReadFile(srcData, srcName, db);
00433     Array2dScalarReal64* rData = 0;
00434     RGB2Intensity(rData, srcData);
00435     Array2dScalarReal64* res = 0;
00436     AniGauss(res, rData, sigmaV, sigmaU, phi, derV, derU);
00437     WriteRaw(res, dstName, db, 1);
00438     delete srcData;
00439     delete rData;
00440     delete res;
00441 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:12 2011 for ImpalaSrc by  doxygen 1.5.1