From: <jl...@us...> - 2009-05-14 23:09:24
|
Revision: 15462 http://personalrobots.svn.sourceforge.net/personalrobots/?rev=15462&view=rev Author: jleibs Date: 2009-05-14 23:09:13 +0000 (Thu, 14 May 2009) Log Message: ----------- Adding neven parameters for min/max face width. Modified Paths: -------------- pkg/trunk/3rdparty/neven/include/neven/neven.h pkg/trunk/3rdparty/neven/src/neven.cpp Modified: pkg/trunk/3rdparty/neven/include/neven/neven.h =================================================================== --- pkg/trunk/3rdparty/neven/include/neven/neven.h 2009-05-14 22:48:33 UTC (rev 15461) +++ pkg/trunk/3rdparty/neven/include/neven/neven.h 2009-05-14 23:09:13 UTC (rev 15462) @@ -45,7 +45,8 @@ btk_DCR* dcr_; public: - FaceDetector(uint32_t max_width, uint32_t max_height, uint32_t max_faces, ProcessingConfig conf); + FaceDetector(uint32_t max_width, uint32_t max_height, uint32_t max_faces, + uint32_t min_face_width, uint32_t max_face_width, ProcessingConfig conf); ~FaceDetector(); std::vector<Face> findFaces(char* img, uint32_t width, uint32_t height); Modified: pkg/trunk/3rdparty/neven/src/neven.cpp =================================================================== --- pkg/trunk/3rdparty/neven/src/neven.cpp 2009-05-14 22:48:33 UTC (rev 15461) +++ pkg/trunk/3rdparty/neven/src/neven.cpp 2009-05-14 23:09:13 UTC (rev 15462) @@ -15,9 +15,14 @@ using namespace neven; -FaceDetector::FaceDetector(uint32_t max_width, uint32_t max_height, uint32_t max_faces, ProcessingConfig conf) +FaceDetector::FaceDetector(uint32_t max_width, uint32_t max_height, uint32_t max_faces, + uint32_t min_face_width, uint32_t max_face_width, ProcessingConfig conf) { + fd_ = NULL; + sdk_ = NULL; + dcr_ = NULL; + btk_SDKCreateParam sdkParam = btk_SDK_defaultParam(); sdkParam.fpMalloc = malloc; sdkParam.fpFree = free; @@ -55,7 +60,7 @@ fdParam.maxDetectableFaces = max_faces; status = btk_FaceFinder_create( sdk_, &fdParam, &fd_ ); - btk_FaceFinder_setRange(fd_, 20, 240/2); /* set eye distance range */ + btk_FaceFinder_setRange(fd_, min_face_width, max_face_width); /* set eye distance range */ // make sure everything went welln if (status != btk_STATUS_OK) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |