Ask Your Question

sabri1990's profile - activity

2014-11-05 07:46:26 -0600 received badge  Student (source)
2014-11-04 15:26:06 -0600 asked a question how to pass command line argument to excute this code in visual studio 2013
#include <opencv2/core/core.hpp>   
#include <opencv2/highgui/highgui.hpp>  
#include <iostream>

using namespace cv;
using namespace std;

int main(int argc, char** argv)
{
    if (argc != 2)
    {
        cout << " Usage: display_image ImageToLoadAndDisplay" << endl;
        return -1;
    }

    Mat image;
    image = imread("D:\photo\sab.jpg", CV_LOAD_IMAGE_COLOR);   // Read the file

    if (!image.data)                              // Check for invalid input
    {
        cout << "Could not open or find the image" << std::endl;
        return -1;
    }

    namedWindow("Display window", CV_WINDOW_AUTOSIZE);// Create a window for display.
    imshow("Display window", image);                   // Show our image inside it.

    waitKey(0);                                          // Wait for a keystroke in the window
    return 0;
}
2014-11-04 08:16:44 -0600 asked a question I tried grabcut in opencv2.4.9 is not work

C:\opencv\sources\samples\cpp\grabcut.cpp when i tried it pop up cmd appear and image doesnt display

2014-11-02 12:41:11 -0600 commented question what i do for this error

I used the latest version visual studio 2013 and opencv 2.4.9 but this code wrote in older version

2014-11-02 09:27:33 -0600 asked a question what i do for this error
void doEM1D(Mat& _im, Mat& probs,int num_models = 2,bool useRanges = true,Mat& lables = Mat()) {
    //Mat im; cvtColor(_im,im,CV_RGB2HSV);
    Mat im = _im;

    vector<vector<CvEM>> model(num_models);
    for(int i=0;i<num_models;i++) {
            model[i] = vector<CvEM>(3);
    }
    CvEMParams ps(1);

error C2065: 'CvEM' : undeclared identifier error C2923: 'std :: vector': 'CVEM' is not a valid type template argument for parameter '_Ty' error C2065: 'CvEMParams' : undeclared identifier