Definition at line 239 of file mainIm.cpp. References Impala::Core::Array::ArrayListDelete(), Impala::atof(), Impala::Core::Array::GaussDerivative(), 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::RGB2Intensity(), Impala::Application::DemoCamera2d::sigma, Impala::Timer::SplitTime(), and Impala::Core::Array::WriteRawList(). Referenced by mainIm(). 00240 { 00241 ILOG_VAR(Impala.Application.Im.DoNJetVec3UInt8); 00242 CmdOptions& options = CmdOptions::GetInstance(); 00243 if (options.GetNrArg() < 5) 00244 { 00245 ILOG_ERROR("Need more arguments"); 00246 return; 00247 } 00248 Util::Database* db = &Util::Database::GetInstance(); 00249 00250 String dstName = options.GetArg(1); 00251 String srcName = options.GetArg(2); 00252 double sigma = atof(options.GetArg(3)); 00253 double precision = atof(options.GetArg(4)); 00254 00255 Array2dVec3UInt8* srcData = 0; 00256 ReadRaw(srcData, srcName, db); 00257 Array2dScalarReal64* rData = 0; 00258 RGB2Intensity(rData, srcData); 00259 std::vector<Array2dScalarReal64*> resList; 00260 Timer timer(1); 00261 00262 Array2dScalarReal64* res = 0; 00263 GaussDerivative(res, rData, sigma, 0, 0, precision); 00264 resList.push_back(res); 00265 00266 res = 0; 00267 GaussDerivative(res, rData, sigma, 1, 0, precision); 00268 resList.push_back(res); 00269 00270 res = 0; 00271 GaussDerivative(res, rData, sigma, 0, 1, precision); 00272 resList.push_back(res); 00273 00274 res = 0; 00275 GaussDerivative(res, rData, sigma, 2, 0, precision); 00276 resList.push_back(res); 00277 00278 res = 0; 00279 GaussDerivative(res, rData, sigma, 1, 1, precision); 00280 resList.push_back(res); 00281 00282 res = 0; 00283 GaussDerivative(res, rData, sigma, 0, 2, precision); 00284 resList.push_back(res); 00285 00286 ILOG_INFO("time: " << timer.SplitTime()); 00287 WriteRawList(resList, dstName, db, true); 00288 delete srcData; 00289 delete rData; 00290 //delete res; 00291 ArrayListDelete(&resList); 00292 }
Here is the call graph for this function:
|