Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to add open cv blobs library in Visual studio 2013.

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.

how to add open cv blobs library in Visual studio 2013.

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 core="" core.hpp="">

include<opencv2 highgui="" highgui.hpp="">

include<opencv cv.h="">

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);

for(unsigned int i=0;i<contours.size(),i++) {="" cout="" &lt;&lt;="" "#="" of="" contour="" points:="" "="" &lt;&lt;="" contours[i].size()="" &lt;&lt;="" 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);

}

how to add open cv blobs library in Visual studio 2013.

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 core="" core.hpp="">

include<opencv2 highgui="" highgui.hpp="">

include<opencv cv.h="">

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);

for(unsigned int i=0;i<contours.size(),i++) {="" cout="" &lt;&lt;="" "#="" of="" contour="" points:="" "="" &lt;&lt;="" contours[i].size()="" &lt;&lt;="" 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);

}

how to add open cv blobs library in Visual studio 2013.

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 core="" core.hpp="">

include<opencv2 highgui="" highgui.hpp="">

#include<opencv2/highgui/highgui.hpp>

include<opencv cv.h="">

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);

for(unsigned

or(unsigned int i=0;i<contours.size(),i++) {="" cout="" &lt;&lt;="" "#="" of="" contour="" points:="" "="" &lt;&lt;="" contours[i].size()="" &lt;&lt;="" endl="" ;<="" p="">

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);

}

how to add open cv blobs library in Visual studio 2013.

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="">

opencv2/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);

}

how to add open cv blobs library in Visual studio 2013.

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="">

opencv2/imgproc/imgproc.hpp

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);

}

how to add open cv blobs library in Visual studio 2013.

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.hppinclude<opencv2 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);

}

click to hide/show revision 8
No.8 Revision

how to add open cv blobs library in Visual studio 2013.

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="">

include<opencv2 imgproc="" imgproc.hpp="">

include <opencv2\opencv.hpp>

include<stdio.h>

include<iostream>

 #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> vector<vector<Point> > contours; cv::Canny(image, // gray-level image contours, // output contours 125, // low threshold 350);

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);

}

}

cvWaitKey(0);

}

click to hide/show revision 9
No.9 Revision

how to add open cv blobs library in Visual studio 2013.

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);
 }
click to hide/show revision 10
No.10 Revision

how to add open cv blobs library in Visual studio 2013.

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);
 }

how to add open cv blobs library in Visual studio 2013.

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);
    }
click to hide/show revision 12
No.12 Revision

how to add open cv blobs library in Visual studio 2013.

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);
    }
click to hide/show revision 13
No.13 Revision

how to add open cv blobs library in Visual studio 2013.

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);
    }