sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: OpenCL SURF_OCL detecting no features with Intel Processor Graphics
Labels: bug,auto-transferred,priority: normal,affected: 2.4,category: ocl

Transferred from http://code.opencv.org/issues/4121

```
|| Michael Gopshtein on 2015-01-15 12:50
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: ocl
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: Any / Windows
```
## OpenCL SURF_OCL detecting no features with Intel Processor Graphics

```
I'm using version 2.4.10. When I perform "ocl::getOpenCLDevices" I get the following devices listed:
0: "Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz:Intel(R) Corporation"
1: "Intel(R) HD Graphics 4600:Intel(R) Corporation"
2: "Quadro K2100M:NVIDIA Corporation"

I tried selecting all three devices with "ocl::setDevice()". Next I'm running "ocl::SURF_OCL" algorithm to detect keypoint of given image. When I select devices 0 (main CPU) or 2 (Nvidia card) it seems to work fine although providing different results.
Once I select device #1 (the Intel GPU card embedded on the CPU), same code on same picture detects 0 keypoints.

Project was compiled with all of "WITH_OPENCL", "WITH_OPENCLLAMDBLAS" and "WITH_OPENCLAMDFFT" selected, Visual Studio 2014. Both 32 and 64 bit.

Thanks,
Michael
```
## History
##### Michael Gopshtein on 2015-01-15 12:53

```
It's Visual Studio 2013 (not 2014)
```
##### Vadim Pisarevsky on 2015-04-27 13:08

```
-   Category set to ocl
```
Repository: opencv
Issue: ocl::BFMatcher_OCL::knnMatch fails when trained first [2.4.10]
Labels: bug,auto-transferred,priority: normal,affected: 2.4,category: ocl

Transferred from http://code.opencv.org/issues/4132

```
|| Michael Gopshtein on 2015-01-18 08:33
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: ocl
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: x86 / Windows
```
## ocl::BFMatcher_OCL::knnMatch fails when trained first [2.4.10]

```
In the following block the call to "knnMatch" fails:
<pre>
   ocl::BFMatcher_OCL matcher;
   vector< vector<DMatch> > matches;

   std::vector<ocl::oclMat> trainm(1);
   trainm[0] = descriptors1;
   matcher.add(trainm);

   matcher.knnMatch(descriptors2, matches, 2);
</pre>

Without "train" it works:
<pre>
   matcher.knnMatch(descriptors2, descriptors1, matches, 2);
</pre>

Exception:
* _interlockedExchangeAdd [Line 899]
* cv::ocl::oclMat::release() [Line 601]
* cv::ocl::oclMat::operator=() [Line 244]
* cv::ocl::BruteForceMatcher_OCL_base::makeGpuCollection() [Line 635]
* cv::ocl::BruteForceMatcher_OCL_base::knnMatch() [Line 944]

Works fine on 64bit. Visual Studio 2013.

Full code:
<pre>
int main(int argc, char *argv[]) {
   ocl::DevicesInfo devs;
   ocl::getOpenCLDevices(devs, ocl::CVCL_DEVICE_TYPE_ALL);
   ocl::setDevice(devs[2]); // Quadro K2100M : NVIDIA Corporation

   Mat img1, img1BW, img2, img2BW;
   img1 = imread("C:\\Work\\Projects\\OpenCVFeatureMatching\\images\\pizza1.png");
   img2 = imread("C:\\Work\\Projects\\OpenCVFeatureMatching\\images\\pizza2.png");
   cvtColor(img1, img1BW, COLOR_RGB2GRAY);
   cvtColor(img2, img2BW, COLOR_RGB2GRAY);

   ocl::oclMat oclImg1(img1BW);
   ocl::oclMat oclImg2(img2BW);
   ocl::oclMat points1, points2;     // THIS LINE WORKS

   ocl::SURF_OCL detector1;
   ocl::SURF_OCL detector2;
   ocl::oclMat descriptors1, descriptors2;
   detector1(oclImg1, ocl::oclMat(), points1, descriptors1);
   detector2(oclImg2, ocl::oclMat(), points2, descriptors2);

   ocl::BFMatcher_OCL matcher;
   vector< vector<DMatch> > matches;

   std::vector<ocl::oclMat> trainm(1);
   trainm[0] = descriptors1;
   matcher.add(trainm);

   matcher.knnMatch(descriptors2, matches, 2);
   return 0;
}
</pre>

Thanks
```
## History
Repository: opencv
Issue: Extension of fastNlMeansDenoising to accept 16-bit inputs
Labels: auto-transferred,feature,priority: low,category: photo

