asdasfsdfdsf
Mitglied
hi, ich würde gerne in ein Schwarz weißes Mat img (also mit nur einem farbkanal) ein farbiges Rechteck zeichnen, ist das möglich?
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
//draw the contour in the source image
IplImage *iplImgSource = cvCreateImage( cvSize(width+1, height+1), IPL_DEPTH_8U, 1 );
IplImage *iplImgSrcColor = cvCreateImage(cvSize(width+1, height+1), IPL_DEPTH_8U, 3);
//Graubild in Farbbild convertieren
cvCvtColor(iplImgSource, iplImgSrcColor, CV_GRAY2BGR );
cvRectangle(iplImgSrcColor, cvPoint(5,5), cvPoint(20, 20), cvScalar(0, 255, 0, 0), 1, 8, 0);