Ask Your Question

Revision history [back]

identifier "cvSubdivDelaunay2DInsert" is undefined

the code throws exception

#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include "PAW.h"
#include "Triangle.h"
#include <cstdio>
#include <iostream>
#include <stdio.h>
#include <time.h>
#include <string>
#include <algorithm>
#include <set>
///
//insert srcLandmark points in Delaunay subdivision
        for (int i = 0; i<pointsToWarp.size(); i++){
            double x = pointsToWarp.at(i).x;
            double y = pointsToWarp.at(i).y;
            points.push_back(cvPoint(x, y));
            CvPoint2D32f fp = cvPoint2D32f(x, y);
            cvSubdivDelaunay2DInsert(subdiv, fp);
        }
////