Transferred from http://code.opencv.org/issues/4143

```
|| Iliya Romm on 2015-01-22 11:27
|| Priority: Normal
|| Affected: None
|| Category: photo
|| Tracker: Feature
|| Difficulty: 
|| PR: 
|| Platform: None / None
```
## Extension of fastNlMeansDenoising to accept 16-bit inputs

```
Certain cameras used in research applications (in my case - an infrared camera) output grayscale images of up to 16-bit (in my case, 14). Currently the application of the filter on these data requires quantization to 8 bits, which results in the loss of vital experimental data. It would therefore be very beneficial to have 16-bit support to allow application of the filter on the original "more than 8"-bit data.

*****

I can contribute to the task by testing the output against equivalent MATLAB CPU implementations (my knowledge in C\C++ is simply not sufficient to do this on my own, yet my considerably better MATLAB knowledge can be put to use).
```
## History
##### Iliya Romm on 2015-01-22 11:38

```
Can somebody please change the category of this to "photo"?
```
##### Erik Karlsson on 2015-02-13 13:29

```
I have a basic 16-bit implementation up and running. It can be found here.

https://github.com/erikrk/opencv/tree/denoising-16bit

Currently, I have the following issues:

1) A lookup table (almost_dist2weight_) is used to calculate e^(-d2/h²). This works fine for 8 bits, but with 16 bits you will run out of memory if h is too big.

2) fastNlMeansDenoisingColored and fastNlMeansDenoisingColoredMulti do not work since cvtColor does not support 16 bits for COLOR_LBGR2Lab and COLOR_Lab2LBGR.
```
##### Erik Karlsson on 2015-02-18 21:23

```
I have added two new functions, fastNlMeansDenoisingAbs and fastNlMeansDenoisingMultiAbs, which use squared sum of absolute value distances instead of sum of squared distances to calculate weights. The code can be found here, in the branch denoising-16bit-abs.

https://github.com/erikrk/opencv/tree/denoising-16bit-abs

They support both 8- and 16-bit 1-, 2-, and 3-channel data.

The original fuctions (fastNlMeansDenoising and fastNlMeansDenoisingMulti) are still 8-bit only. The code has been extensivley refactored though in order to facilitete addition of 16-bit support. It does pass all regression tests. Extending those functions to 16 bits should be straightforward as long as you can come up with a fast metod for calculating weight = e^(-d2/(nchannels*h^2)) that doses not use lookup tables which become too big for squared 16-bit distances.

For colored denoising to accept 16-bit input, cvtColor would have to be extended to accept 16-bit input for COLOR_LBGR2Lab and COLOR_Lab2LBGR.

-   % Done changed from 0 to 80
-   Status changed from New to Incomplete
```
##### Vadim Pisarevsky on 2015-05-25 12:45

```
-   Category set to photo
```
Repository: opencv
Issue: Warning Target "opencv_videoio" requests linking to directory
Labels: bug,auto-transferred,priority: normal,category: videoio,affected: 3.4

Transferred from http://code.opencv.org/issues/4147

```
|| Albert Nava on 2015-01-24 00:41
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: highgui-video
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: x64 / Windows
```
## Warning Target "opencv_videoio" requests linking to directory

```
I have a trouble in Cmake after it's finished the process of Configure, I start the process of Generate, but I got the following errors :

WARNING: Target "opencv_videoio" requests linking to directory "C:/Program Files (x86)/OpenNI/Lib".  Targets may link only to libraries.  CMake is dropping the item.

I'm using windows 8.1 with python 2.7

So I don`t know what is the problem. Or what does Cmake search and where..

Could you please give me some idea of what is wrong .

