Definition at line 588 of file mainIm.cpp. References Impala::atof(), Impala::atol(), Impala::Core::Array::Element::E1Cast(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Geometry::LINEAR, Impala::Core::Geometry::NEAREST, Impala::Core::Array::ReadRaw(), Impala::Core::Array::RGB2Intensity(), Impala::Core::Array::Rotate(), Impala::Core::Array::Set(), and Impala::Core::Array::WriteRaw(). Referenced by mainIm(). 00589 { 00590 ILOG_VAR(Impala.Application.Im.DoRotateVec3UInt8); 00591 CmdOptions& options = CmdOptions::GetInstance(); 00592 if (options.GetNrArg() < 7) 00593 { 00594 ILOG_ERROR("Need more arguments"); 00595 return; 00596 } 00597 Util::Database* db = &Util::Database::GetInstance(); 00598 00599 String dstName = options.GetArg(1); 00600 String srcName = options.GetArg(2); 00601 double alpha = atof(options.GetArg(3)); 00602 int geoInt = atol(options.GetArg(4)); 00603 int adjustSize = atol(options.GetArg(5)); 00604 int background = atol(options.GetArg(6)); 00605 00606 Array2dVec3UInt8* srcData = 0; 00607 ReadRaw(srcData, srcName, db); 00608 Array2dScalarReal64* rData = 0; 00609 RGB2Intensity(rData, srcData); 00610 Array2dScalarInt32* intData = 0; 00611 Set(intData, rData); 00612 00613 Array2dVec3UInt8* res = 0; 00614 //Array2dVec3Real64* res = 0; 00615 Rotate(res, srcData, alpha, 00616 geoInt ? Core::Geometry::LINEAR : Core::Geometry::NEAREST, 00617 adjustSize != 0, E1Cast(background, Vec3Int32())); 00618 00619 //Array2dScalarInt32* res = 0; 00620 //Array2dScalarReal64* res = 0; 00621 //Rotate(res, rData, alpha, geoInt ? LINEAR : NEAREST, 00622 // adjustSize != 0, E1Cast(background, Real64())); 00623 00624 00625 WriteRaw(res, dstName, db, 0); 00626 delete srcData; 00627 delete rData; 00628 delete intData; 00629 delete res; 00630 }
Here is the call graph for this function: ![]()
|