블로그 이미지
Kanais
Researcher & Developer 퍼즐을 완성하려면 퍼즐 조각들을 하나 둘씩 맞춰나가야 한다. 인생의 퍼즐 조각들을 하나 둘씩 맞춰나가다 보면 인생이란 퍼즐도 완성되는 날이 오려나...?

calendar

1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

Notice

04-30 07:36

Recent Post

Recent Comment

Recent Trackback

Archive

2015. 4. 21. 19:48 Computer Vision/OpenCV



개발환경

사용툴       : Visual Studio 2013

라이브러리 : openCV library 2.4.10

프로젝트    : Visual C++ console application

개발날짜    : 2015-04-21


참고 : Stack Overflow - How to resize an image to a specific size in OpenCV?




void FaceDetection::Haar_FaceDetection(const char* filename)

{

       CvCapture* capture;

 

       capture = cvCaptureFromFile(filename);

 

       assert(capture != NULL);

 

       IplImage* bgr_frame;// = cvQueryFrame(capture);

 

        while ((bgr_frame = cvQueryFrame(capture)) != NULL)

        {

           IplImage* resize_img = cvCreateImage(cvSize(2048, 1024), bgr_frame->depth, bgr_frame->nChannels);

           cvResize(bgr_frame, resize_img, CV_INTER_LINEAR);

        }

}


posted by Kanais