Thanks and regards
```
## History
##### Vadim Pisarevsky on 2015-04-27 12:56

```
try to build opencv without OpenNI support, there seems to be some problem with cmake script or with the options that you passed to it
-   Priority changed from High to Normal
-   Category set to highgui-video
```
Repository: opencv
Issue: CMake inter-target dependency graph contains a cycle
Labels: bug,auto-transferred,priority: normal,category: build/install,affected: 3.4

Transferred from http://code.opencv.org/issues/4157

```
|| Gregory Kramida on 2015-01-29 15:06
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: build/install
|| Tracker: Bug
|| Difficulty: Easy
|| PR: 
|| Platform: x64 / Linux
```
## CMake inter-target dependency graph contains a cycle

```
When trying to generate, I'm getting the following CMake error with CMake 3.1.1 on Ubuntu:
@CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
  "opencv_python3" of type SHARED_LIBRARY
    depends on "opencv_python2" (weak)
  "opencv_python2" of type SHARED_LIBRARY
    depends on "opencv_python3" (weak)
At least one of these targets is not a STATIC_LIBRARY.  Cyclic dependencies are allowed only among static libraries.@
```
## History
##### Gregory Kramida on 2015-01-29 15:09

```
Work-around: turn off either BUILD_opencv_python2 or BUILD_opencv_python3
```
##### Ilya Lavrenov on 2015-02-01 18:28

```
-   Assignee set to Maksim Shabunin
```
##### Nico Yep on 2015-02-09 17:16

```
Hello, I can confirm this bug on Archlinux.
```
##### Maksim Shabunin on 2015-03-26 07:33

```
Gregory, can you please check if this issue is reproduced with latest master branch revision? Also, please, provide cmake flags that you used.
```
##### Maksim Shabunin on 2015-04-27 09:12

```
-   Target version changed from 3.0-beta to 3.0
```
##### Maksim Shabunin on 2015-04-27 09:33

```
Can not reproduce this issue with Ubuntu 14.04, cmake 3.1.1, python 2.7 + 3.4, latest master branch.

Please, provide more information about your system configuration and cmake command line parameters.
-   Status changed from New to Incomplete
-   Category set to build/install
```
Repository: opencv
Issue: segment_objects.cpp cannot work.
Labels: bug,auto-transferred,priority: normal,category: imgproc,category: video,affected: 3.4

Transferred from http://code.opencv.org/issues/4160

```
|| Sheng Liu on 2015-01-30 03:34
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: imgproc, video
|| Tracker: Bug
|| Difficulty: Hard
|| PR: 
|| Platform: x64 / Windows
```
## segment_objects.cpp cannot work.

```
The file segment_objects.cpp ，which provided in the opencv3.0beta，cannot run .Could you help me solve the problem?

What's more,I need write a program.The program can realize that tracking a moving or static object in a vedio.The object's size is small.And the vedio camera is not always static.It' a very difficult work for me.Could you give me some advice?Is there some similar program I can learn?Please give me some links to the program.
```
## History
Repository: opencv
Issue: Bad Display Aspect Ratio for videos
Labels: auto-transferred,priority: normal,feature,category: videoio

Transferred from http://code.opencv.org/issues/4163

```
|| Pierre Letessier on 2015-01-30 14:18
|| Priority: Normal
|| Affected: None
|| Category: highgui-video
|| Tracker: Feature
|| Difficulty: Easy
|| PR: 
|| Platform: None / None
```
## Bad Display Aspect Ratio for videos

```
I have videos with a SAR (aspect ratio) != 1, see below the ffprobe info : 

<pre>
Stream #0:0[0x8ad]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
</pre>

FFMpeg or vlc can both play them with the good display aspect ratio (16/9), but not OpenCV, so when I load them, the videos are stretched, and I have to resize the grabbed frames.

Furthermore, there are not any functions available to know the DAR.

Could it be possible to add a "CV_CAP_PROP_DAR" property and the corresponding code in opencv-2.4.6.1/modules/highgui/src/cap_ffmpeg_impl.hpp ?

<pre>
     case CV_FFMPEG_CAP_PROP_DAR: 
         AVRational sar = ic->streams[video_stream]->sample_aspect_ratio;
         double dar = (double)frame.width * (double) sar.num / ((double)frame.height *  (double) sar.den);
         return dar;
</pre>

I did a patch in OpenCV 2.4.6.1 (see attachment)

Or directly read the video with the good aspect ratio ?

