Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I got 'System.Runtime.InteropServices.SEHException' Additional information: External component has thrown an exception..when I run my C++ opencv program below. I use Visual C++ 2008 to make it in windows form (.NET framework). I wanna show an image in HSV mode, by merge 3 channels there.

C++
...
...
cv::Mat Citra,CitraConv,Channels[3],CitraD,Citra6,CitraH,CitraH1,CitraS,CitraS1,
CitraV,CitraV1;
std::vector<cv::Mat>Channels2(3);
cv::cvtColor(Citra,CitraConv,CV_BGR2HSV);
cv::split(CitraConv,Channels);
CitraH=Channels[0];
CitraH1=CitraH;
CitraS=Channels[1];
CitraS1=CitraS;
CitraV=Channels[2];
CitraV1=CitraV;
Channels2[0]=CitraH1;
Channels2[1]=CitraS1;
Channels2[2]=CitraV1;
cv::merge(Channels2,CitraD);//Error appear Here
Citra6=CitraD; 
pictureBoxCitra2->Image=IplImageToBitmap(&(IplImage)Citra6);


Can anyone give me suggestion or even solution for this problem? I really appreciate any help here.. Thanks..
Posted
Updated 21-Sep-13 21:09pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900