Ask Your Question

Yoga's profile - activity

2019-09-19 03:10:39 -0600 received badge  Notable Question (source)
2017-12-07 13:02:05 -0600 received badge  Popular Question (source)
2016-02-29 08:37:50 -0600 commented question VS 2015 C++ imwrite exception 0xC0000005

Hi Eduardo,

thanks that helped, by mistake I set the same lib under the Linker settings for Debug and Release settings. After I changed opencv_world310.lib into opencv_world310d.lib (Linker-->Input-->Additional dependencies)

it worked, thanks a lot!

2016-02-29 07:59:47 -0600 asked a question VS 2015 C++ imwrite exception 0xC0000005

Dear all,

I am new to OpenCV and tried to create a simple opencv application using OpenCV31 under Visual Studio Community 2015. I created a C++ Win32 console application, here is my code:

int main(int argc, char* argv[])
{
Mat testImg(50, 50, CV_8U);
imwrite("C:\Users\Me\TestOut.jpg", testImg);
return 0;
}

But if I run this I get an access violation:

Exception at 0x00007FFAC9994D61 (opencv_world310.dll) 0xC0000005: Access violation on reading on position 0x00000201A183B000.

This happens if I use Visual Studio 2015 with Debug settings. If I switch to Release settings then the code works!?!

What goes wrong here?

Thanks for any help!

2016-02-24 09:06:40 -0600 commented answer Barrel distorsion for Google cardboard?

Hi theodore,

sorry for beeing so lately, I was on vacation...

Thanks so much for the code snippet!! I will take a look at it!

2016-02-04 07:08:21 -0600 received badge  Editor (source)
2016-02-04 07:05:15 -0600 asked a question Barrel distorsion for Google cardboard?

Dear all,

I have a Fuji W3 stereo cam. I can get two images out of it. One for left eye and one for right eye. Now I want to watch the stereo image on my Google cardboard with my Galaxy S4 or Galaxy Note 4. Is there any way using OpenCV to give a barrel distortion to both images to see my stereo image correctly through the Google cardboard viewer?

If you look here:

http://krpano.com/docu/images/krpano1...

you can see that the left and right eye image has a barrel distortion applied, if you watch this image with Google cardboard it appears correctly in your eyes. And this is what I need to do with my own stereo images as well.

So again can I use OpenCV to apply this barrel distortion to my image? If yes - how?

Thanks a lot!

2015-09-28 02:38:45 -0600 asked a question Stereo rectification without calibration?

Dear all,

I have two older cameras (Canon Ixus 860IS) mounted as a stereo rig. Now I want to use OpenCV to calculate the alignmment of left and right image and then watch the image using a stereo viewer. So I don't want to calculate e.g. where an object is in 3D space, I just want to view the images. I read the stereo tutorials here on opencv.org but they show only the way doing a camera calibration first. Normally I do the stereo aligment using a free software called SPM (http://stereo.jpn.org/eng/stphmkr/). SPM also does not need any camera calibration. I can open the left/right image from any stereo rig and SPM can do the alignment/adjustment. But I need a way to do this without user interaction. So I want to create a Windows Command Line application which can do the stereo alignment for me. The main question I have is how can I do the stereo alignment (like in SPM) without camera calibration? So my App should (same as SPM is doing) correct differences in rotation, size, horizontal/vertical perspective rotation. What steps in OpenCV are necessary for this and which functions I can use?

Thanks a lot for any help!