Thank you !
```
## History
Repository: opencv
Issue: scope issue in createLaplacePyrGpu() in Blenders.cpp
Labels: bug,auto-transferred,priority: normal,affected: 2.4,category: gpu/cuda (contrib)

Transferred from http://code.opencv.org/issues/4164

```
|| Barry Secrest on 2015-02-01 14:03
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: gpu (cuda)
|| Tracker: Bug
|| Difficulty: Easy
|| PR: 
|| Platform: Any / Any
```
## scope issue in createLaplacePyrGpu() in Blenders.cpp

```
Original code: 
    pyr.resize(num_levels + 1);

    vector<gpu::GpuMat> gpu_pyr(num_levels + 1);
    gpu_pyr[0].upload(img);
    for (int i = 0; i < num_levels; ++i)
        gpu::pyrDown(gpu_pyr[i], gpu_pyr[i + 1]);

    gpu::GpuMat tmp;
    for (int i = 0; i < num_levels; ++i)
    {
        gpu::pyrUp(gpu_pyr[i + 1], tmp);
        gpu::subtract(gpu_pyr[i], tmp, gpu_pyr[i]);
    }
        gpu_pyr[i].download(pyr[i]);

This then causes a compile error since "i" is no longer in scope.

Corrected code:

 int i;
    pyr.resize(num_levels + 1);

    vector<gpu::GpuMat> gpu_pyr(num_levels + 1);
    gpu_pyr[0].upload(img);
    for (i = 0; i < num_levels; ++i)
        gpu::pyrDown(gpu_pyr[i], gpu_pyr[i + 1]);

    gpu::GpuMat tmp;
    for (i = 0; i < num_levels; ++i)
    {
        gpu::pyrUp(gpu_pyr[i + 1], tmp);
        gpu::subtract(gpu_pyr[i], tmp, gpu_pyr[i]);
    }
        gpu_pyr[i].download(pyr[i]);
```
## History
##### akansh agrawal on 2015-02-02 08:53

```
The exact code for the above code in Blenders.cpp is:

 pyr.resize(num_levels + 1);

    std::vector<cuda::GpuMat> gpu_pyr(num_levels + 1);
    gpu_pyr[0].upload(img);
    for (int i = 0; i < num_levels; ++i)
        cuda::pyrDown(gpu_pyr[i], gpu_pyr[i + 1]);

    cuda::GpuMat tmp;
    for (int i = 0; i < num_levels; ++i)
    {
        cuda::pyrUp(gpu_pyr[i + 1], tmp);
        cuda::subtract(gpu_pyr[i], tmp, gpu_pyr[i]);
        gpu_pyr[i].download(pyr[i]);
    }

    gpu_pyr[num_levels].download(pyr[num_levels]);
-   Assignee set to abid rahman
```
##### akansh agrawal on 2015-02-02 08:55

```
akansh agrawal wrote:
> The exact code for the above code in Blenders.cpp is:
> 
>  pyr.resize(num_levels + 1);
> 
>     std::vector<cuda::GpuMat> gpu_pyr(num_levels + 1);
>     gpu_pyr[0].upload(img);
>     for (int i = 0; i < num_levels; ++i)
>         cuda::pyrDown(gpu_pyr[i], gpu_pyr[i + 1]);
> 
>     cuda::GpuMat tmp;
>     for (int i = 0; i < num_levels; ++i)
>     {
>         cuda::pyrUp(gpu_pyr[i + 1], tmp);
>         cuda::subtract(gpu_pyr[i], tmp, gpu_pyr[i]);
>         gpu_pyr[i].download(pyr[i]);
>     }
> 
>     gpu_pyr[num_levels].download(pyr[num_levels]);


-   Assignee changed from abid rahman to Barry Secrest
```
##### Vadim Pisarevsky on 2015-04-27 12:53

```
-   Category set to gpu (cuda)
```
Repository: opencv
Issue: createLaplacePyrGpu() doesnt work
Labels: bug,auto-transferred,priority: normal,affected: 2.4,category: gpu/cuda (contrib)

Transferred from http://code.opencv.org/issues/4165

```
|| Barry Secrest on 2015-02-01 14:52
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: gpu (cuda)
|| Tracker: Bug
|| Difficulty: Medium
|| PR: 
|| Platform: x64 / Windows
```
## createLaplacePyrGpu() doesnt work

```
From blenders.cpp: 

   if (can_use_gpu_ && img_with_border.depth() == CV_16S)
        createLaplacePyrGpu(img_with_border, num_bands_, src_pyr_laplace);
    else createLaplacePyr(img_with_border, num_bands_, src_pyr_laplace);

