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

Impala::Core::Geometry::InterestPointSelector::InterestPointSelector ( std::string  config,
int  borderOffset 
) [inline]

Definition at line 21 of file InterestPointSelector.h.

References boundingBoxMode, boxMaxX, boxMaxY, boxMinX, boxMinY, index, pyramidMode, xDivision, and yDivision.

00022         : pyramidMode(false), boundingBoxMode(false)
00023     {
00024         if(config.substr(0,1) == std::string("P")) 
00025         {
00026             // pyramid selection
00027             Util::StringParser sp(config.substr(1,config.size()));
00028             xDivision = sp.GetInt('x', false, true);
00029             yDivision = sp.GetInt('#', false, true);
00030             index = sp.GetInt(' ');
00031             //std::cout << "SEL: " << index << " " << xDivision << " " << yDivision << std::endl;
00032             pyramidMode = true;
00033         }
00034         else if(config.substr(0,1) == std::string("B"))
00035         {
00036             // bounding box
00037             Util::StringParser sp(config.substr(1,config.size()));
00038             // subtract one, because public format is 1..n
00039             boxMinX = sp.GetDouble('#', true, true) - 1 - borderOffset;
00040             boxMaxX = sp.GetDouble('/', true, true) - 1 - borderOffset;
00041             boxMinY = sp.GetDouble('#', true, true) - 1 - borderOffset;
00042             boxMaxY = sp.GetDouble(' ') - 1 - borderOffset;
00043             boundingBoxMode = true;
00044         }
00045         else
00046         {
00047             throw "Unknown pointSelector";
00048         }
00049     }


Generated on Fri Mar 19 11:11:38 2010 for ImpalaSrc by  doxygen 1.5.1