Ask Your Question

Parinda's profile - activity

2013-06-14 01:44:23 -0600 commented question unhandled exception

int main(int argc, char* argv[]) { IplImage* src1 = cvLoadImage( "C:\Users\admi\Pictures\bubles.jpg" ); IplImage* src2 = cvLoadImage( "C:\Users\admi\Pictures\bu.jpg" ); int x = 280; int y = 80; int width = 60; int height = 60; double alpha = 0.5; double beta = 0.5; cvSetImageROI(src1,cvRect(1,1,640,480)); cvSetImageROI(src1, cvRect(x,y,width,height)); cvAddWeighted(src1, alpha, src2, beta, 0.0, src1); cvResetImageROI(src1); cvNamedWindow("Alpha_blend", 1); cvShowImage("Alpha_blend", src1); cvShowImage("Alpha_blend2", src2); }

this is the code for alphablend..

2013-06-13 06:01:11 -0600 asked a question unhandled exception

Unhandled exception at at 0x000007FEFD469E5D in ConsoleApplication1.exe: Microsoft C++ exception: cv::Exception at memory location 0x00000000001AF490.

can anyone tell me the meaning of this error?

2013-06-13 05:24:46 -0600 commented question alpha blend using opencv 2.4.3

but it doesnt show any error aftr build

2013-06-13 05:18:47 -0600 received badge  Supporter (source)
2013-06-12 03:46:20 -0600 asked a question alpha blend using opencv 2.4.3
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
 #include<opencv/cv.h>
#include <iostream>
#include <math.h>
#include <string.h>

using namespace cv;
using namespace std;



int main(int argc, char* argv[])
{
    IplImage* src1 = cvLoadImage( "C:\\Users\\admi\\Pictures\\bubles.jpg" );
    IplImage* src2 = cvLoadImage( "C:\\Users\\admi\\Pictures\\bu.jpg" );
    int x = 280;
    int y = 80;
    int width = 60;
    int height = 60;
    double alpha = 0.5;
    double beta = 0.5;
     cvSetImageROI(src1,cvRect(1,1,640,480));
cvSetImageROI(src1, cvRect(x,y,width,height));
cvAddWeighted(src1, alpha, src2, beta, 0.0, src1);
cvResetImageROI(src1);
cvNamedWindow("Alpha_blend", 1);
cvShowImage("Alpha_blend", src1);
cvShowImage("Alpha_blend2", src2);
}

this is my code n its not working till there is no error in the code..plz help