cvFillConvexPoly()函数使用

// TestPoly.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
#include
#include

#pragma comment(lib,"cv.lib")
#pragma comment(lib,"cvcam.lib")
#pragma comment(lib,"cxcore.lib")
#pragma comment(lib,"highgui.lib")

#define nMatWidth 400
#define nMatHeight 400
int main(int argc, char* argv[])
{
CvMat *Mat = cvCreateMat(nMatWidth,nMatHeight,CV_8UC3);
assert(Mat != NULL);
【cvFillConvexPoly()函数使用】 CvPoint Points[5] = { {12,45}, {78,150}, {240,240}, {132,132}, {200,230} };
cvFillConvexPoly(Mat,Points,5,CV_RGB(255,255,255));
cvNamedWindow("Show_Result");
cvShowImage("Show_Result",Mat);
cvWaitKey();
cvReleaseMat(&Mat);
cvDestroyWindow("Show_Result");

return 0;
}

    推荐阅读