Ask Your Question

user10001's profile - activity

2017-03-01 09:57:37 -0600 asked a question static build of openCV for windows

I noted that after OpenCv 3.0, there is no static build with pre compiled version of OpenCV.

is there any plan to bring them back?

2015-04-09 03:28:45 -0600 commented question wrong OpenCL version detected

Where can I find the sample ocl speed test that you mentioned in this post? I am using OpenCV 3.0 beta.

2015-04-09 03:27:35 -0600 commented question opencl performance test

Where can I find the sample ocl speed test that you mentioned in this post? I am using OpenCV 3.0 beta.

2015-04-09 03:26:55 -0600 answered a question opencl performance test

Where can I find the sample ocl speed test that you mentioned in this post? I am using OpenCV 3.0 beta.

2015-04-08 09:35:44 -0600 received badge  Nice Question (source)
2015-04-08 06:06:10 -0600 asked a question using OpenCv 3.0 with OpenCl 1.1 devices

I want to use the new OpenCV 3.0 TAPI on a device that has OpenCL 1.1 capability. As far as I know, OpenCV is written on top of OpenCL 1.2.

  1. Can I use the TAPI with device that are compatible with OpenCL 1.1?
  2. Do I need to write my program in a specific way?
  3. Is there any sample code that I can use to see the performance gain(if any)? When I run my code, I want to see that it runs on GPU and as far as I know, the only to check it is to check the speed gain.
  4. Is there any support for an application to run on entirely on GPU?
2014-11-21 13:49:13 -0600 asked a question OpenCV ocl support for odroid board

I have an embedded board which uses Mali-T628 MP6 GPU which is OpenCL 1.1 compatible. Can I run OpenCV V 3.0 which has transparent OCL module on this board?

If yes, how can I do this?

2014-11-10 12:50:52 -0600 asked a question OpenCV with opencl support on odriod board

Can I use OpenCV OCL module runs on this board:

http://www.hardkernel.com/main/products/prdt_info.php?g_code=G140448267127

It seems that this board support OpenCL 1.1.

Which version of OpenCL does OpenCV needs?

2014-08-30 10:21:15 -0600 received badge  Student (source)
2014-08-25 06:39:38 -0600 commented answer Creating synchronized stereo videos using webcams

Can you please post a link to DIY hardware synchronization for PlayStation Eye?

2014-08-22 07:19:35 -0600 asked a question is this a bug in High Dynamic Range Imaging (OpenCV3 alpha)

I installed OpenCv 3.0 alpha and tried the sample code from this tutorial:

http://docs.opencv.org/trunk/doc/tutorials/photo/hdr_imaging/hdr_imaging.html

the result for tone mapped is not good and it generate a lot of false colours.

image description

also the fusion doesn't work and generate an error:

OpenCV Error: Assertion failed (y == 0 || (data && dims >= 1 && (unsigned)y < (u nsigned)size.p[0])) in cv::Mat::ptr, file C:\builds\master_PackSlave-win64-vc11- static\opencv\modules\core\include\opencv2/core/mat.inl.hpp, line 750

it is happening on this line in code (on pyrUp call) in my case where I have 7 images, it crashes when lvl is 4.:

for(int lvl = 0; lvl < maxlevel; lvl++) {
    Mat up;
    pyrUp(img_pyr[lvl + 1], up, img_pyr[lvl].size());
    img_pyr[lvl] -= up;
 }

I am testing this code on visual studio 2012 on windows 7. My project is a x64 bit project.

2014-03-01 13:34:06 -0600 asked a question Graphcut doesn't generate correct result

I have this code:

int main(int argc, char* argv[])
{

    Mat image0=imread("C:\\Working Dir\\Tests\\TestBlending\\shop0.jpg");
    Mat image1=imread("C:\\Working Dir\\Tests\\TestBlending\\shop1.jpg");

    image0.convertTo(image0,CV_32FC3,1/255.0);
    image1.convertTo(image1,CV_32FC3,1/255.0);

    // our corners are just at (0,0)
    cv::Point corner1;
    corner1.x = 0;
    corner1.y = 0;

    cv::Point corner2;
    corner2.x = 0;
    corner2.y = 0;

    std::vector<cv::Point> corners;

    corners.push_back(corner1);
    corners.push_back(corner2);

    std::vector<cv::Mat> masks;
    Mat mask0(image0.size(), CV_8U);
    mask0(Rect(0, 0, mask0.cols, mask0.rows)).setTo(255);

    Mat mask1(image1.size(), CV_8U);
    mask1(Rect(0, 0, mask1.cols, mask1.rows)).setTo(255);
    masks.push_back(mask0);
    masks.push_back(mask1);

    std::vector<cv::Mat> sources;

    sources.push_back(image0);
    sources.push_back(image1);

    cv::detail::GraphCutSeamFinder seam_finder;

    seam_finder.find(sources, corners, masks);

    printf("%lu\n", masks.size());
    for(int i = 0; i < masks.size(); i++)
    {
        std::cout << "MASK = "<< std::endl << " "  << masks.at(i) << std::endl << std::endl;
    }

    return 0;
}

