I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
1 | initial version |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
2 | No.2 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
using namespace std;
int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
for(unsigned int i=0;i<contours.size(),i++) {="" cout="" <<="" "#="" of="" contour="" points:="" "="" <<="" contours[i].size()="" <<="" endl="" ;<="" p="">
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
3 | No.3 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
using namespace std;
int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
for(unsigned int i=0;i<contours.size(),i++) {="" cout="" <<="" "#="" of="" contour="" points:="" "="" <<="" contours[i].size()="" <<="" endl="" ;<="" p="">
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
4 | No.4 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
#include<opencv2/highgui/highgui.hpp>
using namespace std;
int std;`int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
for(unsigned
or(unsigned
int { cout << "# of contour points: " << contours[i].size() << endl ;
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
5 | No.5 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
#include<opencv2/highgui/highgui.hpp>
opencv2/imgproc/imgproc.hpp
using namespace std;`int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
or(unsigned int i=0;i<contours.size(),i++)
{ cout << "# of contour points: " << contours[i].size() << endl ;
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
6 | No.6 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
#include<opencv2/highgui/highgui.hpp>
#include<opencv2 highgui="" highgui.hpp="">
opencv2/imgproc/imgproc.hpp
using namespace std;`int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
or(unsigned int i=0;i<contours.size(),i++)
{ cout << "# of contour points: " << contours[i].size() << endl ;
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
7 | No.7 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
#include<opencv2 highgui="" highgui.hpp="">
using namespace std;`int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
or(unsigned int i=0;i<contours.size(),i++)
{ cout << "# of contour points: " << contours[i].size() << endl ;
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
8 | No.8 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
#include<opencv2 highgui="" highgui.hpp="">
#include<opencv2/highgui/highgui.hpp>
#include<opencv/cv.h>
#includeopencv2/imgproc/imgproc.hpp
#include <opencv2\opencv.hpp>
#include<stdio.h>
#include<iostream>
using namespace std;`int main()
{
// open the image
}
cvWaitKey(0);
}
9 | No.9 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
#include<opencv2/highgui/highgui.hpp>
#include<opencv/cv.h>
#includeopencv2/imgproc/imgproc.hpp
#include <opencv2\opencv.hpp>
#include<stdio.h>
#include<iostream>
using namespace std;`int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<Point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
or(unsigned int i=0;i<contours.size(),i++)
{
cout << "# of contour points: " << contours[i].size() << endl ;
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
10 | No.10 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.
#include<opencv2/highgui/highgui.hpp>
#include<opencv/cv.h>
#includeopencv2/imgproc/imgproc.hpp
#include <opencv2\opencv.hpp>
#include<stdio.h>
#include<iostream>
using namespace std;`int std;
int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<Point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
or(unsigned int i=0;i<contours.size(),i++)
{
cout << "# of contour points: " << contours[i].size() << endl ;
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
11 | No.11 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries.libraries.
EDIT:-I had used all the instructions given below my contourArea() is still showing undefined,please help?
#include<opencv2/highgui/highgui.hpp>
#include<opencv/cv.h>
#includeopencv2/imgproc/imgproc.hpp
#include <opencv2\opencv.hpp>
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<Point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
or(unsigned int i=0;i<contours.size(),i++)
{
cout << "# of contour points: " << contours[i].size() << endl ;
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
12 | No.12 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries. EDIT:-I had used all the instructions given below my contourArea() is still showing undefined,please help?
#include<opencv2/highgui/highgui.hpp>
#include<opencv/cv.h>
#includeopencv2/imgproc/imgproc.hpp
#include <opencv2\opencv.hpp>
<opencv2/opencv.hpp>
#include<stdio.h>
#include<iostream>
using namespace std;
using namespace cv;
int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<Point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
or(unsigned int i=0;i<contours.size(),i++)
{
cout << "# of contour points: " << contours[i].size() << endl ;
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}
13 | No.13 Revision |
I am not able to add open cv blobs library with visual studio 2013, i need to calculate contourArea which needs blobs library ,how can i add those libraries. EDIT:-I had used all the instructions given below my contourArea() is still showing undefined,please help?
#include <opencv2/opencv.hpp>
#include<stdio.h>
#include<iostream>
using namespace std;
using namespace cv;
int main()
{
// open the image
cv::Mat &image= cv::imread("cancer.jpg");
vector<vector<Point> > contours;
cv::Canny(image, // gray-level image
contours, // output contours
125, // low threshold
350);
or(unsigned for(unsigned int i=0;i<contours.size(),i++)
{
cout << "# of contour points: " << contours[i].size() << endl ;
for(unsigned int j=0;j<contours[i].size(),j++)
{
cout << "Point(x,y)=" << contours[i][j] << endl;
}
cout << " Area: " << contourArea(contours[i]) << endl;//its contourArea() is undefined
}
cvWaitKey(0);
}