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

void Impala::Application::Im::DoRecGaussVec3UInt8 (  ) 

Definition at line 380 of file mainIm.cpp.

References Impala::atof(), Impala::atol(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Array::ReadRaw(), Impala::Core::Array::RecGauss(), Impala::Core::Array::RGB2Intensity(), and Impala::Core::Array::WriteRaw().

Referenced by mainIm().

00381 {
00382     ILOG_VAR(Impala.Application.Im.DoRecGaussVec3UInt8);
00383     CmdOptions& options = CmdOptions::GetInstance();
00384     if (options.GetNrArg() < 8)
00385     {
00386         ILOG_ERROR("Need more arguments");
00387         return;
00388     }
00389     Util::Database* db = &Util::Database::GetInstance();
00390 
00391     String dstName = options.GetArg(1);
00392     String srcName = options.GetArg(2);
00393     double sigmaX = atof(options.GetArg(3));
00394     double sigmaY = atof(options.GetArg(4));
00395     int derX = atol(options.GetArg(5));
00396     int derY = atol(options.GetArg(6));
00397     int recOrder = atof(options.GetArg(7));
00398 
00399     Array2dVec3UInt8* srcData = 0;
00400     ReadRaw(srcData, srcName, db);
00401     Array2dScalarReal64* rData = 0;
00402     RGB2Intensity(rData, srcData);
00403     Array2dScalarReal64* res = 0;
00404     RecGauss(res, rData, sigmaX, sigmaY, derX, derY, recOrder);
00405     WriteRaw(res, dstName, db, 1);
00406     delete srcData;
00407     delete rData;
00408     delete res;
00409 }

Here is the call graph for this function:


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