and the images that I am using are:

enter image description here enter image description here

The masks that I am getting is all 255 for image 0 and all zero for image 1.

What is the problem and how can I fix it?

2014-03-01 09:30:01 -0600 asked a question problem using GraphCut algorithem

I have this code:

int main()
{    
     Mat image0=imread("C:\\Working Dir\\Tests\\TestBlending\\image0.jpg");
     Mat image1=imread("C:\\Working Dir\\Tests\\TestBlending\\image1.jpg");

     // our corners are just at (0,0)
     cv::Point corner1;
     corner1.x = 0;
     corner1.y = 0;

     cv::Point corner2;
     corner2.x = 0;
     corner2.y = 0;

     std::vector<cv::Point> corners;

     corners.push_back(corner1);
     corners.push_back(corner2);

     std::vector<cv::Mat> masks;
     Mat imageMask0;
     Mat imageMask1;
     masks.push_back(imageMask0);
     masks.push_back(imageMask1);

     std::vector<cv::Mat> sources;

     sources.push_back(image0);
     sources.push_back(image1);

     cv::detail::GraphCutSeamFinder *seam_finder = new cv::detail::GraphCutSeamFinder();
     seam_finder->find(sources, corners, masks);

     printf("%lu\n", masks.size());
     for(int i = 0; i < masks.size(); i++)
     {
          std::cout << "MASK = "<< std::endl << " "  << masks.at(i) << std::endl << std::endl;
      }

      return 0;
}

When I ran this code, I am getting this error:

OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)size.p[0] && (unsigned)(i1*DataType<_Tp>::channels) < (unsigned)(size.p[1]*channels()) && ((((sizeof(size_t)<<28)|0x8442211) >> ((DataType<_Tp>::depth) & ((1 << 3) - 1))*4) & 15) == elemSize1()) in unknown function, file C:\slave\builds\WinInstallerMegaPack\src\opencv\modules\core\include\opencv2/core/mat.hpp, line 537

stack at the place that it fails is:

    [Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]    
TestApplication.exe!_CxxThrowException(void * pExceptionObject, const _s__ThrowInfo * pThrowInfo) Line 152  C++

TestApplication.exe!cv::error(class cv::Exception const &)  Unknown

TestApplication.exe!cv::Mat::at<class cv::Point3_<float> >(int,int) Unknown

TestApplication.exe!cv::detail::GraphCutSeamFinder::Impl::findInPair(unsigned int,unsigned int,class cv::Rect_<int>)    Unknown

TestApplication.exe!cv::detail::PairwiseSeamFinder::run(void)   Unknown

TestApplication.exe!cv::detail::PairwiseSeamFinder::find(class std::vector<class cv::Mat,class std::allocator<class cv::Mat> > const &,class std::vector<class cv::Point_<int>,class std::allocator<class cv::Point_<int> > > const &,class std::vector<class cv::Mat,class std::allocator<class cv::Mat> > &)  Unknown

TestApplication.exe!cv::detail::GraphCutSeamFinder::Impl::find(class std::vector<class cv::Mat,class std::allocator<class cv::Mat> > const &,class std::vector<class cv::Point_<int>,class std::allocator<class cv::Point_<int> > > const &,class std::vector<class cv::Mat,class std::allocator<class cv::Mat> > &)    Unknown

TestApplication.exe!cv::detail::GraphCutSeamFinder::find(class std::vector<class cv::Mat,class std::allocator<class cv::Mat> > const &,class std::vector<class cv::Point_<int>,class std::allocator<class cv::Point_<int> > > const &,class std::vector<class cv::Mat,class std::allocator<class cv::Mat> > &)  Unknown

TestApplication.exe!main(int argc, char * * argv) Line 58   C++

I am using OpenCV 2.4.6 (C++ on visual studio 2012)

What is wrong with this code that generate this error?

Is there any sampole code to show how to use GraphCut to find seam line between two image before blending?

edit1

I did some digging and found that the problem is in this line:

   subimg1.at<Point3f>(y + gap, x + gap) = img1.at<Point3f>(y1, x1);

This is in seam_finders.cpp line 1241.

The problem ... (more)

2014-01-27 13:48:29 -0600 commented question where is OpenCV 3.0

Thanks. Do you know when it will release officially for public use? I think the github version is beta and we should wait for stable version.

2014-01-27 10:19:04 -0600 received badge  Editor (source)
2014-01-27 10:10:52 -0600 asked a question where is OpenCV 3.0

Where can I download OpenCv 3? When it will release officially?

Does it have the same licensing structure as opencv 2.x?

2013-10-18 12:27:47 -0600 received badge  Scholar (source)
2013-10-18 06:08:57 -0600 asked a question Missing opencv2/core/utility.hpp

I am using opencv 2.4.6 which I believe is the latest version.

I am trying to test with ocl module and developing an application like this:

https://github.com/nzjrs/opencv/blob/master/samples/ocl/surf_matcher.cpp

But I am getting error that

opencv2/core/utility.hpp

is not available. Looking at opencv directory, I can see that it is not in opencv include directory.

Where can I download it?