Replaced CV_PURE_PROPERTY macros with the code

pull/189/head
Maksim Shabunin 10 years ago
parent 63a86ac44e
commit 05405e3dca
  1. 49
      modules/face/include/opencv2/face/facerec.hpp
  2. 18
      modules/rgbd/include/opencv2/rgbd.hpp
  3. 30
      modules/ximgproc/include/opencv2/ximgproc/edge_filter.hpp

@ -20,13 +20,19 @@ namespace cv { namespace face {
class CV_EXPORTS_W BasicFaceRecognizer : public FaceRecognizer
{
public:
CV_PURE_PROPERTY(int, NumComponents)
CV_PURE_PROPERTY(double, Threshold)
CV_PURE_PROPERTY_RO(std::vector<cv::Mat>, Projections)
CV_PURE_PROPERTY_RO(cv::Mat, Labels)
CV_PURE_PROPERTY_RO(cv::Mat, EigenValues)
CV_PURE_PROPERTY_RO(cv::Mat, EigenVectors)
CV_PURE_PROPERTY_RO(cv::Mat, Mean)
/** @see setNumComponents */
virtual int getNumComponents() const = 0;
/** @copybrief getNumComponents @see getNumComponents */
virtual void setNumComponents(int val) = 0;
/** @see setThreshold */
virtual double getThreshold() const = 0;
/** @copybrief getThreshold @see getThreshold */
virtual void setThreshold(double val) = 0;
virtual std::vector<cv::Mat> getProjections() const = 0;
virtual cv::Mat getLabels() const = 0;
virtual cv::Mat getEigenValues() const = 0;
virtual cv::Mat getEigenVectors() const = 0;
virtual cv::Mat getMean() const = 0;
};
/**
@ -95,13 +101,28 @@ CV_EXPORTS_W Ptr<BasicFaceRecognizer> createFisherFaceRecognizer(int num_compone
class CV_EXPORTS_W LBPHFaceRecognizer : public FaceRecognizer
{
public:
CV_PURE_PROPERTY(int, GridX)
CV_PURE_PROPERTY(int, GridY)
CV_PURE_PROPERTY(int, Radius)
CV_PURE_PROPERTY(int, Neighbors)
CV_PURE_PROPERTY(double, Threshold)
CV_PURE_PROPERTY_RO(std::vector<cv::Mat>, Histograms)
CV_PURE_PROPERTY_RO(cv::Mat, Labels)
/** @see setGridX */
virtual int getGridX() const = 0;
/** @copybrief getGridX @see getGridX */
virtual void setGridX(int val) = 0;
/** @see setGridY */
virtual int getGridY() const = 0;
/** @copybrief getGridY @see getGridY */
virtual void setGridY(int val) = 0;
/** @see setRadius */
virtual int getRadius() const = 0;
/** @copybrief getRadius @see getRadius */
virtual void setRadius(int val) = 0;
/** @see setNeighbors */
virtual int getNeighbors() const = 0;
/** @copybrief getNeighbors @see getNeighbors */
virtual void setNeighbors(int val) = 0;
/** @see setThreshold */
virtual double getThreshold() const = 0;
/** @copybrief getThreshold @see getThreshold */
virtual void setThreshold(double val) = 0;
virtual std::vector<cv::Mat> getHistograms() const = 0;
virtual cv::Mat getLabels() const = 0;
};
/**

@ -466,16 +466,14 @@ namespace rgbd
static Ptr<Odometry> create(const String & odometryType);
//TODO: which properties are common for all Odometry successors?
CV_PURE_PROPERTY_S(cv::Mat, CameraMatrix)
// CV_PURE_PROPERTY(double, MinDepth)
// CV_PURE_PROPERTY(double, MaxDepth)
// CV_PURE_PROPERTY(double, MaxDepthDiff)
// CV_PURE_PROPERTY_S(cv::Mat, IterationCounts)
// CV_PURE_PROPERTY(double, MaxPointsPart)
CV_PURE_PROPERTY(int, TransformType)
// CV_PURE_PROPERTY(double, MaxTranslation)
// CV_PURE_PROPERTY(double, MaxRotation)
/** @see setCameraMatrix */
virtual cv::Mat getCameraMatrix() const = 0;
/** @copybrief getCameraMatrix @see getCameraMatrix */
virtual void setCameraMatrix(const cv::Mat &val) = 0;
/** @see setTransformType */
virtual int getTransformType() const = 0;
/** @copybrief getTransformType @see getTransformType */
virtual void setTransformType(int val) = 0;
protected:
virtual void

@ -217,12 +217,30 @@ public:
CV_WRAP static Ptr<AdaptiveManifoldFilter> create();
CV_PURE_PROPERTY(double, SigmaS)
CV_PURE_PROPERTY(double, SigmaR)
CV_PURE_PROPERTY(int, TreeHeight)
CV_PURE_PROPERTY(int, PCAIterations)
CV_PURE_PROPERTY(bool, AdjustOutliers)
CV_PURE_PROPERTY(bool, UseRNG)
/** @see setSigmaS */
virtual double getSigmaS() const = 0;
/** @copybrief getSigmaS @see getSigmaS */
virtual void setSigmaS(double val) = 0;
/** @see setSigmaR */
virtual double getSigmaR() const = 0;
/** @copybrief getSigmaR @see getSigmaR */
virtual void setSigmaR(double val) = 0;
/** @see setTreeHeight */
virtual int getTreeHeight() const = 0;
/** @copybrief getTreeHeight @see getTreeHeight */
virtual void setTreeHeight(int val) = 0;
/** @see setPCAIterations */
virtual int getPCAIterations() const = 0;
/** @copybrief getPCAIterations @see getPCAIterations */
virtual void setPCAIterations(int val) = 0;
/** @see setAdjustOutliers */
virtual bool getAdjustOutliers() const = 0;
/** @copybrief getAdjustOutliers @see getAdjustOutliers */
virtual void setAdjustOutliers(bool val) = 0;
/** @see setUseRNG */
virtual bool getUseRNG() const = 0;
/** @copybrief getUseRNG @see getUseRNG */
virtual void setUseRNG(bool val) = 0;
};
/** @brief Factory method, create instance of AdaptiveManifoldFilter and produce some initialization routines.

Loading…
Cancel
Save