My attempt at using the simple stitching example was failing (I have CUDA) with the src_pyr_laplace[] returning without initialized data pointers.

I changed blenders.cpp to:
 /*   if (can_use_gpu_ && img_with_border.depth() == CV_16S)
        createLaplacePyrGpu(img_with_border, num_bands_, src_pyr_laplace);
    else */ 
        createLaplacePyr(img_with_border, num_bands_, src_pyr_laplace);

and everything worked.
```
## History
##### Vadim Pisarevsky on 2015-04-27 12:53

```
-   Category set to gpu (cuda)
```
Repository: opencv
Issue: cv::cuda::multiply and cv::cuda::sqr can't handle large vector matrices.
Labels: bug,auto-transferred,priority: normal,affected: 3.4,category: gpu/cuda (contrib)

Transferred from http://code.opencv.org/issues/4168

```
|| Daniel Moodie on 2015-02-03 13:52
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: gpu (cuda)
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: x64 / Windows
```
## cv::cuda::multiply and cv::cuda::sqr can't handle large vector matrices.

```
MSVC 2013, Win7x64, OpenCV 3.0 (built from source against cuda 6.5)

I have a large 560,000+ element long row matrix.  I'm trying to square it with either cv::cuda::sqr or cv::cuda::multiply.  When I try to do this I get:
include\\opencv2\\cudev\\grid\\detail/transform.hpp:270: error: (-217) invalid configuration argument in functi...

The exact same code works fine until the matrix grows to be larger than about 560,000 elements.
```
## History
Repository: opencv
Issue: Camera Status Check
Labels: bug,auto-transferred,priority: normal,category: videoio,affected: 2.4

Transferred from http://code.opencv.org/issues/4188

```
|| Muhammad Qaisar on 2015-02-10 08:59
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: highgui-video
|| Tracker: Bug
|| Difficulty: Medium
|| PR: 
|| Platform: x86 / Windows
```
## Camera Status Check

```
Dear sir
I am Using opencv 2.4.10
i am capturing video from axis video server. i use this code
int main()
{
cv::VideoCapture    cap;
cap.open("rtsp://192.168.0.90:554/mpeg4/media.amp?type=.mjpg");
if(!cap.isOpened())
{
     cout <<"cam not working"<<endl;
}
while(cap.isOpened())
{
Mat Frame;
cap.read(Frame);
if(Frame.empty())
{
cout <<""<<endl;
}
waitKey(1);
}
return 0;
}
the code working good, but here the problem is when i unplug the power cable of camera NO VIDEO shows on top left corner. but i did not get any error... 
my question is that how can i check the camera status on axis video server if running camera is disconnected... plz give me example with code.  thanks
```
## History
##### Vadim Pisarevsky on 2015-04-27 12:45

```
-   Category set to highgui-video
```
Repository: opencv
Issue: FileNode and FileNodeIterator does not work for std::vector<std::string>
Labels: bug,auto-transferred,priority: normal,category: core,affected: 3.4

Transferred from http://code.opencv.org/issues/4196

```
|| Yusuke Kameda on 2015-02-15 13:41
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: core
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: Any / Any
```
## FileNode and FileNodeIterator does not work for std::vectorstd::string

```
http://docs.opencv.org/modules/core/doc/xml_yaml_persistence.html#id2

Compile error occurs in this code.
<pre>
std::vector<std::string> v;
cv::FileStorage fs;
cv::FileNode fn = fs["a"];
fn  >> v;  // error
cv::FileNodeIterator fni = fn.begin();
fni >> v;  // error
</pre>
```
## History
##### Yusuke Kameda on 2015-02-17 08:43

```
It seems like the code properly works for 'std::vector<cv::String>',
so I think it is not a major issue.
Please cancel this issue.

