Definition at line 433 of file mainIm.cpp. References 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::RGB2Intensity(), Impala::Core::Array::Set(), Impala::Core::Array::Watershed(), and Impala::Core::Array::WriteRaw(). Referenced by mainIm(). 00434 { 00435 ILOG_VAR(Impala.Application.Im.DoWatershedVec3UInt8); 00436 CmdOptions& options = CmdOptions::GetInstance(); 00437 if (options.GetNrArg() < 4) 00438 { 00439 ILOG_ERROR("Need more arguments"); 00440 return; 00441 } 00442 Util::Database* db = &Util::Database::GetInstance(); 00443 00444 String dstName = options.GetArg(1); 00445 String srcName = options.GetArg(2); 00446 int conn = atol(options.GetArg(3)); 00447 00448 Array2dVec3UInt8* srcData = 0; 00449 ReadRaw(srcData, srcName, db); 00450 Array2dScalarReal64* rData = 0; 00451 RGB2Intensity(rData, srcData); 00452 Array2dScalarInt32* intData = 0; 00453 Set(intData, rData); 00454 Array2dScalarInt32* res = 0; 00455 Watershed(res, intData, conn); 00456 WriteRaw(res, dstName, db, true); 00457 delete srcData; 00458 delete rData; 00459 delete res; 00460 }
Here is the call graph for this function:
|