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

void Impala::Application::Im::DoRotateVec3UInt8 (  ) 

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

00541 {
00542     ILOG_VAR(Impala.Application.Im.DoRotateVec3UInt8);
00543     CmdOptions& options = CmdOptions::GetInstance();
00544     if (options.GetNrArg() < 7)
00545     {
00546         ILOG_ERROR("Need more arguments");
00547         return;
00548     }
00549     Util::Database* db = &Util::Database::GetInstance();
00550 
00551     String dstName = options.GetArg(1);
00552     String srcName = options.GetArg(2);
00553     double alpha = atof(options.GetArg(3));
00554     int geoInt = atol(options.GetArg(4));
00555     int adjustSize = atol(options.GetArg(5));
00556     int background = atol(options.GetArg(6));
00557 
00558     Array2dVec3UInt8* srcData = 0;
00559     ReadRaw(srcData, srcName, db);
00560     Array2dScalarReal64* rData = 0;
00561     RGB2Intensity(rData, srcData);
00562     Array2dScalarInt32* intData = 0;
00563     Set(intData, rData);
00564 
00565     Array2dVec3UInt8* res = 0;
00566     //Array2dVec3Real64* res = 0;
00567     Rotate(res, srcData, alpha,
00568            geoInt ? Core::Geometry::LINEAR : Core::Geometry::NEAREST,
00569            adjustSize != 0, E1Cast(background, Vec3Int32()));
00570 
00571     //Array2dScalarInt32* res = 0;
00572     //Array2dScalarReal64* res = 0;
00573     //Rotate(res, rData, alpha, geoInt ? LINEAR : NEAREST,
00574     //             adjustSize != 0, E1Cast(background, Real64()));
00575 
00576 
00577     WriteRaw(res, dstName, db, false);
00578     delete srcData;
00579     delete rData;
00580     delete intData;
00581     delete res;
00582 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:42:22 2010 for ImpalaSrc by  doxygen 1.5.1