Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

FilterEngine is not a member of cv but imgproc.hpp was included

I was trying to build the Face detection code here C++ implementation of Deva Ramanan's "Articulated Pose Estimation with Flexible Mixtures of Parts". But I ran into some problem

In file included from /home/richardyang/Documents/OpencvProject/Final/PartsBasedDetector/include/DepthConsistency.hpp:44:0, from /home/richardyang/Documents/OpencvProject/Final/PartsBasedDetector/src/DepthConsistency.cpp:39: /home/richardyang/Documents/OpencvProject/Final/PartsBasedDetector/include/types.hpp:56:29: error: ‘FilterEngine’ is not a member of ‘cv’ typedef std::vector<cv::ptr<cv::filterengine> > vectorFilterEngine;

But the file include every library it need.

#ifndef TYPES_HPP_
#define TYPES_HPP_
#include <vector>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
class MatlabIOContainer;
class Candidate;

// common typedefs
// 1D
typedef std::vector<int>            vectori;
typedef std::vector<float>          vectorf;
typedef std::vector<cv::Mat>        vectorMat;
typedef std::vector<cv::Point>      vectorPoint;
typedef std::vector<cv::Point3i>    vectorPoint3;
typedef std::vector<Candidate>      vectorCandidate;
typedef std::vector<MatlabIOContainer> vectorMatlabIOContainer;
typedef std::vector<cv::Ptr<cv::FilterEngine> > vectorFilterEngine;
// 2D
typedef std::vector<vectori>        vector2Di;
typedef std::vector<vectorf>        vector2Df;
typedef std::vector<vectorMat>      vector2DMat;
typedef std::vector<vectorMatlabIOContainer> vector2DMatlabIOContainer;
typedef std::vector<std::vector<cv::Ptr<cv::FilterEngine> > > vector2DFilterEngine;
// 3D
typedef std::vector<vector2Di>      vector3Di;
typedef std::vector<vector2DMat>    vector3DMat;
// 4D
typedef std::vector<vector3DMat>    vector4DMat;

I can't see what's going wrong, I checked my imgproc.hpp it doesn't contain any FilterEngine class, though the documentation says I should include imgproc.hpp [DOC] what is going wrong?(http://physics.nyu.edu/grierlab/manuals/opencv/classcv_1_1FilterEngine.html)