|
@@ -62,6 +62,11 @@ LFonHSG::~LFonHSG()
|
|
|
/** free memory of descriptors **/
|
|
|
}
|
|
|
|
|
|
+int LFonHSG::getDescSize() const
|
|
|
+{
|
|
|
+ return lf->getDescSize();
|
|
|
+}
|
|
|
+
|
|
|
void LFonHSG::getPositionsOnHSG (const unsigned int imageWidth, const unsigned int imageHeight, VVector& positions) const
|
|
|
{
|
|
|
if (sampleScaling < 1) {
|
|
@@ -80,10 +85,10 @@ void LFonHSG::getPositionsOnHSG (const unsigned int imageWidth, const unsigned i
|
|
|
|
|
|
for (unsigned int j = sampleScaling; j <= (imageHeight - sampleScaling); j += sampleScaling) {
|
|
|
for (unsigned int i = (oddRow ? sampleScaling + sampleScaling / 2 : sampleScaling); i <= (imageWidth - sampleScaling); i += sampleScaling) {
|
|
|
- pos[ 0] = i;
|
|
|
- pos[ 1] = j;
|
|
|
- pos[ 2] = *it;
|
|
|
- pos[ 3] = 0;
|
|
|
+ pos[ 0 ] = i;
|
|
|
+ pos[ 1 ] = j;
|
|
|
+ pos[ 2 ] = *it;
|
|
|
+ pos[ 3 ] = 0;
|
|
|
positions.push_back (pos);
|
|
|
}
|
|
|
oddRow = !oddRow;
|
|
@@ -113,6 +118,7 @@ int LFonHSG::extractFeatures (const NICE::Image & img, VVector & features, VVect
|
|
|
void LFonHSG::visualizeFeatures (NICE::Image & mark, const VVector & positions, size_t color) const
|
|
|
{
|
|
|
// TODO: Implementierung des gewaehlten Descriptortyps aufrufen.
|
|
|
+ throw NICE::Exception( "LFonHSG::visualizeFeatures currently not implemented." );
|
|
|
}
|
|
|
|
|
|
|