<pre>
std::vector<cv::String> v;
cv::FileStorage fs;
cv::FileNode fn = fs["a"];
fn  >> v;
cv::FileNodeIterator fni = fn.begin();
fni >> v;
</pre>
```
##### Maksim Shabunin on 2015-04-27 09:12

```
-   Target version changed from 3.0-beta to 3.0
```
Repository: opencv
Issue: Incomplete docs -- solvePnP in python
Labels: bug,auto-transferred,priority: normal,category: documentation,affected: 2.4

Transferred from http://code.opencv.org/issues/4221

```
|| James Youngquist on 2015-02-27 08:50
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: documentation
|| Tracker: Bug
|| Difficulty: Easy
|| PR: 
|| Platform: x64 / Linux
```
## Incomplete docs -- solvePnP in python

```
Please add the following information specific to calling solvePnP from Python to the docs at
http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#solvepnp :

 * Numpy array slices won't work as input because solvePnP requires contiguous arrays (enforced by the assertion using cv::Mat::checkVector() around line 55 of modules/calib3d/src/solvepnp.cpp version 2.4.9)

 * The P3P algorithm requires image points to be in an array of shape (N,1,2) due to its calling of cv::undistortPoints (around line 75 of modules/calib3d/src/solvepnp.cpp version 2.4.9) which requires 2-channel information.

 * Thus, given some data D = np.array(...) where D.shape = (N,M), in order to use a subset of it as, e.g., imagePoints, one must effectively copy it into a new array: imagePoints = np.ascontiguousarray(D[:,:2]).reshape((N,1,2))
```
## History
##### Vadim Pisarevsky on 2015-04-27 12:42

```
-   Category set to documentation
```
Repository: opencv
Issue: viz::Camera should be usable without vtk
Labels: auto-transferred,priority: normal,feature,category: viz

Transferred from http://code.opencv.org/issues/4224

```
|| Pavel Rojtberg on 2015-03-01 12:47
|| Priority: Normal
|| Affected: None
|| Category: viz
|| Tracker: Feature
|| Difficulty: Easy
|| PR: 
|| Platform: None / None
```
## viz::Camera should be usable without vtk

```
the code is also in other contexts as well like ARUCO or using OpenGL directly. A option would be to move it into core like Affine3 another one is to select a subset of viz that can be compiled without VTK. In types.cpp (where the implementation of viz::Camera is) only viz::Widget::load depends on VTK.
```
## History
##### Pavel Rojtberg on 2015-03-01 12:49

```
the code is -also- *useful* in other contexts as well like ARUCO or using OpenGL directly.
```
Repository: opencv
Issue: 2.4.10 Stitching, C++ - Unhandled exception
Labels: bug,auto-transferred,priority: normal,affected: 2.4,category: stitching

Transferred from http://code.opencv.org/issues/4236

```
|| M W on 2015-03-11 12:00
|| Priority: Normal
|| Affected: branch '2.4' (2.4-dev)
|| Category: stitching
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: x64 / Windows
```
## 2.4.10 Stitching, C++ - Unhandled exception

```
Im trying to stitch three images together. To do this, I chose OpenCV 2.4.10 and Microsoft Visual C++ 2010 Express.
The Images are 1500x1500px and in CV_8UC3 when read.
Im building for 32bit and already got a few other things working with OpenCV, so I guess the project is set up correctly with paths etc..

The odd thing is, that I get this error only sometimes, and only if I try to stitch more than two images.

Here the error message:
<pre>
Unhandled exception at 0x5841dcaa in Stitching Test.exe: 0xC0000005: Access violation reading location 0x00000004.
</pre>
After that I get automatically to line 99 of "Chores.cpp" or line 189 of "TaskCollection.cpp", so i think thats the source of the error. (Path C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src)

And here the code:
<pre><code class="cpp">
#include <iostream>

//OPENCV
#include <opencv2\core\core.hpp>
#include <opencv2\highgui\highgui.hpp>
#include <opencv2\imgproc\imgproc.hpp>
//OPENCV STITCHING
#include <opencv2\stitching\stitcher.hpp>

using namespace std;
using namespace cv;

int main(){
    Mat panoramaImage;
    vector<Mat> inputImages;

    inputImages.push_back(imread("../../V1.bmp"));
    inputImages.push_back(imread("../../V2.bmp"));
    inputImages.push_back(imread("../../V3.bmp"));

    Stitcher stitcher = Stitcher::createDefault();
    Stitcher::Status stitcherStatus = stitcher.stitch(inputImages, panoramaImage);

    imshow("Stitching Result", panoramaImage); 
    waitKey(0);

    return 0;
}
</code></pre>
```
## History
##### M W on 2015-03-11 12:04

```
"Thread in questions":http://answers.opencv.org/question/57234/opencv-stitching-c-unhandled-exception/
```