i want to mix a part of any image with original image and i write this program but my program produce strange answer why?please help me , my original image is "khaste.jpg"
Mat image;
Mat im;
image=imread("khaste.jpg",CV_LOAD_IMAGE_COLOR);
im=imread("kari o behrooz.jpg",CV_LOAD_IMAGE_COLOR);
Rect roi=Rect(150,200,40,60);
Mat image_roi=image(roi);
Mat im_roi=im(roi);
addWeighted(image_roi,.3,im_roi,.7,0,image);
namedWindow("k",1 );
imshow("k",image);
cvWaitKey(0);
return (0);
}