Ask Your Question

thomas11's profile - activity

2015-11-06 01:42:00 -0600 received badge  Notable Question (source)
2013-11-29 16:03:17 -0600 received badge  Popular Question (source)
2013-01-24 20:59:23 -0600 asked a question Setting up OpenCv for multicore application

Dear All, In matlab. we can setup Matlab for multicore utility and run startMatlabPool() for start running the pool. How can I have the same thing in OpenCV? How can I setup? Thanks

2013-01-10 02:00:17 -0600 received badge  Student (source)
2013-01-10 01:45:48 -0600 asked a question Grabcut and foreground image extraction

Dear All, According to the documents, Grabcut is interactive algorithm. The user has to input the foreground rectangle roughly and the algo cut the foreground image. Is there a way to use Grabcut to extract the foreground image automatically? Thanks

2013-01-08 20:25:39 -0600 commented answer cv::Mat and OpenCV version

Yeah it should be straightforward. I tried two approaches. (1)Mat original = cvCreateImage(cvSize(col_size, row_size), IPL_DEPTH_8U,1); for (int y = 0; y < h; y++) { for (int x = 0; x < w; x++) {

  original.data[y * original.step + x] = (char)20;

} }

Then I look at the original.data, it is unavailable synchronous data.

IplImage *opcvImg = cvCreateImage(cvSize(col_size, row_size), IPL_DEPTH_8U,1);

Mat original = Mat(opcvImg, true);

opcvImg = ImageQueue::getQueue();//get the IplImage from the queue, the data is perfect

Mat original = cvarrToMat(opcvImg);

OR

Mat original = Mat(opcvImg, true);

Then original shows unavailable synchronous data. Thanks

2013-01-08 01:16:58 -0600 asked a question cv::Mat and OpenCV version

Dear All, What is the opencv version with which we can start use cv::Mat? My opencv version is 2.4.1 and I am trying to convert from IplImage* to cv::Mat. I always have the error of unavailable synchronous data. Thanks

2013-01-07 03:50:11 -0600 asked a question Converting from IplImage* to cv::Mat

Dear all, I have OpenCV image, get the image data from the Queue.

IplImage *opcvImg = cvCreateImage(cvSize(col_size, row_size), IPL_DEPTH_8U,1); opcvImg = ImageQueue::getQueue(); Upto here, in the watch window I can see that opcvImg has all information.

But when I convert the IplImage* to cv::Mat as Mat matData(opcvImg, true); OR Mat matData = cvarrToMat(opcvImg); matData in the watch window shows Unavailable syschronous data.

Let me put in some more information, actually the code runs in a separate thread as follow

void processingbyWatershed::run() { IplImage *opcvImg = cvCreateImage(cvSize(col_size, row_size), IPL_DEPTH_8U,1);

while(1)
{

    if(!ImageQueue::isEmpty())
    {
         opcvImg = ImageQueue::getQueue();
        Mat original(opcvImg, true);
        //Mat original = cvarrToMat(opcvImg);
    }
}

}

What could be the problem? Thanks

2013-01-04 01:17:56 -0600 asked a question Conversion from IplImage to Mat

Dear all,

It is simple but can't make it through. I convert to Mat from IplImage

IplImage *opcvImg = cvCreateImage(cvSize(col_size, row_size), IPL_DEPTH_8U,1);

opcvImg = ImageQueue::getQueue();

Mat original(opcvImg, true);

After this, when I see the original in the watch window, it shows unavailable. I did in Ubuntu. What could be the problem? Thanks

2012-12-20 22:10:59 -0600 asked a question Blob detection in Opencv using WaterShed and Confidence Measurement

Dear All, I am working on Blob detection and my boss said to use OpenCV for my project. I did research and found that I want to implement WaterShed and Confidence Measurement for Blob detection. A few programs are found using WaterShed in OpenCV but can't find the Blob detection with Confidence Measurement. Any idea how can I implement confidence measurement blob detection in OpenCV. Thanks