00001 #ifndef Impala_Core_Feature_Surf_h
00002 #define Impala_Core_Feature_Surf_h
00003
00004 #include "Core/Feature/GetColorChannels.h"
00005 #include "Core/Feature/DSurf.h"
00006
00007 namespace Impala
00008 {
00009 namespace Core
00010 {
00011 namespace Feature
00012 {
00013
00016 void
00017 CalculateSurfDescriptors(Array::Array2dVec3UInt8* inputNoBorder,
00018 Geometry::InterestPointList& pointList,
00019 std::string descriptor, int haarSize,
00020 int components, int spaciality)
00021 {
00022 descriptor = StringReplace(descriptor, "surf", "");
00023 std::vector<Array::Array2dScalarReal64*> channels =
00024 GetColorChannels(inputNoBorder, descriptor);
00025 for(int i=0 ; i<channels.size() ; ++i)
00026 {
00027 DSurf(channels[i], pointList, haarSize, components, spaciality);
00028 delete channels[i];
00029 }
00030 }
00031
00032 }
00033 }
00034 }
00035
00036 #endif