Reimplemented in Impala::Core::Geometry::MaskedInterestPointSelector. Definition at line 52 of file InterestPointSelector.h. References boundingBoxMode, boxMaxX, boxMaxY, boxMinX, boxMinY, index, pyramidMode, xDivision, and yDivision. 00053 { 00054 if(pyramidMode) 00055 { 00056 int xIndex = index % xDivision; 00057 int yIndex = index / xDivision; 00058 00059 int minX = (xIndex * imageWidth) / xDivision; 00060 int maxX = ((xIndex+1) * imageWidth) / xDivision; 00061 int minY = (yIndex * imageHeight) / yDivision; 00062 int maxY = ((yIndex+1) * imageHeight) / yDivision; 00063 00064 //std::cout << "SEL: " << index << " " << xDivision << " " << yDivision << std::endl; 00065 //std::cout << minX << " " << maxX << " " << minY << " " << maxY << std::endl; 00066 if((x >= minX) && (x < maxX) && 00067 (y >= minY) && (y < maxY)) 00068 { 00069 return true; 00070 } 00071 } 00072 else if(boundingBoxMode) 00073 { 00074 if((x >= boxMinX) && (x <= boxMaxX) && 00075 (y >= boxMinY) && (y <= boxMaxY)) 00076 { 00077 return true; 00078 } 00079 } 00080 return false; 00081 }
|